Q. A RISC pipeline executes the following instructions: Each instruction takes…
Q. A RISC pipeline executes the following instructions:
Each instruction takes 1 cycle per stage, except load instructions, which require 3 cycles in the 4th stage.
I1: LOAD R0, 3(R1)
I2: ADD R2, R0, R1
I3: LOAD R3, 4(R4)
I4: SUB R5, R3, R4
How many pipeline cycles are required to complete the execution of the code?
- A.
9 cycles
- B.
10 cycles
- C.
11 cycles
- D.
14 cycles
Attempted by 26 students.
Sign up free to check your answer
Sign up freeLoading lesson…

