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?

  1. A.

    9 cycles

  2. B.

    10 cycles

  3. C.

    11 cycles

  4. D.

    14 cycles

Attempted by 26 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…