ch3
ch3
Thomas L. Floyd
Logic Gates /
Boolean Algebra and Logic Simplification
Chapter 3
Ch.3 Summary
The Inverter
Boolean NOT operation
Input Output
A X A X
LOW (0) HIGH (1)
HIGH (1) LOW (0)
An Inverter Application A X
Example waveforms:
A
X
Example: 1’s Complement
Binary number
1 0 0 0 1 1 0 1
0 1 1 1 0 0 1 0
1’s complement
Ch.3 Summary
Inputs Output
A B X
0 0 0
0 1 0
1 0 0
1 1 1
The OR Gate
Outputs HIGH if any input is HIGH
Inputs Output
A B X
0 0 0
0 1 1
1 0 1
1 1 1
The OR operation : X = A + B.
Ch.3 Summary
The OR Gate
Example waveforms:
A
B
X
Example: ASCII (Set to specific bit)
5th bit: 1 if lowercase, 0 if uppercase
(ASCII letter) OR (8-bit mask 00100000)?
The resulting letter will be lower case.
Ch.3 Summary
A X A &
The NAND Gate B B
X
Inputs Output
A B X
0 0 1
0 1 1
1 0 1
1 1 0
Example waveforms:
A
B
X
Inputs Output
A B X
0 0 1
0 1 0
1 0 0
1 1 0
Example waveforms:
A
B
X
The NOR operation will produce a LOW if any input is HIGH.
+5.0 V
A
The LED will be on when any of the four B X
inputs are HIGH. C
D
Ch.3 Summary
A X A X
The XOR Gate B B
=1
Outputs HIGH only when both inputs are at opposite logic levels.
Inputs Output
A B X
0 0 0
0 1 1
1 0 1
1 1 0
Example waveforms:
A
B
X
Notice that the XOR gate will produce a HIGH only when exactly
one input is HIGH.
If the A and B waveforms are both inverted for the above
waveforms, how is the output affected?
The XNOR gate produces a HIGH output only when both inputs
are at the same logic level. The truth table is
Inputs Output
A B X
0 0 1
0 1 0
1 0 0
1 1 1
Example waveforms:
A
B
X
Notice that the XNOR gate will produce a HIGH when both inputs
are the same. This makes it useful for comparison functions.