Professional Documents
Culture Documents
Karnaugh Map: Engr. Pablo B. Asi Engr. Leni A. Bulan Engr. Liza R. Maderazo
Karnaugh Map: Engr. Pablo B. Asi Engr. Leni A. Bulan Engr. Liza R. Maderazo
MODULE 5
Lecture:
<<COURSE TITLE>> 2
<<FACULTY MEMBER>>
The four squares (0, 1, 2, and 3) represent the four possibly combinations
of A and B in a two variable truth table. Square 1 in the K-map; then, stands for
A’B’, square 2 for A’B, and so forth. The 0’s and 1’s marked for each row and each
column designates the values of variables A and B respectively. A appears primed
in row 0 and un-primed in row 1. Similarly B appears primed in column 0 and un-
primed in column 1.
Minterm A B Y
m0 0 0 0
m1 0 1 1
m2 1 0 1
m3 1 1 1
2. Draw a two variable K map and
fill those squares with a 1 for which the value of minterm in the function is
equal to 1.
The empty square in the map represent the value of minterms [m0 (or A’B’)]
that is equal to zero in the function. Thus, actually this empty square represents
zero.
<<COURSE TITLE>> 3
<<FACULTY MEMBER>>
Three Variable K-Map
Minterm A B C Y
m0 0 0 0 y0
m1 0 0 1 y1
m2 0 1 0 y2
m3 0 1 1 y3
m4 1 0 0 y4
m5 1 0 1 y5
m6 1 1 0 y6
m7 1 1 1 y7
CD
AB 00 01 11 10
00 A’B’C’D’ A’B’C’D A’B’CD A’B’C’D’
01 A’BC’D’ A’BC’D A’BCD A’BCD’
11 ABC’D’ ABC’D ABCD ABCD’
10 AB’C’D’ AB’C’D AB’CD AB’CD’
DE
ABC
<<COURSE TITLE>> 4
<<FACULTY MEMBER>>
00 01 11 10
000 A’B’C’D’E’ A’B’C’D’E A’B’C’DE A’B’C’DE’
001 A’B’CD’E’ A’B’CD’E A’B’CDE A’B’CDE’
011 A’BCD’E’ A’BCD’E A’BCDE A’BCDE’
010 A’BC’D’E’ A’BC’D’E A’BC’DE A’BC’DE’
110 ABC’D’E’ ABC’D’E ABC’DE ABC’DE’
111 ABCD’E’ ABCD’E ABCDE ABCDE’
101 AB’CD’E’ AB’CD’E AB’CDE AB’CDE’
100 AB’C’D’E’ AB’C’D’E AB’C’DE AB’C’DE’
EXAMPLES:
Map the following standard SOP expression on a Karnaugh map:
1. F= A’B’C + A’BC’ + ABC’ + ABC
Solution
In mapping a standard SOP in a K-map just look the intersection at the map
of the given SOP term and write 1. After mapping all the terms, write 0 to all
vacant tiles.
<<COURSE TITLE>> 5
<<FACULTY MEMBER>>
2. F = A’BC + AB’C + AB’ C’
Solution
EXAMPLES:
Map the following SOP expression on a Karnaugh map:
1. F = A’ + AB’ + ABC’
Solution
The usual solution is to transform the given expression to standard SOP
before mapping it in the K-map. That is a tedious solution, that’s why we will just
map the expression directly. For example, A’ just put 1 in the whole row of A’. If in
potting, putting of 1 overlaps, just ignore it and proceed.
2. F = BC + A ‘C’
Solution
BC B’C’ B’C BC BC’
A 00 01 11 10
A’
1 0 1 1
0
A
0 0 1 0
1
<<COURSE TITLE>> 7
<<FACULTY MEMBER>>
Draw Karnaugh maps for the following expressions:
a. F = A’B’C’ + A’B’C + AB’C + ABC
f. F = (A’ + B + C’) (A + B + C) (A + B + C’ )
<<COURSE TITLE>> 8
<<FACULTY MEMBER>>
Session 2
Karnaugh Map Simplification of Boolean Expressions
<<COURSE TITLE>> 9
<<FACULTY MEMBER>>
that occur both un-complemented and complemented within the group
are eliminated. These are called contradictory variables.
2. Determine the minimum product term for each group.
a. For a 3-variable map:
(1) A 1-ceIl group yields a 3-variable product term
(2) A 2-cell group yields a 2-variable product term
(3) A 4-cell group yields a 1-variable term
(4) An 8-cell group yields a value of 1 for the expression
b. For a 4-variable map:
(1) A 1-cell group yields a 4-variable product term
(2) A 2-cell group yields a 3-variable product term
(3) A 4-cell group yields a 2-variable product term
(4) An 8-cell group yields a 1-variable term
(5) A 16-cell group yields a value of 1 for the expression
3. When all the minimum product terms are derived from the Karnaugh
map, they are summed to form the minimum SOP expression.
EXAMPLES:
F = B’ + A’C
<<COURSE TITLE>> 10
<<FACULTY MEMBER>>
2. F = XY’Z + XYZ’ + X’YZ + X’YZ’ + XY’Z’ + XYZ
Solution
F=X+Y
F = D’ + B’C
<<COURSE TITLE>> 11
<<FACULTY MEMBER>>
4. F = W’X’Y’Z’ + WX’YZ + WX’Y’Z + W’YZ + WX’Y’Z’
Solution
YZ
WX Y’Z’ Y’Z YZ YZ’
00 01 11 10
W’X’
00 1 0 1 0
W’X
01 0 0 1 0
WX
11 0 0 0 0
WX’
10 1 1 1 0
<<COURSE TITLE>> 12
<<FACULTY MEMBER>>
"DON'T CARE" CONDITIONS
Sometimes a situation arises in which some input variable combinations are
not allowed. For example, recall that in the BCD code, there are six invalid
combinations: 1010, 1011, 1100, 1101, 1110, and 1111. Since these un-allowed
states will never occur in an application involving the BCD code, they can be
treated as "don't care" terms with respect to their effect on the output. That is, for
these "don't care" terms either a 1 or a 0 may be assigned to the output: it really
does not matter since they will never occur.
The "don't care" terms can be used to advantage on the Karnaugh map, an
X is placed in the cell. When grouping the 1’s, the X’s can be treated as 1’s to
make a larger grouping or as 0’s if they cannot be used to advantage. The larger
a group, the simpler the resulting term will be.
EXAMPLES:
CD
AB 00 01 11 10
00 1 1 1
01 X
1
11
X X 1 1
10
<<COURSE TITLE>> 13
<<FACULTY MEMBER>>
2. F (A, B, C, D) = (7, 8, 9)
d (10, 11, 12, 13, 14, 15)
CD
AB 00 01 11 10
00
01 1
11 X X X X
10
1 1 X X
F = A + BCD
Step 1: Determine the binary value of each sum term in the standard POS
expression. This is the binary value that makes the term equal to 0.
Step 2: As each sum term is evaluated, place a 0 on the Karnaugh map in the
corresponding cell.
EXAMPLES:
Map the following standard POS expression on a Karnaugh map:
1. F = (A’+B’+C+D)(A’+B+C’+D’)(A+B+C’+D)(A’+B’+C’+D’)(A+B+C’+D’)
Solution
The representation of binary in POS is opposite to SOP. Here,
complemented is equivalent to binary 1 while uncomplemented is
equivalent to binary 0. And in mapping put 0 instead of 1.
<<COURSE TITLE>> 14
<<FACULTY MEMBER>>
F = (A’+B’+C+D)(A’+B+C’+D’)(A+B+C’+D)(A’+B’+C’+D’)(A+B+C’+D’)
(1 1 0 0)(1 0 1 1)(0 0 1 0)(1 1 1 1)(0 0 1 1)
12 11 2 15 3
F = Π(12, 11, 2, 15, 3)
F = Π(2, 3, 11, 12, 15)
CD
AB C’D’ C’D CD CD’
00 01 11 10
A’B’
00 1 1 0 0
A’B
01 1 1 1 1
AB
11 0 1 0 1
AB’
10 1 1 0 1
The process for minimizing a POS expression is basically the same as for
an SOP expression except that you group 0’s to produce minimum sum terms
instead of grouping 1’s to produce minimum product terms. The rules for grouping
the 0’s are the same as those for grouping the 1’s.
<<COURSE TITLE>> 15
<<FACULTY MEMBER>>
EXAMPLES:
Use a Karnaugh map to minimize the following standard POS expression:
1. F = (A + B + C) (A + B + C’) (A + B’ + C) (A + B’ + C’) (A’ + B’ + C)
Solution
Plot first the expression bearing in mind that this is a POS.
F = (A+B+C) (A+B+C’) (A+B’+C) (A+B’+C’) (A’+B’ +C)
(0 0 0)(0 0 1)(0 1 0)( 0 1 1)(1 1 0)
0 1 2 3 6
F = Π(0, 1, 2, 3, 6)
BC B’C’ B’C BC BC’
A 00 01 11 10
A’ 0
0
0 0 0
A
1 1 1 1 0
SOLUTION 1:
F’ = A’ + BC’
(F’ = A’ + BC’)’
F’’ = A’’(BC’)’
F = A(B’ + C)
SOLUTION 2:
BC B’C’ B’C BC BC’
A 00 01 11 10
A’ 0
0 0 0 0
A
1
1 1 1 0
F = AB’ + AC
<<COURSE TITLE>> 16
<<FACULTY MEMBER>>
2. F = (B+C+D) (A+B+C’+D)(A’+B+C+D’) (A+B’+C+D) (A’+B’+C+D)
Solution
Express first the expression to standard POS.
F = (B+C+D+AA’) (A+B+C’+D)(A’+B+C+D’) (A+B’+C+D) (A’+B’+C+D)
F = (A+B+C+D)(A’+B+C+D)(A+B+C’+D)(A’+B+C+D’)(A+B’+C+D)(A’+B’+C+D)
(0 0 0 0)(1 0 0 0)(0 0 1 0)(1 0 0 1)(0 1 0 0)(1 1 0 0)
0 8 2 9 4 12
F = Π(0, 2, 4, 8, 9, 12)
CD
AB C’D’ C’D CD CD’
00 01 11 10
A’B’
00 0 1 1 0
A’B
01
0 1 1 1
AB 0
11 1 1 1
AB’
10
0 0 1 1
CD
AB C’D’ C’D CD CD’
00 01 11 10
A’B’ 1 1
00 0 0
A’B
01 0 1 1 1
AB 1
11 0 1 1
AB’
10 0 0 1 1
F = A’D + BD + BC + AC
<<COURSE TITLE>> 17
<<FACULTY MEMBER>>
Here is the truth table
A B C D F
0 0 0 0 0
0 0 0 1 0
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 0
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 0
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
<<COURSE TITLE>> 18
<<FACULTY MEMBER>>