Professional Documents
Culture Documents
8. Logic Gates
• Boolean Expression: A · B = Y
B A Y
0 0 0
0 1 0
1 0 0
1 1 1
QUIZ
What is the output of the AND gate?
L H
? ?
L H
L H
? ?
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
QUIZ
What is the output of the OR gate?
H H
? ?
H L
L L
? ?
L H
Unique Output: Output LOW only when all inputs are LOW.
• NOT Circuit
• Boolean Expression: Y = A or Y = A‘
• Double inverting: A = A
• 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
QUIZ
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
• Known as “Exclusive OR” Gate
• “Anything but not all” Gate
• Boolean Expression: A B=Y
• Truth Table (See next slide)
Truth Table - XOR Gate
B A OR XOR
0 0 0 0
0 1 1 1
1 0 1 1
1 1 1 0
• Known as the Exclusive NOR Gate
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
The NAND as a Universal Gate
Equal to the
A+B OR logic function
Using Inverters to Convert Gates
For example: