Physics (JEE/NEET)Very hardJEE Main · JEE Advanced

What is the minimum number of 2-input NAND gates needed to build a 2-input XNOR gate (inputs A and B available only in true form)?

  1. A. 5
  2. B. 4
  3. C. 3
  4. D. 6

Correct answer: A. 5

XOR needs 4 NAND gates (N₁ = (AB)′, then (A·N₁)′, (B·N₁)′ and their NAND). XNOR is the inverse of XOR, so one more NAND (as an inverter) is needed: 5. An exhaustive search over circuits finds no 4-gate XNOR.

More Semiconductor Electronics questions

Exams that ask this topic