13.07.2015 Views

Cortex-A8 R2P2.pdf - ARM Information Center

Cortex-A8 R2P2.pdf - ARM Information Center

Cortex-A8 R2P2.pdf - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Instruction Cycle Timing16.8 Scheduling exampleExample 16-6 shows a sample code segment and how the processor might schedule it.Example 16-6 Dual issue instruction sequence for integer pipelineCycle PC Opcode Instruction Timing description1 0x00000ed0: 0xe12fff1e BX r14 Dual issue pipeline 01 0x00000ee4: 0xe3500000 CMP r0,#0 Dual issue in pipeline 12 0x00000ee8: 0xe3a03003 MOV r3,#3 Dual issue pipeline 02 0x00000eec: 0xe3a00000 MOV r0,#0 Dual issue in pipeline 13 0x00000ef0: 0x05813000 STREQ r3,[r1,#0] Dual issue in pipeline 0, r3 not needed until E33 0x00000ef4: 0xe3520004 CMP r2,#4 Dual issue in pipeline 14 0x00000ef8: 0x979ff102 LDRLS pc,[pc,r2,LSL #2] Single issue pipeline 0, +1 cycle for load topc, no extra cycle for shift since LSL #25 0x00000f2c: 0xe3a00001 MOV r0,#1 Dual issue with 2nd iteration of load inpipeline 16 0x00000f30: 0xea000000 B {pc}+8 #0xf38 dual issue pipeline 06 0x00000f38: 0xe5810000 STR r0,[r1,#0] Dual issue pipeline 17 0x00000f3c: 0xe49df004 LDR pc,[r13],#4 Single issue pipeline 0, +1 cycle for load to pc8 0x0000017c: 0xe284200c ADD r2,r4,#0xc Dual issue with 2nd iteration of load inpipeline 19 0x00000180: 0xe5960004 LDR r0,[r6,#4] Dual issue pipeline 09 0x00000184: 0xe3a0100a MOV r1,#0xa Dual issue pipeline 112 0x00000188: 0xe5900000 LDR r0,[r0,#0] Single issue pipeline 0: r0 produced in E3,required in E1, so +2 cycle stall13 0x0000018c: 0xe5840000 STR r0,[r4,#0] Single issue pipeline 0 due to LS resourcehazard, no extra delay for r0 since produced inE3 and consumed in E314 0x00000190: 0xe594000c LDR r0,[r4,#0xc] Single issue pipeline 0 due to LS resourcehazard15 0x00000194: 0xe8bd4070 LDMFD r13!,{r4-r6,r14} Load multiple loads r4 in 1st cycle, r5 and r6in 2nd cycle, r14 in 3rd cycle, 3 cycles total17 0x00000198: 0xea000368 B {pc}+0xda8 #0xf40 dual issue in pipeline 1 with 3rd cycleof LDM18 0x00000f40: 0xe2800002 ADD r0,r0,#2 <strong>ARM</strong> Single issue in pipeline 019 0x00000f44: 0xe0810000 ADD r0,r1,r0 <strong>ARM</strong> Single issue in pipeline 0, no dual issue due tohazard on r0 produced in E2 and required in E216-46 Copyright © 2006-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0344E

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!