Karnaugh Map PDF
Karnaugh Map PDF
Optimized Implementation of
Logic Functions:
Karnaugh Maps and Minimum
Sum-of-Product Forms
Electrical & Computer Engineering
Karnaugh map
The key to finding a minimum cost SOP or
POS form is applying the combining property
(14a for SOP or 14b for POS)
The Karnaugh map (K-map) provides a
systematic (and graphical) way of performing
this operation
Minterms can be combined by 14a when they
differ in only one variable
f(x,y,z) = xyz+xyz = xy(z+z) = xy(1) = xy
Karnaugh map
The K-map is an alternative to a truth table for
representing an expression
K-map consists of cells that correspond to rows of the truth
table
Each cell corresponds to a minterm
x1
x2
m0
m1
m2
m3
x1
m0
m2
m1
m3
Karnaugh map
x1
m0
m2
m1
m3
x2
f=xy+xy=x
f=x+y
y
0
0
1
1
0
0
1
1
z
0
1
0
1
0
1
0
1
Minterm
m0=xyz
m1=xyz
m2=xyz
m3=xyz
m4=xyz
m5=xyz
m6=xyz
m7=xyz
xy
00
01
11
10
m0
m2
m6
m4
m1
m3
m7
m5
f(x,y,z)=m(0,1,2,3,4)
=x+yz
xy
00
01
11
10
00
01
11
10
xy
Example groupings
xy
00
z
0
1
1
01
11
10
xy
00
z
0
0
1
f=z
xy
00
z
0
1
1
01
11
10
f=yz+x
01
11
10
f=z+y
Electrical & Computer Engineering
xy
00
z
0
1
1
01
11
10
f=y+xz
Dr. D. J. Jackson Lecture 7-11
00
01
11
10
00
m0
m4
m12
m8
01
m1
m5
m13
m9
11
m3
m7
m15
m11
10
m2
m6
m14
m10
cd
01
11
10
00
m0
m4
m12
m8
01
m1
m5
m13
m9
11
m3
m7
m15
m11
10
m2
m6
m14
m10
cd
f(a,b,c,d)=m(2,3,9-11,13)
=acd+bc
f(a,b,c,d)=m(3-7,9,11,12-15)
=b+cd+ad
01
11 10
01
11
10
01
11 10
ab
00
cd
00 0
01
11
10
Example groupings
ab
00
cd
00 1
01
11 10
ab
00
cd
00 0
01
11 10
01
01
11
11
10
10
f(a,b,c,d)=b+d
f(a,b,c,d)=bd+bd
Example groupings
ab
00
cd
00 1
01
11 10
ab
00
cd
00 1
01
11 10
01
01
11
11
10
10
f(a,b,c,d)=bd+bd
f(a,b,c,d)=bd+bd+ab