GATE Computer ScienceVery hardGATE CS
Two 2-input NAND gates G1 and G2 are used. Both inputs of G1 come from the signals a, b, c (the same signal may be used on both inputs); the inputs of G2 come from a, b, c or the output of G1 (again repetition is allowed). How many different Boolean functions of a, b, c can appear at the output of G2?
- A. 13
- B. 28
- C. 16
- D. 22
Correct answer: D. 22
G1 itself realises 6 functions (NAND of two different inputs: 3, NOT of an input: 3). Enumerating all G2 input choices gives 22 distinct functions, 16 of which actually use G1's output; 6 more come from circuits where G2 ignores G1 (NAND of two of a, b, c, or NOT of one).
More Digital Logic questions
- A 5-bit Galois LFSR for the polynomial x⁵ + x² + 1 shifts right on each clock; whenever the bit shifted out (the LSB) was 1, the shifted…
- A synchronous 3-bit counter has next-state equations D2 = Q1 ⊕ Q0, D1 = Q2 and D0 = Q1' (state Q2 Q1 Q0). Let c be the number of states in…
- A ring of 6 combinational blocks with delays 4, 7, 3, 5, 2 and 6 ns has 3 registers that may be repositioned anywhere on the ring by…
- A transparent-high D latch and a rising-edge D flip-flop both receive the same D signal and clock. The clock is high during 0–10, 20–30…
- What is the Excess-3 code of the decimal number 592?
- What is the 8-bit two's complement representation of −45?