UNIVERSAL GATES
1
Outline
Universal Gates
Universal Gate - NAND
NAND Implementation
AOI Vs. NAND
Universal Gate - NOR
NOR Implementation
AOI Vs. NOR
2
Universal Gate
A universal gate is a gate which can implement any Boolean function without
need to use any other gate type. The NAND and NOR gates are universal gates. In
practice, this is advantageous since NAND and NOR gates are economical and
easier to fabricate and are the basic gates used in all IC digital logic families
3
Universal Gate - NAND
The basic function of the NAND gate.
How a NAND gate can be used to replace an AND gate, an OR gate, or an INVERTER gate.
How a logic circuit implemented with AOI logic gates can be re-implemented using only
NAND gates.
That using a single gate type, in this case NAND, will reduce the number of integrated circuits
(IC) required to implement a logic circuit.
AOI Logic NAND Logic
More ICs = More $$ Less ICs = Less $$
4
NAND Gate
The NAND gate represents the complement of the AND operation. It’s name is an
abbreviation of NOT AND.
X
Z X YXY
Y
X Y Z
0 0 1
0 1 1
1 0 1
1 1 0
5
NAND Gate as an Inverter Gate
X X X (Before
Bubble)
X ZX
X Z
0 1
Equivalent to Inverter
1 0
6
NAND Gate as an AND Gate
XY
X
Z XY XY
Y
NAND Gate Inverter
X Y Z
0 0 0
0 1 0
Equivalent to AND Gate
1 0 0
1 1 1
7
NAND Gate as an OR Gate
X
X Y
Z XY XY XY
Y
Inverters NAND Gate
X Y Z
0 0 0
0 1 1
Equivalent to OR Gate
1 0 1
1 1 1
8
NAND Gate Equivalent to AOI Gates
AND OR INVERTER
9
Process for NAND Implementation
1. If starting from a logic expression, implement the design with AOI logic.
2. In the AOI implementation, identify and replace every AND, OR, and
INVERTER gate with its NAND equivalent.
3. Redraw the circuit.
4. Identify and eliminate any double inversions (i.e., back-to-back inverters).
5. Redraw the final circuit.
10
NAND Implementation
Example:
Design a NAND Logic Circuit that is equivalent to the AOI circuit shown
below.
BC A C
11
NAND Implementation (cont.)
Solution – Step 2
Identify and replace every AND,OR, and INVERTER gate with its NAND
equivalent.
12
NAND Implementation (cont.)
Solution – Step 3
Redraw the circuit.
13
NAND Implementation (cont.)
Solution – Step 4
Identify and eliminate any double inversions.
14
NAND Implementation (cont.)
Solution – Step 5
Redraw the circuit.
15
Proof of Equivalence
BC
C
BCAC
Z BCAC
AC
Z BCA C
16
AOI Vs. NAND
IC Gates Gate / # ICs
Type IC IC Gates Gate / # ICs
74LS0 1 6 1 Type IC
4 74LS0 4 4 1
74LS0 2 4 1 0
8 Total Number of ICs → 1
74LS3 1 4 1
2 17
Universal Gate - NOR
The basic function of the NOR gate.
How a NOR gate can be used to replace an AND gate, an OR gate, or an INVERTER gate.
How a logic circuit implemented with AOI logic gates can be re-implemented using only
NOR gates.
That using a single gate type, in this case NOR, will reduce the number of integrated
circuits (IC) required to implement a logic circuit.
AOI Logic NAND Logic
More ICs = More $$ Less ICs = Less $$
18
NOR Gate
The NOR gate represents the complement of the OR operation. It’s name is an abbreviation
of NOT OR.
X
ZXYX Y
Y
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0
19
NOR Gate as an Inverter Gate
X X X (Before Bubble)
X ZX
X Z
0 1
Equivalent to Inverter
1 0
20
NOR Gate as an OR Gate
XY
X
Z XY XY
Y
NOR Gate “Inverter”
X Y Z
0 0 0
0 1 1
Equivalent to OR Gate
1 0 1
1 1 1
21
NOR Gate as an AND Gate
X
X Y
ZXYXYXY
Y
“Inverters” NOR Gate
X Y Z
0 0 0
0 1 0
1 0 0 Equivalent to AND Gate
1 1 1
22
NOR Gate Equivalent to AOI Gates
AND OR INVERTER
23
Process for NOR Implementation
1. If starting from a logic expression, implement the design with AOI logic.
2. In the AOI implementation, identify and replace every AND, OR, and
INVERTER gate with its NOR equivalent.
3. Redraw the circuit.
4. Identify and eliminate any double inversions. (i.e. back-to-back inverters)
5. Redraw the final circuit.
24
NOR Implementation
Example:
Design a NOR Logic Circuit that is equivalent to the AOI circuit shown below.
BC A C
25
NOR Implementation (cont.)
Solution – Step 2
Identify and replace every AND,OR, and INVERTER gate with its NOR equivalent.
26
NOR Implementation (cont.)
Solution – Step 3
Redraw the circuit.
27
NOR Implementation (cont.)
Solution – Step 4
Identify and eliminate any double inversions.
28
NOR Implementation (cont.)
Solution – Step 5
Redraw the circuit.
29
Proof of Equivalence
BCBCBC
C
B BCA C
C
Z BCA C
BCA C
A
ACACAC
30
AOI Vs. NOR
IC Gates Gate / # ICs
Type IC IC Type Gates Gate / # ICs
74LS04 1 6 1 IC
74LS08 2 4 1 74LS02 7 4 2
Total Number of ICs → 2
74LS32 1 4 1
Total Number of ICs → 3
31