Logic circuits

What does a two-input NAND gate do when its two inputs are tied together to form a single input?

  1. AAND
  2. BNOT (inverter)
  3. CXOR
Show answer and explanation

Answer: B. NOT (inverter)

Feeding the same value A to both inputs gives NOT(A AND A) = NOT A, so the NAND acts as an inverter. With NOT available, AND is NAND followed by NOT, and OR is NAND of inverted inputs (De Morgan), so any logic circuit can be built from NAND alone; NOR is equally universal. In practice, tying inputs together increases input capacitance, so a dedicated inverter is more efficient.