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?
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
Forwarding does not require any extra hardware to retrieve the data from the pipeline stages
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.
More Instruction Pipelining and Pipeline Hazards questions
GATE 2024 CS (CS2) Q31– An instruction format has the structure: Instruction Number: Opcode destination reg,…
GATE 2024 CS (CS2) Q58– A non-pipelined unit at 2 GHz takes an average of 6 cycles per instruction of program P.…
GATE 2023 CS Q33– Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and…
GATE 2022 CS Q61– A processor X1 operating at 2 GHz has a standard 5-stage RISC instruction pipeline having…
GATE 2021 CS (CS1) Q63– A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The…
GATE 2020 CS Q53– Consider a non-pipelined processor operating at 2.5 GHz. It takes 5 clock cycles to…