Skip to content
Official PYQ · 2000

GATE CS 2000 Q1.8 — Instruction Pipelining

Explain with AI

Comparing the time T1 taken for a single instruction on a pipelined CPU with time T2 taken on a non-pipelined but identical CPU, we can say that

Choose one option
View worked solution

Answer: B

To compare the time taken for a single instruction on a pipelined CPU (T1T_1) versus a non-pipelined CPU (T2T_2), let us analyze how instruction execution time is determined in both cases.

1. Non-Pipelined CPU (T2T_2)

In a non-pipelined CPU, an instruction is executed sequentially through all its stages. The total time taken (T2T_2) is the sum of the delays of each individual stage:

T2=∑i=1ktiT_2 = \sum_{i=1}^{k} t_i

where tit_i is the delay of stage ii, and kk is the number of stages.

2. Pipelined CPU (T1T_1)

In a pipelined CPU, the clock cycle time (tpt_p) is determined by the slowest stage delay plus the overhead of the pipeline registers (τreg\tau_{reg}):

tp=max⁡(t1,t2,…,tk)+τregt_p = \max(t_1, t_2, \dots, t_k) + \tau_{reg}

Since a single instruction must pass through all kk stages to complete, the total time taken for one instruction to go from start to finish (latency) is:

T1=k×tp=k×(max⁡(ti)+τreg)T_1 = k \times t_p = k \times \left(\max(t_i) + \tau_{reg}\right)

Comparison

Because the clock period of the pipeline is bounded by the slowest stage, any stage that is faster than the slowest stage must still wait for the full duration tpt_p. Additionally, the pipeline registers introduce setup and propagation delays (τreg≥0\tau_{reg} \ge 0).

Mathematically, since max⁡(ti)≥ti\max(t_i) \ge t_i for all ii:

k×max⁡(ti)≥∑i=1ktik \times \max(t_i) \ge \sum_{i=1}^{k} t_i

Therefore, we have:

T1≥T2T_1 \ge T_2

Thus, a single instruction takes more time (or at least equal time) to complete in a pipelined CPU compared to an identical non-pipelined CPU. Pipelining improves throughput (the rate of instruction completion), not the latency of an individual instruction.

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

Published
Report a correction
Keep exploringMore Instruction Pipelining questions