Section 11.1 Basic Logic GatesNOT GateDerived Gates
Logic gates are the foundation of digital circuits. They process binary inputs (
0
s and 1
s) to produce specific outputs, defined by truth tables. The basic logic gates are AND, OR, and NOT which correspond to the logical operators reviewed in previous sections. Other commonly used gates as NAND, NOR, XOR, and XNOR are composites of the basic ones. Each gate has its own symbol and truth table representing outputs for all combinations of inputs. These gates combine to form complex systems such as CPUs and memory circuits.The
AND
gate produces a 1
only when both inputs are 1
.Truth table for the
AND
gate:The
OR
gate produces a 1
if at least one input is 1
.Truth table for the
OR
gate:The
NOT
gate inverts the input: 1
becomes 0
, and 0
becomes 1
.Truth table for the
NOT
gate:NAND
: Produces 0
only when both inputs are 1
.NOR
: Produces 1
only when both inputs are 0
.XOR
: Produces 1
when inputs differ.XNOR
: Produces 1
when inputs are the same.