Lec 5
Lec 5
Chapter 2 - Part 1 2
Index Example in Three Variables
▪ Example: (for three variables)
▪ Assume the variables are called X, Y, and Z.
▪ The standard order is X, then Y, then Z.
▪ The Index 0 (base 10) = 000 (base 2) for three
variables). All three variables are complemented
for minterm 0 ( X , Y, Z) and no variables are
complemented for Maxterm 0 (X,Y,Z).
• Minterm 0, called m0 is X Y Z .
• Maxterm 0, called M0 is (X + Y + Z).
• Minterm 6 ?
• Maxterm 6 ?
Chapter 2 - Part 1 3
Index Examples – Four Variables
Index Binary Minterm Maxterm
i Pattern mi Mi
0 0000 abcd
1 0001 abcd ?
3 0011 ? a+b+c+d
5 0101 abcd a+b+c+d
7 0111 ? a+b+c+d
10 1010 abcd a+b+c+d
13 1101 abcd ?
15 1111 a+b+c+d
Chapter 2 - Part 1 4
Minterm and Maxterm Relationship
▪ Review: DeMorgan's Theorem
=x+y
x · yand x + y = x⋅y
▪ Two-variable example:
=x+y
M 2 and m 2 = x·y
Thus M is the complement of m and vice-versa.
2 2
▪ Since DeMorgan's Theorem holds for n variables, the above holds for
terms of n variables
▪ giving:
Mi = mi
and
mi = M i
Thus Mi is the complement of mi.
Chapter 2 - Part 1 5
Function Tables for Both
▪ Minterms of Maxterms of
2 variables 2 variables
xy m0 m1 m2 m3 x y M0 M1 M2 M3
00 1 0 0 0 00 0 1 1 1
01 0 1 0 0 01 1 0 1 1
10 0 0 1 0 10 1 1 0 1
11 0 0 0 1 11 1 1 1 0
Chapter 2 - Part 1 9
Maxterm Function Example
▪ Example: Implement F1 in maxterms:
F1 = M 0 · M2 · M3 · M5 · M6
F1 = (x + y + z) ·(x + y + z)·(x + y + z )
·(x + y + z )·(x + y + z)
xyz i M0 ⋅ M2 ⋅ M3 ⋅ M5 ⋅ M6 = F1
000 0 0 ⋅ 1 ⋅ 1 ⋅ 1 ⋅ 1 =0
001 1 1 ⋅ 1 ⋅ 1 ⋅ 1 ⋅ 1 =1
010 2 1 ⋅ 0 ⋅ 1 ⋅ 1 ⋅ 1 =0
011 3 1 ⋅ 1 ⋅ 0 ⋅ 1 ⋅ 1 =0
100 4 1 ⋅ 1 ⋅ 1 ⋅ 1 ⋅ 1 =1
101 5 1 ⋅ 1 ⋅ 1 ⋅ 0 ⋅ 1 =0
110 6 1 ⋅ 1 ⋅ 1 ⋅ 1 ⋅ 0 =0
111 7 1 ⋅ 1 ⋅ 1 ⋅ 1 ⋅ 1 =1
Chapter 2 - Part 1 10
Maxterm Function Example
▪ F( A, B, C, D) = M 3 ⋅ 8 ⋅ 11 ⋅ 14
▪ F(A, B,C,D) = M M M
Chapter 2 - Part 1 11
Canonical Sum of Minterms
▪ Any Boolean function can be expressed as a
Sum of Minterms.
• For the function table, the minterms used are the
terms corresponding to the 1's
• For expressions, expand all terms first to explicitly
list all minterms. Do this by “ANDing” any term
missing a variable v with a term ( v + v ).
▪ Example: Implement f = x + x y as a sum of
minterms.
First expand terms: f = x ( y + y ) + x y
Then distribute terms: f = xy + x y + x y
Express as sum of minterms: f = m3 + m2 + m0
Chapter 2 - Part 1 12
Another SOM Example
▪ Example: F=A+BC
▪ There are three variables, A, B, and C which we take to be the
standard order.
▪ Expanding the terms with missing variables:
Chapter 2 - Part 1 13
Shorthand SOM Form
▪ From the previous example, we started with:
F=A+BC
▪ We ended up with:
F = m1+m4+m5+m6+m7
▪ This can be denoted in the formal shorthand:
Chapter 2 - Part 1 14
Canonical Product of Maxterms
▪ Any Boolean Function can be expressed as a Product of
Maxterms (POM).
• For the function table, the maxterms used are the terms
corresponding to the 0's.
• For an expression, expand all terms first to explicitly list all
maxterms. Do this by first applying the second distributive
law , “ORing” terms missing variable v with a term equal to v v
and then applying the distributive law again. ⋅
▪ Example: Convert to product of maxterms:
f ( x, y , z ) = x + x y
Apply the distributive law:
x + x y = (x + x )(x + y ) = 1 ⋅ (x + y ) = x + y
Add missing variable z:
x + y + z ⋅ z = (x + y + z ) (x + y + z )
Express as POM: f = M2 · M3
Chapter 2 - Part 1 15
Another POM Example
▪ Convert to Product of Maxterms:
f(A, B C) = A C + B C + A B
▪ Use x + y z = (x+y)·(x+z)
, with x = (A C + B C), y = A ,
and z = B to get:
f = (A C + B C + A )(A C + B C + B )
▪ Then use x + x y = x + y to get:
f = ( C + B + A )(A C + C + B )
and a second timeC to get:
f = ( C + B + A )(A + C + B )
▪ Rearrange to standard order,
= + + + + to give f = M5 · M2
f ( A B C)(A B C)
Chapter 2 - Part 1 16
Function Complements
▪ The complement of a function expressed as a
sum of minterms is constructed by selecting the
minterms missing in the sum-of-minterms
canonical forms.
▪ Alternatively, the complement of a function
expressed by a Sum of Minterms form is simply
the Product of Maxterms with the same indices.
▪ Example: Given F ( x , y , z ) = Σm ( 1, 3 , 5 , 7 )
F( x, y , z ) = Σm( 0, 2,4,6)
F( x, y , z ) = ΠM(1, 3,5,7 )
Chapter 2 - Part 1 17
Conversion Between Forms
▪ To convert between sum-of-minterms and
product-of-maxterms form (or vice-versa) we follow
these steps:
• Find the function complement by swapping terms in the
list with terms not in the list.
• Change from products to sums, or vice versa.
▪ Example:Given F as before:
▪ Form the Complement: F( x, y , z ) = Σm( 0, 2,4,6)
▪ Then use the other form with the same indices – this
forms the complement again, giving the other form
of the original function:
Chapter 2 - Part 1 18