Universal Gates
Universal Gates
1
Outline
Universal Gates
Universal Gate - NAND
NAND Implementation
NOR Implementation
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.
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
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
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.
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
13
NAND Implementation (cont.)
Solution – Step 4
14
NAND Implementation (cont.)
Solution – Step 5
15
Proof of Equivalence
BC
C
BCAC
Z BCAC
AC
Z BCA C
16
AOI Vs. NAND
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.
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
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
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.
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
27
NOR Implementation (cont.)
Solution – Step 4
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
31