GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 30

GATE CSE 2016 Set 2 Q30

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

GATE 2016 Set 2, Q30 2 marks · NAT
Report issue

Pipelining & Hazards

Question 30, GATE 2016: Functional units UF and UG compute F and G in 5 ns and 3 ns. Two instances of each are available. Find the minimum completion time for ten computations F(G(Xi)), i=1,…,10, ignoring other delays.
Tap to enlarge
Answer & solution

Official answer: 28.0 : 28.0

Our answer: 28

Each of the two F units must perform at least five 5 ns operations to finish ten jobs. No F can begin before the first G output at 3 ns, so makespan≥3+25=28 ns. Two G units produce pairs at 3, 6, 9, 12, 15 ns. Feed the F units continuously in paired intervals 3–8, 8–13, 13–18, 18–23, 23–28. This attains 28 ns.

Think in five two-job batches. The G stage finishes each batch every 3 ns, whereas F needs 5 ns, so F is the bottleneck after startup. Waiting buffers hold early G outputs while F is busy. Multiplying ten jobs by 8 ns ignores parallelism; using just 25 ns forgets the unavoidable initial G latency.

Original paper, page 33 · Answer key