Professional Documents
Culture Documents
Implementation Using Universal Gates - Nand NOR: 15EEE302 SY
Implementation Using Universal Gates - Nand NOR: 15EEE302 SY
Implementation Using Universal Gates - Nand NOR: 15EEE302 SY
NAND
NOR
15EEE302
SY
Universal Gate – NAND
• NAND gate can be used to replace an AND gate, an OR gate, or
an INVERTER gate.
• logic circuit implemented with AOI logic gates can be re-
implemented using only NAND gates.
• using a single gate type, in this case NAND, will reduce the
SY
15EEE302
number of integrated circuits (IC) required to implement a
logic circuit.
X
Z XY X Y
Y
SY
15EEE302
X Y Z
0 0 1
0 1 1
1 0 1
1 1 0
3
NAND Gate as an Inverter Gate
X X X (Before Bubble)
X ZX
SY
15EEE302
X Z
0 1
Equivalent to Inverter
1 0
4
NAND Gate as an AND Gate
XY
X
Z XY XY
Y
SY
15EEE302
NAND Gate Inverter
X Y Z
0 0 0
0 1 0
Equivalent to AND Gate
1 0 0
1 1 1 5
NAND Gate as an OR Gate
X
X Y
Z XY XY XY
Y
SY
15EEE302
Inverters NAND Gate
X Y Z
0 0 0
0 1 1
Equivalent to OR Gate
1 0 1
1 1 1 6
NAND Gate Equivalent to AOI Gates
AND OR INVERTER
SY
15EEE302
7
Process for NAND Implementation
1. 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.
SY
15EEE302
3. Redraw the circuit.
4. Identify and eliminate any double inversions (i.e., back-to-
back inverters).
5. Redraw the final circuit.
8
NAND Implementation
Example:
Design a NAND Logic Circuit that is equivalent to the AOI circuit
shown below.
SY
15EEE302
BC A C
9
NAND Implementation
Solution – Step 2
Identify and replace every AND,OR, and INVERTER gate with its
NAND equivalent.
SY
15EEE302
10
NAND Implementation
Solution – Step 3
SY
15EEE302
11
NAND Implementation
Solution – Step 4
SY
15EEE302
12
NAND Implementation
Solution – Step 5
SY
15EEE302
13
Proof of Equivalence
SY
15EEE302
C BC
BCAC
Z BCAC
AC
Z BCA C 14
AOI vs. NAND
SY
15EEE302
IC Type Gates Gate / IC # ICs IC Type Gates Gate / IC # ICs
74LS04 1 6 1 74LS00 4 4 1
74LS08 2 4 1 Total Number of ICs → 1
74LS32 1 4 1
15
Total Number of ICs → 3
SY
15EEE302
Universal Gate – NOR
16
Universal Gate – NOR
• NOR gate can be using to replace an AND gate, an OR gate or
an INVERTER gate.
• logic circuit implemented with AOI logic gates could be re-
implemented using only NOR gates
• Single gate type, in this case NOR, will reduce the number of
SY
15EEE302
integrated circuits (IC) required to implement a logic circuit.
17
X
Z XYX Y
Y
SY
15EEE302
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0
18
NOR Gate as an Inverter Gate
X X X (Before Bubble)
X ZX
SY
15EEE302
X Z
0 1
Equivalent to Inverter
1 0
19
NOR Gate as an OR Gate
XY
X
Z XY XY
Y
SY
15EEE302
NOR Gate “Inverter”
X Y Z
0 0 0
0 1 1
Equivalent to OR Gate
1 0 1
1 1 1 20
NOR Gate as an AND Gate
X
X Y
Z XYXY XY
Y
SY
15EEE302
“Inverters” NOR Gate
X Y Z
0 0 0
0 1 0
Equivalent to AND Gate
1 0 0
1 1 1 21
NOR Gate Equivalent of AOI Gates
AND OR INVERTER
SY
15EEE302
22
Process for NOR Implementation
1. 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.
SY
15EEE302
3. Redraw the circuit.
4. Identify and eliminate any double inversions. (i.e. back-to-
back inverters)
5. Redraw the final circuit.
23
NOR Implementation
Example:
Design a NOR Logic Circuit that is equivalent to the AOI circuit
shown below.
SY
15EEE302
BC A C
24
NOR Implementation
Solution – Step 2
Identify and replace every AND,OR, and INVERTER gate with its
NAND equivalent.
SY
15EEE302
25
NOR Implementation
Solution – Step 3
Redraw Circuit.
SY
15EEE302
26
NOR Implementation
Solution – Step 4
SY
15EEE302
27
NOR Implementation
Solution – Step 5
Redraw Circuit.
SY
15EEE302
28
Proof of Equivalence
SY
15EEE302
BCBCBC
C
B BCA C
C
Z BCA C
BCA C 29
A
ACACAC
AOI vs NOR
SY
15EEE302
IC Type Gates Gate / IC # ICs IC Type Gates Gate / IC # ICs
74LS04 1 6 1 74LS02 7 4 2
74LS08 2 4 1 Total Number of ICs → 2
74LS32 1 4 1
30
Total Number of ICs → 3
15EEE302
31
SY
15EEE302
32
SY
15EEE302
33
SY
15EEE302
34
SY
EX-OR using NAND
SY
15EEE302
35
EX-OR using NAND
SY
15EEE302
36
EX-OR using NAND
SY
15EEE302
37
EX-OR using NOR
SY
15EEE302
38
EX-NOR using NAND
SY
15EEE302
39
EX-NOR using NOR
SY
15EEE302
40
EX-NOR using NOR
SY
15EEE302
41
15EEE302
42
SY
15EEE302
43
SY
15EEE302
44
SY
15EEE302
45
SY
15EEE302
46
SY
15EEE302
47
SY
15EEE302
48
SY
15EEE302
49
SY
15EEE302
50
SY
15EEE302
51
SY