The GATE Grind

GATE 2007 CS – Question 37

Computer Organization and Architecture · Instruction Pipelining and Pipeline Hazards · 2 marks · Multiple choice

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-R4
  1. 7
  2. 8
  3. 10
  4. 14

Practise 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

More Instruction Pipelining and Pipeline Hazards questions

All Instruction Pipelining and Pipeline Hazards questions →