Professional Documents
Culture Documents
Roger L. Tokheim
Chapter 3
Logic Gates
©1999 Glencoe/McGraw-Hill
CHAPTER 3 PREVIEW
• Boolean Expression: A · B = Y
B A Y
0 0 0
0 1 0
1 0 0
1 1 1
TEST
What is the output of the AND gate?
L H
? Low ?High
L H
L H
?Low ?Low
H L
Unique Output: Output HIGH only when all inputs are HIGH.
• “Any or All Gate”
• Boolean Expression: A + B = Y
B A Y
0 0 0
0 1 1
1 0 1
1 1 1
TEST
What is the output of the OR gate?
H H
?High ?High
H L
L L
?Low ?High
L H
Unique Output: Output LOW only when all inputs are LOW.
• NOT Circuit
• Double inverting: A = A
• NOT AND or inverted AND function.
• Boolean Expression: A · B = Y
or (A · B)' = Y
B A AND NAND
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
TEST
What is the output of the NAND gate?
L L
?High ?High
L H
H H
?Low ?High
H L
Unique Output: Output LOW only when all inputs are HIGH.
• NOT OR or Inverted OR
• Boolean Expression: A + B = Y
or (A + B)' = Y
B A OR NOR
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
TEST
What is the output of the NOR gate?
L L
?High ?Low
L H
H H
?Low ?Low
L H
B A OR XOR
0 0 0 0
0 1 1 1
1 0 1 1
1 1 1 0
TEST
What is the output from the XOR gate?
L L
L ??Low L ? High
L H
H H
H ??Low H ? High
H L
XOR output is HIGH only when odd number of inputs are HIGH
• Known as the Exclusive NOR Gate
• The Inverted XOR
• Boolean Expression: A B=Y
or (A B)' = Y
• Truth Table (See next slide)
TRUTH TABLE - XNOR GATE
B A XOR XNOR
0 0 0 1
0 1 1 0
1 0 1 0
1 1 0 1
TEST
What is the output from this XNOR gate?
L L
L ?High H ?Low
L L
H H
H ?Low H ?High
L H
XNOR output is HIGH only when odd number of inputs are LOW
THE NAND AS A UNIVERSAL GATE
• Example:
A+B A+B
USING INVERTERS
TO CONVERT GATES
For example:
PRACTICAL LOGIC GATES
Examples:
A
& Y AND gate
B
B
1 Y
OR gate