Consider a RISC pipeline having 5 stages, Find how many cycles are required for the instruction given below, assume operand forwarding, branch prediction is used in which the branch is not taken, ACS is the branch instruction and the five stages are Instruction fetch, Decode, Execute, Memory and Write back.
I1: ACS R0, R1,X I2: LOAD R2, 0(R3) I3: SUB R4 R2, R2 I4: X: ADD R5, R1, R2 I5: LOAD R1, 0(R5) I6: SUB R1, R1, R4 I7: ADD R1, R1, R5
(A) 11
(B) 12
(C) 13
(D) 14
Answer: (C)
Explanation: Option (C) is correct.
Article Tags :
Recommended Articles