3-Boolean Algebra Cont'd
3-Boolean Algebra Cont'd
LECTURE 5
BOOLEAN ALGEBRA (cont’d)
2
Recap
• Boolean Algebra
• Properties
• Theorems
3
Outline
x y z
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
5
Representation conversion
Circuit Boolean
Expression
Truth
Table
Truth table to expression 6
x y z G
0 0 0 0
Any Boolean Expression can be
0 0 1 0
0 1 0 0 represented in sum of products form!
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
7
Equivalent representations of
circuits
• Number of 1’s in truth table output column equals AND
terms for Sum-of-Products (SOP)
x y z G x
0 0 0 0
0 0 1 0
y
0 1 0 0 G
0 1 1 1
1 0 0 0
1 0 1 0 z
1 1 0 1
1 1 1 1
G = xyz + xyz’ + x’yz
8
Reducing Boolean
Expressions
• Is this the smallest possible implementation of
expression G = xyz + xyz’ + x’yz ?
• Use Boolean Algebra rules to reduce complexity while
preserving functionality.
• Step 1: Use a + a = a:
xyz + xyz’ + x’yz = xyz + xyz + xyz’ + x’yz
• Step 2: Use distributive rule a(b + c) = ab + ac:
xyz + xyz + xyz’ + x’yz = xy(z + z’) + yz(x + x’)
• Step 3: Use a + a’ = 1:
xy(z + z’) + yz(x + x’) = xy 1 + yz 1
• Step 4: Use a 1 = a
xy 1 + yz 1 = xy + yz
9
Reduced hardware
implementation
• Reduced equation requires less hardware (compare with
circuit on Slide#7)!
• Same function implemented!
x y z G
0 0 0 0
x
0 0 1 0 y
0 1 0 0 G
0 1 1 1
1 0 0 0
1 0 1 0 z
1 1 0 1
1 1 1 1
x y z G G’
0 0 0 0 1
0 0 1 0 1 G = xyz + xyz’ + x’yz
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1 G’ = (xyz + xyz’ + x’yz)’
1 0 1 0 1
1 1 0 1 0
1 1 1 1 0
• DeMorgan’s
with Minterms
• Minterm number same as row position in truth table
(starting from top from 0)
• Shorthand way to represent functions
x y z G
0 0 0 0
0 0 1 0
0 1 0 0 G = xyz + xyz’ + x’yz
0 1 1 1
1 0 0 0
1 0 1 0 G = m7 + m6 + m3 = Σ(3, 6, 7)
1 1 0 1
1 1 1 1
15
Private Study
Summary
• Expressions of Boolean functions
• Algebraic equations
• Symbols
• Truth tables
• Simplifications of Boolean expressions
• Complementing functions
• Canonical forms