GATE Computer ScienceHardNIELIT Scientist B
What is the minimum number of 2-input NAND gates needed to realise a 2-input XOR gate (no other gate types, complemented inputs not available)?
- A. 3
- B. 5
- C. 6
- D. 4
Correct answer: D. 4
The classic construction uses N1 = (A·B)′, then N2 = (A·N1)′ and N3 = (B·N1)′, and finally (N2·N3)′: 4 gates.
More Digital Logic questions
- A Mealy machine detects the sequence 1011 with overlap allowed and outputs 1 when the last four inputs are 1011. For the input stream…
- A 3-bit synchronous machine Q2Q1Q0 uses D flip-flops with D2 = Q1, D1 = Q0 and D0 = (Q2 ⊕ Q1)′. Starting from 001, how many distinct…
- A 5-input function F(A,B,C,D,E) is 1 exactly when the unsigned number ABCDE (A is the MSB, 0 counts as divisible) is divisible by 3 or by…
- What is the minimum total number of literals in a sum-of-products expression for F(A,B,C,D) = Σm(0,2,3,5,7,8,10,11,13,15) with don't-cares…
- How many Boolean functions of four variables are monotone (changing an input from 0 to 1 never changes the output from 1 to 0), including…
- How many Boolean functions of four variables are both monotone and self-dual?