題組內容

[Problem 5] (20%) Use the following code fragment: 
Loop:62a2e9aa75ede.jpg
Assume the initial value of R3 is R2+100. Use the five-stage instruction pipeline ( IF, DEC, EXE, MEM, WB) and assume all memory accesses are one cycle operation. Furthermore, branches are resolved in MEM stage.

(a) (10%) Show the timing of this instruction sequence for the five-stage instruction pipeline with normal forwarding and bypassing hardware. Assume that branch is handled by predicting it has not taken. How many eycles does this loop take to execute?