Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates
Control circuits
Boolean operations
a AND b
True only when a is true and b is true
a OR b
True when either a is true or b is true, or both are
true
NOT a
True when a is false, and vice versa
a b Value
0 0 1
0 1 0
1 0 0
1 1 1
Gates
AND gate
OR gate
NOT gate
Compare-for-equality circuit
Addition circuit
a b Output
0 0 1
0 1 0
1 0 0
1 1 1
Combined:
Addition circuit
Output
One bit for output place value
Form
N input lines
2N output lines
Decoder purpose