GATE Computer ScienceModerateGATE CS (PYQ pattern)
A 17-input XOR (parity) function is built only from 3-input XOR gates (no 2-input gates). What are the minimum number of gates and the minimum depth (levels of gates)?
- A. 8 gates, depth 4
- B. 8 gates, depth 3
- C. 9 gates, depth 3
- D. 6 gates, depth 3
Correct answer: B. 8 gates, depth 3
Each 3-input gate turns 3 signals into 1, reducing the count by 2: 17 → 1 needs (17 − 1)/2 = 8 gates. Depth d can combine at most 3^d inputs: 3² = 9 < 17 ≤ 27 = 3³, so depth ≥ 3, and it is reached with 8 gates: 5 gates on 15 inputs (7 signals left), then 2 gates (3 left), then 1.
More Digital Logic questions
- A 1.2 MHz clock drives a mod-5 counter whose most significant output (high for 1 of every 5 counts) clocks a 4-flip-flop Johnson counter…
- A 5-bit Johnson counter Q4Q3Q2Q1Q0 shifts right (Q3 ← Q4, …, Q0 ← Q1) with Q4 ← Q0' and starts at 00000. Each of its 10 states is decoded…
- Flip-flops FF1 and FF2 form a loop: logic of 4.0 ns (max) from FF1 to FF2 and 3.2 ns (max) from FF2 back to FF1. Clock-to-Q is 1.1 ns and…
- A 4-bit ring counter FF0 → FF1 → FF2 → FF3 → FF0 has no logic between flip-flops. Clock-to-Q is 0.4 ns (min) to 0.6 ns (max), setup 0.2…
- A chain of seven logic blocks with delays 1.5, 2.0, 1.0, 2.5, 1.0, 1.5 and 0.5 ns (in this order) is to be cut into three pipeline stages…
- A decimal code is self-complementing if inverting all four bits of the code for digit d gives the code for 9 − d. Which of the following…