Logic Gates: The Logic "NAND" Gate
Logic Gates: The Logic "NAND" Gate
A logic gate is a physical model of a Boolean function, that is, it performs a logical
operation on one or more logic inputs and produces a single logic output. Logic
gates are primarily implemented electronically using diodes or transistors, but can
also be constructed using electromagnetic relays (relay logic), fluidic logic,
pneumatic logic, optics, molecules, or even mechanical elements.
With amplification, logic gates can be cascaded in the same way that Boolean
functions can be composed, allowing the construction of a physical model of all of
Boolean logic, and therefore, all of the algorithms and mathematics that can be
described with Boolean logic.
Definition
The Logic NAND Gate is a combination of the digital logic AND gate with that of
an inverter or NOT gate connected together in series. The NAND (Not - AND) gate
has an output that is normally at logic level "1" and only goes "LOW" to logic level
"0" when ALL of its inputs are at logic level "1". The Logic NAND Gate is the
reverse or "Complementary" form of the AND gate.
Then we can define the operation of a 2-input logic NAND gate as being:
Symbols
There are three symbols for NAND gates: the 'distinctive' (MIL/ANSI) symbol and
the 'rectangular' IEC symbol, as well as a deprecated DIN symbol sometimes
found on old schematics. For more information see logic gate symbols.
Logic NAND Gates are available using digital circuits to produce the desired logical
function and is given a symbol whose shape is that of a standard AND gate with a
circle, sometimes called an "inversion bubble" at its output to represent the NOT
gate symbol with the logical operation of the NAND gate given as.
The Digital Logic "NAND" Gate
2-input NAND Gate
Symbol Truth Table
B A Q
0 0 1
0 1 1
1 0 1
2-input NAND Gate
1 1 0
The NAND function can also have any number of individual inputs and commercial
available NAND Gate i.c.´s are available in standard 2, 3, or 4 input types. If
additional inputs are required, then the standard NAND gates can be cascaded
together to provide more inputs for example.
The Boolean Expression for this 4-input logic NAND gate will therefore
be: Q = A.B.C.D
If the number of inputs required is an odd number of inputs any "unused" inputs
can be held HIGH by connecting them directly to the power supply using suitable
"Pull-up" resistors.
The Logic NAND Gate function is sometimes known as the Sheffer Stroke
Function and is denoted by a vertical bar or upwards arrow operator, for
example, A NAND B = A|B or A↑B.
As well as the three common types above, Ex-Or, Ex-Nor and standard NOR gates
can be formed using just individual NAND gates.
NOT GATE
A NOT gate is made by joining the inputs of a NAND gate. Since a NAND gate is
equivalent to an AND gate followed by a NOT gate, joining the inputs of a NAND
gate leaves only the NOT part.
Truth Table
Input A Output Q
0 1
1 0
AND
An AND gate is made by following a NAND gate with a NOT gate as shown below.
This gives a NOT NAND, i.e. AND.
If the truth table for a NAND gate is examined, it can be seen that if any of the inputs
are 0, then the output will be 1. However to be an OR gate, if any input is 1, the output
must also be 1. Therefore, if the inputs are inverted, any high input will trigger a high
output.
NOR