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)
GATE 2025 CS2 Q.56: solution and answer
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)
Clock period must accommodate the slowest stage plus the inter-stage latch delay: ns.
For instructions through a -stage pipeline with no stalls, the total number of clock cycles is cycles.
Total time ns.
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
- GATE 2024 CS1 Q.30 · MSQ · 1 markConsider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX)…
- GATE 2024 CS2 Q.31 · MSQ · 1 markAn instruction format has the following structure: Instruction Number: *Opcode destination reg, source…
- GATE 2024 CS2 Q.58 · NAT · 2 marksA non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an…
- GATE 2023 CS Q.33 · NAT · 1 markConsider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and 14 ns, for the…
