GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Derive pipeline clocks from stage bottlenecks

4 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Find the maximum stage delay plus explicitly stated register overhead and infer clock frequency or steady-state throughput/speedup. Stage-splitting variants recompute the bottleneck rather than merely counting stages.

2 marks · NAT
Report issue

Pipelining & Hazards

Question 32, GATE 2016: A4-stage pipeline has delays 800,500,400,300 ps. Replace its 800 ps stage by two equivalent stages of 600 ps and 350 ps. Ignoring unspecified register overhead, find the percentage increase in steady-state throughput.
Tap to enlarge
Answer & solution

Official answer: 33.0 : 34.0

Our answer: 33.33%

Ignoring unstated register overhead, the old steady-state clock is 800 ps and the new bottleneck 600 ps. Throughput rises from 1/800 to 1/600 instructions/ps. Relative increase=(800/600−1)·100%=33.333...%, rather than the 25% decrease in clock period.

A pipeline clock must accommodate its slowest stage, so the new clock is max(600,350,500,400,300)=600 ps. After filling, an ideal pipeline completes one item each clock; the number of stages affects latency but not this rate. The ratio of rates is (1/600)/(1/800)=4/3. Subtracting 1 and converting to percent gives 33⅓%. Computing(800−600)/800 instead measures a 25% period reduction, a different requested quantity.

Original paper, page 13 · Answer key

2 marks · NAT
Report issue

Pipelining & Hazards

Question 33, GATE 2016: A three-stage 3 GHz pipeline has τ1=3τ2/4=2τ3. Split the longest stage into two equal stages. Ignoring pipeline-register delay, find the new frequency in GHz.
Tap to enlarge
Answer & solution

Official answer: 3.9 : 4.1

Our answer: 4 GHz

The relation gives tau2=4tau1/3 and tau3=tau1/2; tau2 is originally longest. A3GHz clock therefore has tau2=1/3 ns and tau1=1/4 ns. Splitting tau2 creates two 1/6 ns stages; the new bottleneck is tau1=1/4 ns, giving 4GHz.

The original stage times are τ1=1/4 ns, τ2=1/3 ns, τ3=1/8 ns. After splitting, the four stages are 1/4,1/6,1/6,1/8 ns. The clock period is their maximum, not their average or sum. Adding one stage does not automatically multiply the frequency by four-thirds; it does so here because of these particular delays.

Original paper, page 34 · Answer key

1 mark · MCQ
Report issue

Pipelining & Hazards

Question 9, GATE 2014: Pipeline-register latency is zero. Four processors have stage delays in ns: P1=(1,2,2,1); P2=(1,1.5,1.5,1.5); P3=(0.5,1,1,0.6,1); P4=(0.5,0.5,1,1,1.1). Which has the highest peak clock frequency? A P1; B P2; C P3; D P4.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step 1: A synchronous pipeline must allow its slowest stage to finish during one clock period. With zero register overhead, the minimum period is the maximum stage latency, not the sum or average. Step 2: The four maxima are 2, 1.5, 1 and 1.1 ns respectively. Step 3: Frequency is the reciprocal of period, so P3 is fastest at 1/(1 ns)=1 GHz, C. Its greater number of stages does not itself determine this ranking.

Original paper, page 54 · Answer key

2 marks · MCQ
Report issue

Pipeline throughput with unequal stage delays

Pipelining & Hazards

Question 41, GATE 2011: An ideal four-stage instruction pipeline has combinational delays S1=5 ns, S2=6 ns, S3=11 ns, S4=8 ns. A 1 ns pipeline register follows every stage, including the last. Approximately what is its steady-state speedup over the corresponding non-pipelined implementation?

(A) 4.0
(B) 2.5
(C) 1.1
(D) 3.0
Tap to enlarge
Your answer
Answer & solution

Official answer: B

The non-pipelined combinational delay is 5+6+11+8=30 ns. The pipelined clock period is determined by the slowest stage plus its pipeline-register delay: 11+1=12 ns. In ideal steady state one instruction completes every 12 ns, so the conventional throughput speedup is 30/12=2.5, option B. If the non-pipelined implementation also counts a final 1 ns output register, the ratio is 31/12≈2.58, still the same approximate option. This is steady-state throughput, not the latency speedup of one instruction.

After filling, different instructions occupy the four stages concurrently. The clock cannot advance every average-stage delay; the slowest stage must finish before its register captures the result. That sets 12 ns per output instruction despite three faster stages. One instruction still traverses four pipeline cycles, but the question asks steady-state throughput. Using the ideal stage-count speedup of four would require balanced stages with negligible register overhead, neither of which holds here.

Original paper, page 11 · Answer key