Skip to content
Official PYQ · 2016

GATE CS 2016 Set 2 Q30 — ALU, Data-path and Control Unit

Explain with AI
Suppose the functions FF and GG can be computed in 55 and 33 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 \leq i \leq 10. Ignoring all other delays, the minimum time required to complete this computation is ____________ nanoseconds.
View worked solution

Answer: 28

We can model this computation as a two-stage pipeline for each of the 10 inputs XiX_i (1≤i≤101 \le i \le 10):

  • Stage 1 (GG): Executed by UGU_G (takes 3 ns3\text{ ns}). We have 22 instances of UGU_G.
  • Stage 2 (FF): Executed by UFU_F (takes 5 ns5\text{ ns}). We have 22 instances of UFU_F.

Since we have 22 instances of UGU_G, we can process the GG operations in pairs of two:

  • G(X1),G(X2)G(X_1), G(X_2) complete at t=3 nst = 3\text{ ns}
  • G(X3),G(X4)G(X_3), G(X_4) complete at t=6 nst = 6\text{ ns}
  • G(X5),G(X6)G(X_5), G(X_6) complete at t=9 nst = 9\text{ ns}
  • G(X7),G(X8)G(X_7), G(X_8) complete at t=12 nst = 12\text{ ns}
  • G(X9),G(X10)G(X_9), G(X_{10}) complete at t=15 nst = 15\text{ ns}

Now, we schedule the FF operations on the 22 instances of UFU_F as soon as their inputs from GG are ready:

  • At t=3 nst = 3\text{ ns}, G(X1)G(X_1) and G(X2)G(X_2) are ready. F(G(X1))F(G(X_1)) and F(G(X2))F(G(X_2)) run from t=3t = 3 to t=8 nst = 8\text{ ns}.
  • At t=8 nst = 8\text{ ns}, F(G(X3))F(G(X_3)) and F(G(X4))F(G(X_4)) start (since G(X3),G(X4)G(X_3), G(X_4) were ready at t=6t = 6) and run until t=13 nst = 13\text{ ns}.
  • At t=13 nst = 13\text{ ns}, F(G(X5))F(G(X_5)) and F(G(X6))F(G(X_6)) start and run until t=18 nst = 18\text{ ns}.
  • At t=18 nst = 18\text{ ns}, F(G(X7))F(G(X_7)) and F(G(X8))F(G(X_8)) start and run until t=23 nst = 23\text{ ns}.
  • At t=23 nst = 23\text{ ns}, F(G(X9))F(G(X_9)) and F(G(X10))F(G(X_{10})) start and run until t=28 nst = 28\text{ ns}.

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

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

Published
Report a correction
Keep exploringMore ALU, Data-path and Control Unit questions