Kmap
Kmap
By
Prof. S. K. Dash
School Of Electronics Engineering
KIIT Deemed to be University
K Maps
Boolean algebra helps us simplify expressions and circuits
Karnaugh Map: A graphical technique for simplifying a Boolean expression into either
form:
minimal sum of products (MSP)
minimal product of sums (MPS)
Goal of the simplification.
There are a minimal number of product/sum terms
Each term has a minimal number of literals
Circuit-wise, this leads to a minimal two-level implementation
B
0 1
A
0 1
A
0 0 0
1
1 0
So f = A . B’
1 1 0 0 1
For quad , C’
For pair, A’B
So f = A’B + C’ .
1 0 1 1 0
For quad 1: A’
For quad 2 :C
So f = A’ + C
1 0 0 1 1
1 0 1 1 1
For pair 1: B’C
For pair 2: BC’
For pair 3: AC
For pair 4: AB
Either we can take pair 3 or pair 4, but not the both. As using 3 pairs all
1’s are covered.
f = B’C + BC’ + AB 0r B’C + BC’ + AC
KIIT Deemed to be University
K Maps
Minimize the expression f = Σm(1,2,5,6,7) in pos form.
BC 00 01 11 10
A
0 1 0 1
0
1 0 1 1 1
For pair, B + C
For single cell, (A + B’ + C’)
So f= (B + C) (A + B’ + C’)
A
0 1 0 1
0
1 0 1 1
1
m4 m5 m7 m6
01
m8 m9 m11 m10
10
CD
00 01 11 10
AB
1 1 1 1
00
1 1
01
1 1
11
1 1 1 1
10
CD
00 01 11 10
AB
1 1
00
1 1 1
01
1 1 1
11
1 1 1
10
1 1 1 1
01
1 1
11
10
CD
00 01 11 10
AB
1 1 1 0
00
1 1 1 1
01
0 1 1 0
11
0 0 0 0
10
CD
00 01 11 10
AB
1
00
1 1 1
01
1 1 1
11
1
10
CD
00 01 11 10
AB
0 1 0 x
00
x 1 0 1
01
1 1 0 1
11
0 0 0 0
10
CD
00 01 11 10
AB
0 0 x
00
x 0
01
0
11
0 0 0 0
10
So f = (B + D) (A’ + B) ( C’ + D’ )
CD
00 01 11 10
AB
0 0 x 0
00
x 0 0 x
01
0 0
11
0 0 0
10
CD
00 01 11 10
AB
1 1 1 1
00
1 1 1 1
01
1 1 1 1
11
1 1 1
10
So f = A’ + B + C + D’
RS
00 01 11 10
PQ
x 1 1
00
x 1
01
x 1
11
1 1
10
RS
00 01 11 10
PQ
0 x
00
0 x 0
01
0 0 x
11
0 0
10
So f = R(P + Q’ +S)