GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 53

GATE CSE 2021 Set 1 Q53

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

GATE 2021 Set 1, Q53 2 marks · NAT
Report issue

Pipelining & Hazards

Question 53, GATE 2021: A five-stage pipeline has stage delays 150,120,150,160,140 ns, and its interstage registers each have 5 ns delay. With no stalls, find the total execution time of 100 independent instructions in ns.
Tap to enlarge
Answer & solution

Official answer: 17160

The clock period is the slowest combinational stage delay plus the pipeline-register delay: 160+5=165 ns. Five stages take five clocks for the first instruction and one clock for each of the remaining 99. Total cycles=5+99=104, so execution time is 104*165=17160 ns under the standard synchronous-pipeline timing convention.

The clock cannot use the average stage delay: every stage must finish before the next common edge, so the 160 ns stage controls. Add 5 ns register overhead once per clock interval to obtain 165 ns, rather than summing all register delays into one stage. The first instruction completes after five clocks and the hundredth after 99 additional clocks. This separates pipeline latency from steady-state throughput and avoids the error 100×5×165.

Original paper, page 40 · Answer key