GateAI
Instruction Pipelining

GATE CSE 2016 Set 2 · Q30

NAT2 marksMedium

Time

Suppose the functions FF and GG can be computed in 5 and 3 nanoseconds by functional units UFU_F and UGU_G, respectively. Given two instances of UFU_F and two instances of UGU_G, it is required to implement the computation F(G(Xi))F(G(X_i)) for 1≤i≤101 \le i \le 10. Ignoring all other delays, the minimum time required to complete this computation is _______ nanoseconds.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 28

Instruction Pipelining

We need to evaluate F(G(Xi))F(G(X_i)) for 10 inputs (i=1,2,…,10i = 1, 2, \dots, 10) using 2 units of UGU_G (3 ns3\text{ ns} each) and 2 units of UFU_F (5 ns5\text{ ns} each).

  1. GG-stage (first stage):

    • With 2 units of UGU_G, pairs of inputs are processed every 3 ns3\text{ ns}.

    • G(X1),G(X2)G(X_1), G(X_2) finish at t=3 nst = 3\text{ ns}.

    • G(X3),G(X4)G(X_3), G(X_4) finish at t=6 nst = 6\text{ ns}.

    • G(X5),G(X6)G(X_5), G(X_6) finish at t=9 nst = 9\text{ ns}.

    • G(X7),G(X8)G(X_7), G(X_8) finish at t=12 nst = 12\text{ ns}.

    • G(X9),G(X10)G(X_9), G(X_{10}) finish at t=15 nst = 15\text{ ns}.

  2. FF-stage (second stage - bottleneck stage):

    • The two UFU_F units take 5 ns5\text{ ns} per pair of inputs.

    • At t=3 nst = 3\text{ ns}, the first pair G(X1),G(X2)G(X_1), G(X_2) is ready. Both UFU_F units start processing and complete at t=3+5=8 nst = 3 + 5 = 8\text{ ns}.

    • Subsequent pairs of GG results are already available when UFU_F units finish each batch, so the UFU_F units remain continuously busy after t=3 nst = 3\text{ ns}:

      • Pair 1 (X1,X2X_1, X_2): processed from t=3t = 3 to 8 ns8\text{ ns}

      • Pair 2 (X3,X4X_3, X_4): processed from t=8t = 8 to 13 ns13\text{ ns}

      • Pair 3 (X5,X6X_5, X_6): processed from t=13t = 13 to 18 ns18\text{ ns}

      • Pair 4 (X7,X8X_7, X_8): processed from t=18t = 18 to 23 ns23\text{ ns}

      • Pair 5 (X9,X10X_9, X_{10}): processed from t=23t = 23 to 28 ns28\text{ ns}

Thus, the total time required to complete all 10 computations is 28 nanoseconds.

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 Q30 of the GATE CSE 2016 Set 2 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 GATE CSE 2016 Set 2 has 2.

How GATE tests Instruction Pipelining

More from GATE CSE 2016 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2016 Set 2 · Q30 · NAT

Suppose the functions F and G can be computed in 5 and 3 nanoseconds by functional units UF and UG, respectively. Given two instances of UF and two instances of UG, it is required to implement the computation F(G(Xi)) for 1 ≤ i ≤ 10. Ignoring all other delays, the minimum time required to complete this computation is … nanoseconds.

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.