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?
GATE CSE 2024CO & Architecture › Instruction Pipelining & PerformanceVerified
GATE CSE 2024 PYQ: Consider a 5 5 5 -stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute…
- AIn 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 instructionCorrect answer
- BIn forwarding, data from the output of the MEM stage can be passed on to the input of the EX stage of the next instructionCorrect answer
- CForwarding cannot prevent all pipeline stallsCorrect answer
- DForwarding does not require any extra hardware to retrieve the data from the pipeline stages
Answer
(A, B, C) 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; 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; Forwarding cannot prevent all pipeline stalls
Approach
Evaluate each statement against standard 5-stage pipeline forwarding (bypassing) concepts: forwarding paths, load-use hazard handling, remaining stalls, and required hardware.
Statements A, B, and C are correct. A gives the definition of forwarding, B describes a valid MEM-to-EX forwarding path (with the usual load-use stall caveat), and C is true because forwarding does not remove all pipeline stalls. D is false because forwarding needs extra hardware.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.