Karnaugh Maps: Minimal Sum of Products (MSP)
Karnaugh Maps: Minimal Sum of Products (MSP)
Karnaugh Maps: Minimal Sum of Products (MSP)
x y minterm Y
0 0 x’y’ 0 1
0 1 x’y 0 x’y’ x’y
1 0 xy’ X
1 xy’ xy
1 1 xy
x’y’ + x’y
• Both of these minterms appear in the top row of a Karnaugh map, which
means that they both contain the literal x’.
Y
x’y’ x’y
X xy’ xy
• x’y’
What happens if you+ x’y = x’(y’
simplify + y)expression
this [ Distributive ]
using Boolean algebra?
= x’ 1 [ y + y’ = 1 ]
= x’ [x1=x]
YZ YZ
00 01 11 10 00 01 11 10
0 x’y’z’ x’y’z x’yz x’yz’ 0 m0 m1 m3 m2
X X
1 xy’z’ xy’z xyz xyz’ 1 m4 m5 m7 m6
Y x’y’z + x’yz
x’y’z’ x’y’z x’yz x’yz’ = x’z(y’ + y)
X xy’z’ xy’z xyz xyz’ = x’z 1
Z = x’z
x y z f(x,y,z)
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0 f(x,y,z) = x’y’z + xy’z + xyz’ + xyz
1 0 0 0 = m1 + m5 + m6 + m7
1 0 1 1
1 1 0 1
1 1 1 1
Y
• In either case, the resulting
0 K-map
1 is shown
0 below.
0
X 0 1 1 1
Z
Y
0 1 0 0
X 0 1 1 1
Z
• Each group corresponds to one product term. For the simplest result:
– Make as few rectangles as possible, to minimize the number of products
in the final expression.
– Make each rectangle as large as possible, to minimize the number of
literals in each term.
– It’s all right for rectangles to overlap, if that makes them larger.
Y
0 1 0 0
X 0 1 1 1
Z
Y
x’y’z’ x’y’z x’yz x’yz’
X xy’z’ xy’z xyz xyz’
Z
• For our example, we find that xy + y’z + xz = y’z + xy. (This is one of the additional
algebraic laws from last time.)
X
Z
Y
m0 m1 m3 m2
X m4 m5 m7 m6
Z
Y Y
w’x’y’z’ w’x’y’z w’x’yz w’x’yz’ m0 m1 m3 m2
w’xy’z’ w’xy’z w’xyz w’xyz’ m4 m5 m7 m6
X X
wxy’z’ wxy’z wxyz wxyz’ m12 m13 m15 m14
W W
wx’y’z’ wx’y’z wx’yz wx’yz’ m8 m9 m11 m10
Z Z
Y Y
1 0 0 1 m0 m1 m3 m2
0 1 0 0 m4 m5 m7 m6
X X
0 1 0 0 m12 m13 m15 m14
W W
1 0 0 1 m8 m9 m11 m10
Z Z
Y Y
• We can1 make
0 the
0 following
1 w’x’y’z’ w’x’y’z
groups, resulting w’x’yzx’z’w’x’yz’
in the MSP + xy’z.
0 1 0 0 w’xy’z’ w’xy’z w’xyz w’xyz’
X X
0 1 0 0 wxy’z’ wxy’z wxyz wxyz’
W W
1 0 0 1 wx’y’z’ wx’y’z wx’yz wx’yz’
Z Z
Y
0 1 0 1
X 0 1 1 1
Z
Y Y
0 1 0 1 0 1 0 1
X 0 1 1 1 X 0 1 1 1
Z Z
y’z + yz’ + xy y’z + yz’ + xz