Logic circuits

When is the output of a 2-input AND gate 1?

  1. AWhen both inputs are 1
  2. BWhen both inputs are 0
  3. CWhen either one of the inputs is 1
Show answer and explanation

Answer: A. When both inputs are 1

An AND gate (logical conjunction) outputs 1 only when all inputs are 1, and 0 otherwise. It behaves like switches in series, used for control that acts only when every condition holds. Typical uses include clock gating, which ANDs the clock with an enable so the clock passes only when needed, and bit masking (x AND 0x0F keeps the lower four bits). Because simply ANDing the clock can cause glitches, practical designs use a dedicated cell that latches the enable before the AND.

  • A. Correct. AND outputs 1 only when all inputs are 1.
  • B. Outputting 1 only when both inputs are 0 is the NOR gate.
  • C. Also outputting 1 when only one input is 1 (as well as when both are 1) is the OR gate.