GATE CS 2024 Set 1 | Question 30

Computer Organization & Architecture › Pipelining · MSQ · 1 mark · Answer: A, B, C

  1. Question 30Computer Organization & Architecturemsq1 mark
    In a 5-stage pipeline (IF, ID, EX, MEM, WB), which statements about forwarding is/are CORRECT?
    • A.
      Forwarding passes a result from a source stage of an earlier instruction to the destination stage of a later instruction
      ✓
    • B.
      Data from the output of MEM can be passed to the input of EX of the next instruction
      ✓
    • C.
      Forwarding cannot prevent all pipeline stalls
      ✓
    • D.
      Forwarding does not require any extra hardware

    Answer: A, B, C

    Solution

    Answer: (A), (B) and (C) Forwarding (bypassing) routes a computed result directly from where it is produced to where it is next needed -> (A) true; e.g. MEM output -> EX input of the following instruction -> (B) true. A load-use hazard still needs a stall, so forwarding cannot remove all stalls -> (C) true. Forwarding needs extra multiplexers and bypass paths -> (D) false.

More GATE PYQ on Pipelining

All GATE CS Computer Organization & Architecture PYQ →

Attempt GATE CS 2024 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →