Lecture 3: Boolean Algebra: Logistics Last Lecture - Numbers
Lecture 3: Boolean Algebra: Logistics Last Lecture - Numbers
Logistics
Last lecture --- Numbers
Binary numbers
Base conversion
Number systems for negative numbers
A/D and D/A conversion
Todays lecture
Boolean algebra
Axioms
Useful laws and theorems
Examples
CSE370, Lecture 3
(memoryless)
algebra
Allows you to design logic functions
Allows you to know how to combine different logic gates
Allows you to simplify or optimize on the complex
operations
CSE370, Lecture 3
Boolean algebra
A Boolean algebra comprises...
A set of elements B
Binary operators {+ , }
Boolean
_ sum and
_
product
A unary operation { ' } (or { })
example: A or A
and the following axioms
CSE370, Lecture 3
Boolean expression
An algebraic statement of Boolean variables and
operators
CSE370, Lecture 3
XY
OR
X+Y
NOT
CSE370, Lecture 3
XY
X
Y
X
Y
X'
X
0
0
1
1
Y
0
1
0
1
Z
0
0
0
1
X
0
0
1
1
Y
0
1
0
1
Z
0
1
1
1
X
0
1
Y
1
0
Y
0
1
0
1
Z
0
0
0
1
X
0
0
1
1
Y
0
1
0
1
CSE370, Lecture 3
Z=XY
X'
1
1
0
0
Y'
1
0
1
0
X Y X' Y'
0
1
0
0
0
0
1
0
X
0
0
1
1
Z
1
0
0
1
Y
0
1
0
1
X'
1
1
0
0
Z
0
1
0
0
Z=X'Y
Z=(XY)+(X' Y')
Some notation
Priorities: A B + C = ((A) B) + C
Variables and their complements are sometimes
called literals
CSE370, Lecture 3
theorems)
de Morgans Theorem
Procedure for complementing Boolean functions
Replace: with +, + with , 0 with 1, and 1 with 0
Replace all variables with their complements
CSE370, Lecture 3
X+0=X
Dual: X 1 = X
Null:
X+1=1
Dual: X 0 = 0
Idempotent:
X+X=X
Dual: X X = X
Involution:
(X')' = X
Complementarity: X + X' = 1
Dual: X X' = 0
Commutative:
Dual: X Y = Y X
X+Y=Y+X
Associative:
(X+Y)+Z=X+(Y+Z)
(XY)Z=X(YZ)
Dual:
Distributive:
X(Y+Z)=(XY)+(XZ) Dual: X+
(YZ)=(X+Y)(X+Z)
Uniting:
CSE370, Lecture 3
XY+XY'=X
Dual: (X+Y)(X+Y')=X
10
X+XY=X
Absorption (#2):
de Morgan's:
Duality:
Consensus:
CSE370, Lecture 3
Dual: X(X+Y)=X
Dual: (XY...)D=X+Y+
(X+Y)(X'+Z)=XZ+X'Y
Dual: XY+X'Z=(X+Z)(X'+Y)
(XY)+(YZ)+(X'Z)= XY+X'Z
Dual: (X+Y)(Y+Z)(X'+Z)=(X+Y)(X'+Z)
11
Proving theorems
Example 1: Prove the uniting theorem--
XY+XY'=X
Distributive
Complementarity
Identity
XY+XY' = X(Y+Y')
= X(1)
=X
X+XY=X
Identity
Distributive
Null
Identity
CSE370, Lecture 3
X+XY = (X1)+(XY)
= X(1+Y)
= X(1)
=X
12
Proving theorems
Example 3: Prove the consensus theorem-(XY)+(YZ)+(X'Z)= XY+X'Z
Complementarity
+ X'Z
Distributive
XY+YZ+X'Z = XY+(X+X')YZ
= XYZ+XY+X'YZ+X'Z
= XY+X'YZ+X'Z
Rearrange terms
= XY+X'ZY+X'Z
XY+YZ+X'Z = XY+X'Z
CSE370, Lecture 3
13
de Morgans Theorem
Use de Morgans Theorem to find complements
Example: F=(A+B)(A+C), so F=(AB)+(AC)
A
0
0
0
0
1
1
1
1
CSE370, Lecture 3
B
0
0
1
1
0
0
1
1
C
0
1
0
1
0
1
0
1
F
0
0
1
1
0
1
0
1
A
0
0
0
0
1
1
1
1
B
0
0
1
1
0
0
1
1
C
0
1
0
1
0
1
0
1
F
1
1
0
0
1
0
1
0
14
absorption #2 Duality
(X Y')+Y=X+Y with X=BC and
Y=A
CSE370, Lecture 3
15