GATE Computer ScienceEasyGATE CS (PYQ pattern)
An 8-bit Gray-to-binary converter computes b_i = g7 ⊕ g6 ⊕ … ⊕ g_i. Built as a ripple chain (b_i = b_(i+1) ⊕ g_i) it uses 7 two-input XOR gates with depth 7. If instead every b_i is computed by its own balanced XOR tree, with no gates shared between outputs, how many 2-input XOR gates are needed and what is the worst-case depth?
- A. 28 gates, depth 3
- B. 28 gates, depth 4
- C. 36 gates, depth 3
- D. 7 gates, depth 3
Correct answer: A. 28 gates, depth 3
b_i XORs 8 − i Gray bits, so its tree needs 7 − i gates and depth ⌈log₂(8 − i)⌉. Gate count 0 + 1 + … + 7 = 28; the deepest output, b0 with 8 inputs, has depth 3.
More Digital Logic questions
- A 4-bit synchronous counter Q3Q2Q1Q0 (Q0 the LSB) built from T flip-flops must add 3 modulo 16 on every clock (0 → 3 → 6 → 9 → … → 13 →…
- A 3-bit synchronous counter Q2Q1Q0 uses T flip-flops with T2 = Q1Q0, T1 = Q0 and T0 = Q2'. Starting from 000, what is the state after 10…
- How many Boolean functions f(a,b,c,d,e) are invariant under the cyclic shift of their inputs, f(a,b,c,d,e) = f(b,c,d,e,a), and are also…
- How many Boolean functions f(a,b,c,d) satisfy BOTH f(a,b,c,d) = f(b,a,c,d) and f(a,b,c,d) = f(c,d,a,b) for all inputs?
- A divide-by-50 circuit (one output pulse cycle per 50 clock cycles) is built as (i) a ring counter, (ii) a Johnson counter, (iii) a binary…
- A function is given as f(A,B,C,D) = Σm(0, 2, 5, 7, 8, 10, 13, 15). Its minimal sum-of-products expression is: