問題詳情

[Problem 5] (20%) Use the following code fragment: Loop:

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 areresolved in MEM stage.
【題組】(a) (10%) Show the timing of this instruction sequence for the five-stage instruction pipeline withnormal forwarding and bypassing hardware. Assume that branch is handled by predicting ithas not taken. How many eycles does this loop take to execute?

參考答案