GateAI
Instruction Pipelining

GATE CSE 2024 Set 1 · Q30

MSQ1 markMedium

Time

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?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official 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

Instruction Pipelining

Evaluating each statement regarding operand forwarding (bypassing) in a 5-stage pipeline:

  • Statement (A): Forwarding routes an intermediate result from a pipeline register/stage of an earlier instruction directly to the input of a functional unit (destination stage) of a later instruction that needs it before it is written back to the register file. Hence, (A) is correct.

  • Statement (B): In a load-use situation or when memory output is required by a subsequent instruction's execution stage, data from the output of the MEM stage (such as the output of the MEM/WB register) can be forwarded to the input of the EX stage of the following instruction. Hence, (B) is correct.

  • Statement (C): Forwarding cannot eliminate all pipeline stalls. A classic example is a load-use data hazard where a LOAD instruction is immediately followed by an ALU instruction dependent on the loaded data; because the loaded data is only available at the end of the MEM stage, a 1-cycle stall is unavoidable even with forwarding. Hence, (C) is correct.

  • Statement (D): Forwarding requires extra hardware including multiplexers at the ALU inputs, comparator circuits (hazard detection/forwarding unit), and bypass datapath buses from pipeline registers back to earlier stages. Thus, (D) is incorrect.

Therefore, statements (A), (B), and (C) are correct.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Instruction Pipelining previous year question is Q30 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on Instruction Pipelining in Computer Organization and Architecture, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Instruction Pipelining PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Instruction Pipelining in GATE CSE

Instruction Pipelining has 25 GATE CSE PYQs across 20 papers from 2011 to 2026. 2 of them are 1-mark MSQs like this one, and it is the only one in GATE CSE 2024 Set 1.

How GATE tests Instruction Pipelining

More from GATE CSE 2024 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 1 · Q30 · MSQ

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?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.