Skip to content
Official PYQ · 2016

GATE CS 2016 Set 2 Q33 — Instruction Pipelining

Explain with AI
Consider a 3 GHz3 \ \text{GHz} (gigahertz) processor with a three stage pipeline and stage latencies τ1,τ2\large\tau_1,\tau_2 and τ3\large\tau_3 such that τ1=3τ24=2τ3\large\tau_1 =\dfrac{3 \tau_2}{4}=2\tau_3. If the longest pipeline stage is split into two pipeline stages of equal latency , the new frequency is __________ GHz\text{GHz}, ignoring delays in the pipeline registers.
View worked solution

Answer: 4

The clock cycle time of a pipeline is determined by the latency of its longest stage. Let the stage latencies be τ1,τ2,\tau_1, \tau_2, and τ3\tau_3. We are given the relationship:

τ1=34τ2=2τ3\tau_1 = \frac{3}{4}\tau_2 = 2\tau_3

Expressing all stage latencies in terms of τ1\tau_1:

  • τ1=τ1\tau_1 = \tau_1
  • τ2=43τ1≈1.33τ1\tau_2 = \frac{4}{3}\tau_1 \approx 1.33\tau_1
  • τ3=12τ1=0.5τ1\tau_3 = \frac{1}{2}\tau_1 = 0.5\tau_1

Comparing the values, the longest stage is τ2\tau_2. Therefore, the clock cycle time of the original pipeline is: T=τ2T = \tau_2

Given that the original frequency is 3 GHz3\text{ GHz}, the clock cycle time TT is: T=τ2=13 nsT = \tau_2 = \frac{1}{3}\text{ ns}

Using this, we can find the latency of the other stages: τ1=34τ2=34×13=14 ns\tau_1 = \frac{3}{4}\tau_2 = \frac{3}{4} \times \frac{1}{3} = \frac{1}{4}\text{ ns} τ3=12τ1=12×14=18 ns\tau_3 = \frac{1}{2}\tau_1 = \frac{1}{2} \times \frac{1}{4} = \frac{1}{8}\text{ ns}

The longest stage (τ2\tau_2) is split into two pipeline stages of equal latency. The latency of each of these new stages is: τ2a=τ2b=τ22=1/32=16 ns\tau_{2a} = \tau_{2b} = \frac{\tau_2}{2} = \frac{1/3}{2} = \frac{1}{6}\text{ ns}

The latencies of the four stages in the new pipeline are: τ1=14 ns,τ2a=16 ns,τ2b=16 ns,τ3=18 ns\tau_1 = \frac{1}{4}\text{ ns}, \quad \tau_{2a} = \frac{1}{6}\text{ ns}, \quad \tau_{2b} = \frac{1}{6}\text{ ns}, \quad \tau_3 = \frac{1}{8}\text{ ns}

The new clock cycle time T′T' is determined by the maximum latency among the new stages: T′=max⁡(14,16,16,18)=14 nsT' = \max\left(\frac{1}{4}, \frac{1}{6}, \frac{1}{6}, \frac{1}{8}\right) = \frac{1}{4}\text{ ns}

Thus, the new frequency f′f' is: f′=1T′=11/4 ns=4 GHzf' = \frac{1}{T'} = \frac{1}{1/4\text{ ns}} = 4\text{ GHz}

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

Published
Report a correction
Keep exploringMore Instruction Pipelining questions