GATE 2007 CS – Question 37
A pipeline has IF, ID (decode/operand fetch), EX, WB. IF, ID, WB take1 cycle; ADD/SUB EX takes1, MUL EX takes3. Operand forwarding is available. How many cycles execute this sequence?
ADD R2,R1,R0 ; R2=R1+R0
MUL R4,R3,R2 ; R4=R3*R2
SUB R6,R5,R4 ; R6=R5-R4Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) 8
Explanation
We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort