Question: 1) Integer pipeline (Fig. 2.3). Assume that registers are written in the 1st half of the clock cycle, read in the 2nd half. Show cycle

1) Integer pipeline (Fig. 2.3). Assume that registers are written in the 1st half of the clock cycle, read in the 2nd half. Show cycle by cycle execution of the following code segment. Identify every possible type of hazard, mark the hazards by arrows. The processor supports forwarding. Shows stalls as letter "S" in an appropriate cycle. Execute all instructions shown after the branch is resolved. The branch is not taken (after it is resolved). 
Show the cycle by cycle execution. 
 Instr/Clock Cycle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Xor R4, R5, R9 IF ID Ex M Wb Add R1, R1, #4 Sub R6, R5, R4 BNE R1, R7, L_ Ld R5, 52(R6) St R6, 8(R4) Sub R7, R5, R4 Add R2, R5, R7 ... L_: 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!