GateAI
Instruction Pipelining

GATE CSE 2014 Set 1 · Q43

NAT2 marksMedium

Time

Consider a 6-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on this 6-stage pipeline, the speedup achieved with respect to non-pipelined execution if 25% of the instructions incur 2 pipeline stall cycles is ________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 4

Instruction Pipelining

Let the clock cycle time of each pipeline stage be τ\tau.

  1. Non-pipelined execution time per instruction: Since there are 6 perfectly balanced stages,

    Timenon-pipelined=6×τ\text{Time}_{\text{non-pipelined}} = 6 \times \tau
  2. Pipelined execution time per instruction:

    • Ideal CPI=1\text{CPI} = 1

    • 25%25\% of the instructions incur 22 stall cycles, so average stalls per instruction:

      Stall cycles=0.25×2=0.5\text{Stall cycles} = 0.25 \times 2 = 0.5
    • Average CPIpipeline=1+0.5=1.5\text{CPI}_{\text{pipeline}} = 1 + 0.5 = 1.5

    • Average time per instruction in pipeline:

      Timepipelined=CPIpipeline×τ=1.5τ\text{Time}_{\text{pipelined}} = \text{CPI}_{\text{pipeline}} \times \tau = 1.5\tau
  3. Speedup:

    Speedup=Timenon-pipelinedTimepipelined=6τ1.5τ=4\text{Speedup} = \frac{\text{Time}_{\text{non-pipelined}}}{\text{Time}_{\text{pipelined}}} = \frac{6\tau}{1.5\tau} = 4

Thus, the speedup achieved is 4.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Instruction Pipelining previous year question is Q43 of the GATE CSE 2014 Set 1 paper. Find more GATE CSE PYQs on Instruction Pipelining in Computer Organization and Architecture, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Instruction Pipelining PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Instruction Pipelining in GATE CSE

Instruction Pipelining has 25 GATE CSE PYQs across 20 papers from 2011 to 2026. 16 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2014 Set 1.

How GATE tests Instruction Pipelining

More from GATE CSE 2014 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 1 · Q43 · NAT

Consider a 6-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on this 6-stage pipeline, the speedup achieved with respect to non-pipelined execution if 25% of the instructions incur 2 pipeline stall cycles is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.