Fundamentals of Logic Gates
Fundamentals of Logic Gates
b. AND Gate
The AND gate is a digital logic gate that implements logical conjunction - it
behaves according to the truth table to the right. A HIGH output (1) results
only if both the inputs to the AND gate are HIGH (1). If neither or only one
input to the AND gate is HIGH, a LOW output results. In another sense, the
function of AND effectively finds the minimum between two binary digits, just
as the OR function finds the maximum.
Truth Table
MIL/ANSI Symbol IEC Symbol DIN Symbol
c. NOT Gate
In digital logic, an inverter or NOT gate is a logic gate which implements
logical negation. The truth table is shown on the right.
Truth Table
INPUT OUTPUT
A NOT A
0 1
1 0
a. NAND Gate
Truth Table
INPUT OUTPUT
A B A NAND B
0 0 1
0 1 1
1 0 1
1 1 0
NAND Gate
b. NOR Gate
The NOR gate is a digital logic gate that implements logical NOR - it
behaves according to the truth table to the right. A HIGH output (1)
results if both the inputs to the gate are LOW (0). If one or both input is
HIGH (1), a LOW output (0) results. NOR is the result of the negation of
the OR operator. NOR is a functionally complete operation—combinations
of NOR gates can be combined to generate any other logical function. By
contrast, the OR operator is monotonic as it can only change LOW to HIGH
but not vice versa.
In most, but not all, circuit implementations, the negation comes for free
—including CMOS and TTL. In such logic families, the only way to
implement OR is with 2 or more gates, such as a NOR followed by an
inverter. A significant exception is some forms of the domino logic family.
Truth Table
INPUT OUTPUT
A B A NOR B
0 0 1
0 1 0
1 0 0
1 1 0
NOR Gate
The XOR gate (sometimes EOR gate) is a digital logic gate that
implements exclusive disjunction - it behaves according to the truth table
above. A HIGH output (1) results if one, and only one, of the inputs to the
gate is HIGH (1). If both inputs are LOW (0) or both are HIGH (1), a LOW
output (0) results.
XOR gate is short for exclusive OR. This means that precisely one input
must be 1 (true) for the output to be 1 (true). A way to remember XOR is
"one or the other but not both."
INPUT OUTPUT
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0
INPUT OUTPUT
A B A XNOR B
0 0 1
0 1 0
1 0 0
1 1 1
Truth Table
Basic Logic Diagrams Basic logic diagrams are used to show the
operation of a particular unit or component. Basic logic symbols are
shown in their proper relationship so as to show operation only in the
most simplified form possible. Figure 6-24 shows a basic logic diagram
for a serial subtractor. The operation of the unit is described briefly in the
next paragraph. In the basic subtractor in figure 6-24, assume you want
to subtract binary 011 (decimal 1) from binary 100 (decimal 4). At time Io,
the 0 input at A and 1 input at B of inhibitor I1 results in a 0 output from
inhibitor I1 and a 1 output from inhibitor I2. The 0 output from I1 and the 1
output from I2 are applied to OR gate G1, producing a 1 output from G1.
The 1 output from I2 is also applied to the delay line. The I output from G1
along with the 0 output from the delay line produces 1 output from I3. The
1 input from G1 and the 0 input from the delay line produce a 0 output
from inhibitor I4. The 0 output from L and the 1 output from I3 are applied
to OR gate G2 producing a 1 output.
Equivalent circuits also can describe and model the electrical properties of
materials or biological systems like the cell membrane. The latter is
modelled as a capacitor (i.e. the lipid bilayer) in parallel with resistance-
battery combinations (i.e. ion channels powered by an ion gradient across
the membrane).
The NAND gate has the property of functional completeness. That is, any
other logic function (AND, OR, etc.) can be implemented using only NAND
gates. An entire processor can be created using NAND gates alone. In TTL ICs
using multiple-emitter transistors, it also requires fewer transistors than any
other gate.
CMOS NAND Gate TTL NAND Gate
The NOR gate is a digital logic gate that implements logical NOR - it behaves
according to the truth table to the right. A HIGH output (1) results if both the
inputs to the gate are LOW (0). If one or both input is HIGH (1), a LOW output
(0) results. NOR is the result of the negation of the OR operator. NOR is a
functionally complete operation—combinations of NOR gates can be
combined to generate any other logical function. By contrast, the OR
operator is monotonic as it can only change LOW to HIGH but not vice versa.
In most, but not all, circuit implementations, the negation comes for free—
including CMOS and TTL. In such logic families, the only way to implement
OR is with 2 or more gates, such as a NOR followed by an inverter. A
significant exception is some forms of the domino logic family.