Professional Documents
Culture Documents
COMPUTER ORGANIZATION
Lecture 2: Boolean Algebra
ELEC3010
ACKNOWLEGEMENT
2
CAN YOU DO IT?
char c1 = -12;
unsigned char c2=131;
3
COVERED IN THIS COURSE
❑ Binary numbers and logic gates
❑ Boolean algebra and combinational logic
❑ Sequential logic and state machines
❑ Binary arithmetic
Digital logic
❑ Memories
▪ Binary
(A1) X = 0 if X ≠ 1 (A1’) X = 1 if X ≠ 0
▪ Complement
(A2) If X = 0, then X’ = 1 (A2’) If X = 1, then X’ = 0
5
AXIOMATIC DEFINITION OF BOOLEAN ALGEBRA
▪ AND and OR
6
SINGLE VARIABLE THEOREMS
▪ Commutativity
(T6) X•Y = Y•X (T6’) X+Y = Y+X
▪ Associativity
(T7) (X•Y)•Z = X•(Y•Z) (T7’) (X+Y)+Z = X+(Y+Z)
▪ Distributivity
(T8) X•Y+X•Z = X•(Y+Z) (T8’) (X+Y)•(X+Z) = X+(Y•Z)
AND distributes over OR OR distributes over AND
8
DE MORGAN’S THEOREM
9
DE MORGAN’S THEOREM
▪ By DeMorgan’s Law
(X•Y•Z)’ = X’+Y’+Z’
Proof by perfect induction
10
BOOLEAN FUNCTIONS
11
BOOLEAN FUNCTIONS
Some definitions:
▪ Normal term: Product or sum term in which every variable
appears, and exactly once
▪ Minterm: Normal product
e.g., (X•Y’•Z) for a 3-input Boolean function
▪ Maxterm: Normal sum
e.g., (X’+Y+Z’)
12
BOOLEAN FUNCTIONS
13
CANONICAL FORM
F = (X+Y+Z’)•(X+Y’+Z)•(X’+Y+Z’)•(X’+Y’+Z)
= X,Y,Z(1,2,5,6)
16
BEFORE NEXT CLASS
• Textbook: 1.4-1.7
17