Skip to main content

GATE CSE 2016CO & Architecture › Control Unit & MicroprogrammingVerified

GATE CSE 2016 PYQ: Suppose the functions F F F and G G G can be computed in 5 5 5 and 3 3 3 nanoseconds by functional units U F…

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 \leq i \leq 10. Ignoring all other delays, the minimum time required to complete this computation is ____________ nanoseconds.

    Answer

    28

    Approach

    Model the two instances of each functional unit as two independent computation chains, each handling 5 of the 10 values of i. The slowest unit is F, taking 5 ns, so after an initial latency to obtain a G output, one F result can emerge every 5 ns from each F unit. Compute the finish time of one chain and then note that the two chains run in parallel.

    The bottleneck is UF, taking 5 ns per F computation. With two UF units, the 10 F computations require 5×5=25 ns of F-unit time. The first F computation must additionally wait for G, adding 3 ns. Hence total minimum time = 25 + 3 = 28 ns.

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.