GATE / CS ARCHIVE

GATE CSE 2015 SET 1 / QUESTION 55

GATE CSE 2015 Set 1 Q55

Computer Organization & Architecture · Pipelining & Hazards · Full GATE CSE 2015 Set 1 paper

GATE 2015 Set 1, Q55 2 marks · NAT
Report issue

Pipelining & Hazards

Question 55, GATE 2015: A nonpipelined CPU runs at 2.5 GHz with average CPI=4. A five-stage pipelined version runs at 2 GHz due to pipeline delay, with no stalls. Find speedup.
Tap to enlarge
Answer & solution

Official answer: 3.2

Compare time per instruction, not stage count alone. Initially an instruction costs four 0.4-ns cycles, or 1.6 ns. A full stall-free pipeline produces one result per 0.5-ns cycle. Throughput speedup is 1.6/0.5=3.2. Five stages affect latency and initial fill; they do not make the improvement automatically fivefold. This is the steady-state limit for a sufficiently long stream.

Solution: Nonpipelined throughput is 2.5GHz/4=0.625 billion instructions/s. A stall-free full pipeline at 2GHz completes one instruction per cycle, giving 2 billion/s. The steady-state speedup is 2/0.625=3.2. This ignores fill/drain overhead for a finite short instruction sequence, whose length is not supplied.

Original paper, page 21 · Answer key