Skip to content
Official PYQ · 2004

GATE CS 2004 Q69 — Instruction Pipelining

Explain with AI

A 4-stage pipeline has the stage delays as 150150, 120120, 160160 and 140140 nanosecondsnanoseconds, respectively. Registers that are used between the stages have a delay of 55 nanosecondsnanoseconds each. Assuming constant clocking rate, the total time taken to process 10001000 data items on this pipeline will be:

Choose one option
View worked solution

Answer: C

To find the total time taken to process 10001000 data items on the pipeline, we first need to determine the clock cycle time (tpt_p) of the pipeline.

Step 1: Calculate the Clock Cycle Time (tpt_p)

The clock cycle time of a pipeline is determined by the delay of the slowest stage plus the overhead of the interface registers:

tp=max⁡(Stage Delays)+Register Delayt_p = \max(\text{Stage Delays}) + \text{Register Delay}

Given stage delays are 150 ns150\text{ ns}, 120 ns120\text{ ns}, 160 ns160\text{ ns}, and 140 ns140\text{ ns}, and the register delay is 5 ns5\text{ ns}:

tp=max⁡(150,120,160,140)+5=160+5=165 nst_p = \max(150, 120, 160, 140) + 5 = 160 + 5 = 165\text{ ns}

Step 2: Calculate the Total Execution Time (TT)

The total time taken to process NN tasks in a kk-stage pipeline is given by the formula:

T=(k+N−1)×tpT = (k + N - 1) \times t_p

Where:

  • k=4k = 4 (number of stages)
  • N=1000N = 1000 (number of data items)
  • tp=165 nst_p = 165\text{ ns}

Substituting these values into the formula:

T=(4+1000−1)×165 nsT = (4 + 1000 - 1) \times 165\text{ ns}

T=1003×165 ns=165,495 nsT = 1003 \times 165\text{ ns} = 165,495\text{ ns}

Step 3: Convert to Microseconds

T=165,4951000 μs=165.495 μs≈165.5 μsT = \frac{165,495}{1000}\ \mu\text{s} = 165.495\ \mu\text{s} \approx 165.5\ \mu\text{s}

Therefore, the total time taken is approximately 165.5 μs165.5\ \mu\text{s}, which corresponds to Option C.

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

Published
Report a correction
Keep exploringMore Instruction Pipelining questions