GATE / CS ARCHIVE

GATE CSE 2017 SET 1 / QUESTION 50

GATE CSE 2017 Set 1 Q50

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

GATE 2017 Set 1, Q50 2 marks · NAT
Report issue

Pipelining & Hazards

Question 50, GATE 2017: Five pipeline stages IF,ID,OF,EX,WB take 5,4,20,10,3 ns; interstage buffer overhead is 2 ns. NP uses these five stages. EP splits OF into OF1=12 ns,OF2=8 ns. Find EP speedup over NP for 20 independent hazard-free instructions, to two decimals.
Tap to enlarge
Answer & solution

Official answer: 1.49 to 1.52

Our answer: 1.51

1. The clock period is the slowest stage plus buffer overhead. NP therefore has period max(5,4,20,10,3)+2=22 ns. Its five-stage pipeline needs 5+(20−1)=24 cycles, or 528 ns.

2. EP has stages 5,4,12,8,10,3 ns, so its period is 12+2=14 ns. Six stages need 6+19=25 cycles for the same twenty instructions, or 350 ns.

3. Speedup is old time/new time=528/350=1.508571..., rounding to 1.51. Using only the clock ratio 22/14 neglects the extra fill cycle.

Original paper, page 22 · Answer key