GATE 2024 CS (CS1) – Question 30
Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Which of the following statements about forwarding is/are CORRECT?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) In a pipelined execution, forwarding means the result from a source stage of an earlier instruction is passed on to the destination stage of a later instruction; (B) In forwarding, data from the output of the MEM stage can be passed on to the input of the EX stage of the next instruction; (C) Forwarding cannot prevent all pipeline stalls
Explanation
A, B describe forwarding correctly, and load-use hazards still need a stall so C is true. Forwarding needs extra multiplexers and paths, so D is false.