GATE / CS ARCHIVE

GATE CSE 2026 SET 2 / QUESTION 57

Pipeline speedup with stalls and a slower clock

Computer Organization & Architecture · Pipelining & Hazards · Full GATE CSE 2026 Set 2 paper

GATE 2026 Set 2, Q57 2 marks · NAT
Report issue

Pipelining & Hazards

Question 57, GATE 2026: A nonpipelined processor averages 5 cycles/instruction at 1.6 GHz. Its pipeline has ideal CPI 1 but runs at 1.2 GHz; 30% of instructions incur an additional 2-cycle stall. Compute long-program speedup to two decimals. The published accepted range is 2.30–2.40.
Tap to enlarge
Answer & solution

Official answer: 2.30 to 2.40

Our answer: 2.34375 (2.34 rounded)

Givens and goal

A nonpipelined processor averages 5 cycles/instruction at 1.6 GHz. Its pipeline has ideal CPI 1 but runs at 1.2 GHz; 30% of instructions incur an additional 2-cycle stall. Compute long-program speedup to two decimals. The published accepted range is 2.30–2.40.

Approach

Compare actual seconds per instruction, not CPI alone.

Step-by-step solution

1. The nonpipelined average instruction time is CPI/frequency=5/(1.6×10⁹) seconds=3.125 ns.
2. Each pipelined instruction contributes one base cycle on average. The expected added stall cost is 0.30×2=0.60 cycles per instruction, so effective CPI is 1.60.
3. The pipelined instruction time is 1.60/(1.2×10⁹) seconds=4/3 ns≈1.33333 ns. Its clock is slower, so a CPI reduction by itself would overstate the improvement.
4. Speedup is old time/new time=3.125/(4/3)=2.34375, which rounds to 2.34. Equivalently use (5/1.6)/(1.6/1.2).
5. The full official accepted interval 2.30–2.40 is preserved, rather than replaced with a single exact scoring value. The calculation assumes long-program throughput, negligible pipeline fill/drain cost, and additive two-cycle stalls as stated; a short program or overlapping penalties would need more details.

Original paper, page 39 · Answer key