Introduction To Logic Gates
Introduction To Logic Gates
Introduction To Logic Gates
Gates
Logic Gates
The Inverter
The AND Gate
The OR Gate
The NAND Gate
The NOR Gate
The XOR Gate
The XNOR Gate
a a
OR a+b ≥1 a+b
b b
a a
(a.b)' & (a.b)'
NAND b b
a a
NOR (a+b)' ≥1 (a+b)'
b b
a a
EXCLUSIVE OR a⊕b =1 a⊕b
b b
Logic Gates: The Inverter
The Inverter
A A'
A A' A A' 0 1
1 0
0 0 1 0 1 1 1 0
1’s Complement
Logic Gates: The AND
Gate
The AND Gate
A A &
A.B A.B
B B
A B A.B
0 0 0
0 1 0
1 0 0
1 1 1
Logic Gates: The AND
Gate
Application of the AND Gate
1 sec
A A
Counter
Enable
Enable
1 sec
Register,
Reset to zero decode
between and
frequency
Enable pulses
display
Logic Gates: The OR Gate
The OR Gate
A A ≥
A+B 1 A+B
B B
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
Logic Gates: The NAND
Gate
The NAND Gate
A
(A.B)' ≡ A
(A.B)'
A &
(A.B)'
B B B
A B (A.B)'
0 0 1
0 1 1 ≡
1 0 1
1 1 0 NAND Negative-OR
Logic Gates: The NOR
Gate
The NOR Gate
A
(A+B)' ≡ A
(A+B)'
A ≥
1
(A+B)'
B B B
A B (A+B)'
0 0 1
0 1 0 ≡
1 0 0
1 1 0 NOR Negative-AND
Logic Gates: The XOR
Gate
The XOR Gate
A A =1
A⊕B A⊕B
B B
A B A ⊕B
0 0 0
0 1 1
1 0 1
1 1 0
Logic Gates: The XNOR
Gate
The XNOR Gate
A A =1
(A ⊕ B)' (A ⊕ B)'
B B
A B (A ⊕ B) '
0 0 1
0 1 0
1 0 0
1 1 1
Drawing Logic Circuit
When a Boolean expression is provided, we
can easily draw the logic circuit.
Examples:
(i) F1 = xyz' (note the use of a 3-input AND
gate)
x
y F1
z z'
Drawing Logic Circuit
(ii) F2 = x + y'z (can assume that variables and
their complements are
available)
x
F2
y'
z y'z
F4 = (A'B'+C)' = (A+B).C'
Problem
What is Boolean expression of F5?
y F5
z
Universal Gates: NAND
and NOR
AND/OR/NOT gates are sufficient for building
any Boolean functions.
However, other gates are also used because:
(i) usefulness
(ii) economical on transistors
(iii) self-sufficient
x x'
x x'
x (xy')'
y'
F3
x'
z (x'z)'
x (x+y')'
y'
F6
x'
z (x'+z)'
F6 = ((x+y')'+(x'+z)')' = (x+y').(x'+z)
Implementation of SOP
Expressions
Sum-of-Products expressions can be
implemented using:
2-level AND-OR logic circuits
2-level NAND logic circuits
A
B F = AB + CD + E
C
F
D
E
Implementation of SOP
Expressions
NAND-NAND circuit (by A
circuit transformation) B
C
a) add double bubbles F
D
b) change OR-with-
inverted-inputs to E
NAND
& bubbles at inputs to
A
their complements
B
C
F
D
E'
Implementation of POS
Expressions
Product-of-Sums expressions can be
implemented using:
2-level OR-AND logic circuits
2-level NOR logic circuits
A
B G = (A+B).(C+D).E
C
G
D
E
Implementation of POS
Expressions
NOR-NOR circuit (by A
circuit B
transformation): C
G
D
a) add double bubbles
E
b) changed AND-with-
inverted-inputs to
NOR A
& bubbles at inputs B
to C
G
their complements D
E'
Solve it yourself (Exercise
4.3)
Q1. Draw a logic circuit for BD + BE + D’F using only
NAND gates. Use both DeMorgan method and SOP
method.
Q2. Transform the following AND-OR Circuit to NAND
circuit. x
y F
Q3. Using only NOR gates, draw a logic circuit using POS
method for (A+B+C’)(B’+C’+D)
Positive & Negative Logic
In logic gates, usually:
H (high voltage, 5V) = 1
L (low voltage, 0V) = 0
Positive logic:
Active High:
Enable 0: Disabled
1: Enabled
Negative logic:
Active Low:
Enable 0: Enabled
1: Disabled
Integrated Circuit Logic
Families
Some digital integrated circuit families: TTL, CMOS, ECL.
TTL: Transistor-Transistor Logic.
Uses bipolar junction transistors
Consists of a series of logic circuits: standard TTL, low-power TTL,
Schottky TTL, low-power Schottky TTL, advanced Schottky TTL,
etc.
Integrated Circuit Logic
Families