Skip to content
Official PYQ · 2026

GATE CS 2026 Set 2 Q47 — Instruction Pipelining

Explain with AI
A non-pipelined instruction execution unit that operates at 1.61.6 GHz clock takes an average of 55 clock cycles to complete the execution of an instruction. To improve the performance, the system was pipelined with a goal of achieving an average throughput of one instruction per clock cycle. However, it could operate only at 1.21.2 GHz due to pipeline overheads. While executing a program in the pipelined design, 30%30 \% of instructions encountered a stall of 22 cycles due to pipeline hazards. The speed-up obtained by the pipelined design over the non-pipelined one for this program is _______\_\_\_\_\_\_\_ (rounded off to two decimal places)

Note: 1G=1091 \mathrm{G}=10^{9}
View worked solution

Answer: 2.30:2.40

To find the speed-up obtained by the pipelined design over the non-pipelined design, we compare the average execution time per instruction for both configurations.

1. Non-Pipelined System

  • Clock Frequency (fnpf_{\text{np}}): 1.6 GHz1.6\text{ GHz}
  • Clock Cycle Time (TnpT_{\text{np}}): 11.6 GHz=11.6 ns\frac{1}{1.6\text{ GHz}} = \frac{1}{1.6}\text{ ns}
  • Average Cycles Per Instruction (CPInpCPI_{\text{np}}): 55
  • Average Execution Time per Instruction (ETnpET_{\text{np}}): ETnp=CPInp×Tnp=5×11.6 ns=3.125 nsET_{\text{np}} = CPI_{\text{np}} \times T_{\text{np}} = 5 \times \frac{1}{1.6}\text{ ns} = 3.125\text{ ns}

2. Pipelined System

  • Clock Frequency (fpf_{\text{p}}): 1.2 GHz1.2\text{ GHz}
  • Clock Cycle Time (TpT_{\text{p}}): 11.2 GHz=11.2 ns\frac{1}{1.2\text{ GHz}} = \frac{1}{1.2}\text{ ns}
  • Average Cycles Per Instruction (CPIpCPI_{\text{p}}): Under ideal conditions, the pipeline achieves 11 instruction per clock cycle (Ideal CPI=1CPI = 1). Since 30%30\% of the instructions encounter a stall of 22 cycles: CPIp=Ideal CPI+Average Stall Cycles=1+(0.30×2)=1.6CPI_{\text{p}} = \text{Ideal CPI} + \text{Average Stall Cycles} = 1 + (0.30 \times 2) = 1.6
  • Average Execution Time per Instruction (ETpET_{\text{p}}): ETp=CPIp×Tp=1.6×11.2 ns=1.61.2 ns=43 ns≈1.333 nsET_{\text{p}} = CPI_{\text{p}} \times T_{\text{p}} = 1.6 \times \frac{1}{1.2}\text{ ns} = \frac{1.6}{1.2}\text{ ns} = \frac{4}{3}\text{ ns} \approx 1.333\text{ ns}

3. Speed-up Calculation

The speed-up (SS) is given by the ratio of the execution times:

S=ETnpETp=3.12543=3.125×0.75=2.34375S = \frac{ET_{\text{np}}}{ET_{\text{p}}} = \frac{3.125}{\frac{4}{3}} = 3.125 \times 0.75 = 2.34375

Rounding off to two decimal places, the speed-up obtained is 2.342.34 (which lies within the accepted range of 2.302.30 to 2.402.40).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Instruction Pipelining questions