Title: ECE2030 Introduction to Computer Engineering Lecture 5: Boolean Algebra
1ECE2030 Introduction to Computer
EngineeringLecture 5 Boolean Algebra
Prof. Hsien-Hsin Sean Lee School of Electrical
and Computer Engineering Georgia Tech
2What is Boolean Algebra
- An algebra dealing with
- Binary variables by alphabetical letters
- Logic operations OR, AND, XOR, etc
- Consider the following Boolean equation
- A Boolean function can be represented by a truth
table which list all combinations of 1s and 0s
for each binary value
3Fundamental Operators
- NOT
- Unary operator
- Complements a Boolean variable represented as A,
A, or A - OR
- Binary operator
- A OR-ed with B is represented as A B
- AND
- Binary operator
- A AND-ed with B is represented as AB or AB
- Can perform logical multiplication
4Binary Boolean Operations
- All possible outcomes of a 2-input Boolean
function
A B F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
1 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
5Precedence of Operators
- Precedence of Operator Evaluation (Similar to
decimal arithmetic) - () Parentheses
- NOT
- AND
- OR
6Function Evaluation
7Basic Identities of Boolean Algebra
8Derivation of Simplification
9Derivation of Consensus Theorem
10Duality Principle
- A Boolean equation remains valid if we take the
dual of the expressions on both sides of the
equals sign - Dual of expressions
- Interchange 1s and 0s
- Interchange AND (?) and OR ()
11Duality Principle
12Simplification Examples
13DeMorgans Law
?
?
14Example in Lecture 4
15Another Way to Draw It