IAE Academy

GATE 2025 CS2 Q.56: solution and answer

GATE 2025 · CS2Q.56 · 2 marks · NAT

A 5-stage instruction pipeline has stage delays of 180, 250, 150, 170, and 250, respectively, in nanoseconds. The delay of an inter-stage latch is 10 nanoseconds. Assume that there are no pipeline stalls due to branches and other hazards. The time taken to process 1000 instructions in microseconds is __________ . (rounded off to two decimal places)

See the question in the paper

Answer and solution

ANSWER

The time taken to process 1000 instructions is 261.04 microseconds.

Official answer: 260.20 to 261.20Source: Official answer key, GATE 2025 CS2 (IIT Roorkee)

  1. Clock period must accommodate the slowest stage plus the inter-stage latch delay: ns.

  2. For instructions through a -stage pipeline with no stalls, the total number of clock cycles is cycles.

  3. Total time ns.

  4. Converting to microseconds: .

KEY IDEA

In a synchronous pipeline, the clock cycle time must be long enough for the slowest stage plus the inter-stage latch overhead: . For instructions through a -stage pipeline with no stalls, the total number of cycles is (fill the pipeline in cycles for the first instruction, then one more cycle per remaining instruction).

WATCH OUT FOR

A common error is using cycles (as if every instruction needed all cycles independently) instead of the correct pipelined cycle count, or forgetting to add the latch delay to the slowest stage when computing the clock period.

From the GATE 2025 CS2 paper. Every question of this paper · Download the full paper · All 12 Pipelining questions, with notes

More Pipelining questions