GATE Computer ScienceHardGATE CS (PYQ pattern)
A 32-bit logical right shifter (shift distance 0-31) has 5 levels, level j shifting by 2^j or not. A position whose shifted-in input would be the constant 0 needs only an AND gate, not a multiplexer. How many genuine 2:1 multiplexers are needed?
- A. 160
- B. 128
- C. 129
- D. 96
Correct answer: C. 129
Level j passes 32 positions; the top 2^j positions would receive 0 when shifting, so they are AND gates and the other 32 − 2^j are multiplexers. Σ (32 − 2^j) for j = 0..4 = 160 − 31 = 129. A rotator would need all 160.
More Digital Logic questions
- A 3-to-8 decoder has active-low outputs Y0'..Y7' (Yi' = 0 only for input code i). To realise F(A,B,C) = Σm(0,1,2,4,5,7) with the fewest…
- An 8:1 multiplexer with S2 = B, S1 = C, S0 = D (S2 the most significant select) realises F(A,B,C,D) = Σm(2,3,5,8,9,12,13,15), where A is…
- A single 4:1 multiplexer has select inputs S1 = A and S0 = B. Each of its four data inputs is connected to one of 0, 1, A, B or C (no…
- In a 4-bit carry-lookahead unit each carry C1, C2, C3, C4 is produced by its own flat two-level AND-OR circuit from g0..g3, p0..p3 and C0…
- A full subtractor (A − B − Bin, giving difference D and borrow-out Bout) is to be built from one full adder (inputs x, y, z; outputs sum S…
- In a 4-bit ripple-carry adder with no carry-in, for how many of the 256 operand pairs (A, B) is the carry generated at stage 0 (A0 = B0 =…