GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 69

Four-stage pipeline completion time

Computer Organization & Architecture · Pipelining & Hazards · Full GATE CSE 2004 paper

GATE 2004, Q69 2 marks · MCQ
Report issue

Pipelining & Hazards

Question 69, GATE 2004: A four-stage pipeline has stage delays 150,120,160,140 ns and interstage-register delay 5 ns. With a constant clock period, how long does it take to process 1000 items?
Options:
(A) 120.4 μs
(B) 160.5 μs
(C) 165.5 μs
(D) 590.0 μs
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. The common clock period is the slowest stage plus register delay: max(150,120,160,140)+5=165 ns. A four-stage pipeline needs 4 cycles for its first item and 999 more for the remaining items.

2. Total time is (1000+4−1)×165=165495 ns=165.495 microseconds, rounded to 165.5 microseconds, C. This is the standard balanced-clock pipeline timing model.

3. Teaching check: Pipeline throughput is set by the slowest stage, not the sum of stage delays. The sum matters for an unpipelined path; the pipelined batch takes a fill of four cycles plus one cycle for each subsequent item. Include the register delay in every clock period.

Original paper, page 10