Lecture #4 - Simplification of Boolean Functions
Lecture #4 - Simplification of Boolean Functions
Simplification of
1
Boolean Functions
or, convert the expression into truth-table and then read the minterms
from the table
or, convert the expression into truth-table and then read the
maxterms from the table
0 1 Y’ Y
0 x’y’ x’y X’ x’y’ x’y
X
1 xy’ xy X xy’ 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
Y
x’y’ x’y
X xy’ xy
Y Y
x’y’z’ x’y’z x’yz x’yz’ m0 m1 m3 m2
X xy’z’ xy’z xyz xyz’ X m4 m5 m7 m6
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
xy' z
y
yz yz
x 00 01 11 10
M0 M1 M3 M2
0 1 Note: xy'z' + xyz' = xz'
M4 M5 M7 M6
x 1
1 1 1
xy'z'
z xyz'
44 A 00 01 11 10 A'B
Let the Boolean function: F = A'C + A'B + AB'C + BC
0 1 1 1
a) Express this function as a sum of minterms.
b) Find the minimal sum of products expression. A 1
1 1 C
SOLUTION:
C
Three product terms in the expression have two literals and are represented in a three variable k-map
by two squares each. The two squares corresponding to the first term, A'C, above from the coincidence
of A' (first row) and C (two middle columns) to give squares 001 and 011. Note that, in marking 1's in the
squares, it is possible to find a 1 already placed there from a preceding term. This happens with the
second term, A'B, which has 1's in squares 011 and 010. Square 011 is common with the first term, A'C,
though, so only one 1 is marked in it. Continuing in this fashion, we determine that the term AB'C
belongs in square 101, corresponding to minterm 5, and the term BC has two 1's in squares 011 and
111. The function has a total of five minterms, as indicated by the five 1's in the k-map.
a) The minterms are read directly from the k-map to be 1,2,3,5, and 7. The function can be
expressed in sum of minterms form as
F(A , B, C) = ∑(1, 2, 3, 5, 7)
b) The sum-of-products expression. as originally given. has too many terms. It can be simplified.
as shown in the map, to an expression with only two terms:
F = C + A'B
Four-variable K-maps
45 We can do four-variable expressions too!
– The minterms in the third and fourth columns, and in the third and fourth rows, are
switched around.
– Again, this ensures that adjacent squares have common literals
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
We can make the following groups, resulting in the MSP x'z' + xy'z
Y Y
1 0 0 1 w’x’y’z’ w’x’y’z w’x’yz w’x’yz’
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
In both the truth table and K-map, we represent a “don’t care” with an X. We draw
them on the K-map grid along with the 1's.
Then, when forming groups on the K-map, we can treat the “don’t cares” (the X
cells) as 1's. This may often allow us to make larger groups, and thus reduce the
logic more.
So, we can include “don’t cares” in groups, but we never have groups of just don’t
cares. Basically, we can treat them as 1's or 0's, whichever is most convenient.
This notation means that input combinations wxyz = 0111, 1010 and 1101
(corresponding to minterms m7, m10 and m13) are unused.
Y
1 0 0 1
1 1 x 0
X
0 x 1 1
W
1 0 0 x
Z
All prime implicants are circled. We can treat X’s as 1s if we want, so the red group
includes two X’s, and the light blue group includes one X.
The only essential prime implicant is x'z'. (An essential prime implicant is one that covers
a minterm that is covered by no other prime implicants.)
The MSP is x'z' + wxy + w'xy'. It turns out some of the groups are redundant; we can
cover all of the minterms in the map without them.