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)?

  1. A. 3
  2. B. 5
  3. C. 6
  4. 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

Exams that ask this topic