Lecture 31
Lecture 31
Inverter
The inverter (NOT circuit) performs the operation called inversion or complementation. The inverter
changes one logic level to the opposite level. In terms of bits, it changes a 1 to a 0 and a 0 to a 1.
The negation indicator is a “bubble” ( ) that indicates inversion or complementation when it
appears on the input or output of any logic element. The truth table for inverter is also shown in
the figure.
Fig. 1: An inverter
AND Gate
The AND gate is one of the basic gates that can be combined to form any logic function. An AND
gate can have two or more inputs and performs what is known as logical multiplication. The term
gate is used to describe a circuit that performs a basic logic operation. The AND gate is composed
of two or more inputs and a single output, as indicated by the standard logic symbols shown in
Fig. 2. Inputs are on the left, and the output is on the right in each symbol. Gates with two inputs
are shown; however, an AND gate can have any number of inputs greater than one. An AND
gate produces a HIGH output only when all of the inputs are HIGH. When any of the inputs is
LOW, the output is LOW. Therefore, the basic purpose of an AND gate is to determine when
certain conditions are simultaneously true, as indicated by HIGH levels on all of its inputs, and
to produce a HIGH on its output to indicate that all these conditions are true.
X = AB
NOR Gate
The NOR gate, like the NAND gate, is a useful logic element because it can also be used as a
universal gate; that is, NOR gates can be used in combination to perform the AND, OR, and
inverter operations. The term NOR is a contraction of NOT-OR and implies an OR function with
an inverted (complemented) output. The standard logic symbol for a 2-input NOR gate and its
equivalent OR gate followed by an inverter are shown in Fig. 4.
The Boolean expression for the output of a 2-input NOR gate can be written as
𝑋 = ̅̅̅̅̅̅̅̅̅
𝐴 + 𝐵
Exclusive OR Gate
Exclusive-OR and exclusive-NOR gates are formed by a combination of other gates already
discussed. However, because of their fundamental importance in many applications, these gates
are often treated as basic logic elements with their own unique symbols. Standard symbols for an
exclusive-OR (XOR for short) gate are shown in Fig. 5. The XOR gate has only two inputs.