Professional Documents
Culture Documents
ab
ab ab
a ab b
Relationship to Venn Diagrams
m0
m2 m1
a m3 b
Relationship to Venn Diagrams
m0 m2
b m1 m3
Relationship to Venn Diagrams
a
0 2
1 3
b
Relationship to Venn Diagrams
a
b 0 1
0 0 2
1
1 3
Two-Variable K-Map
a
b 0 1
0
1
Three-Variable K-Map
ab
c 00 01 11 10
0 m0 m2 m6 m4
1
m1 m3 m7 m5
Three-Variable K-Map
ab
c 00 01 11 10
1
Three-Variable K-Map
ab
c 00 01 11 10
00
m0 m4 m12 m8
01
m1 m5 m13 m9
11
m3 m7 m15 m11
10
m2 m6 m14 m10
Four-variable K-Map
ab
cd 00 01 11 10
00
01
11
10
Four-variable K-Map
ab
cd 00 01 11 10
00
11
10
SOP Form
Canonical SOP Form
Three Variable Example
F = ABC + ABC + ABC + ABC
using shorthand notation
F = m6 + m3 + m1 + m5
F ( A, B, C ) = ∑ m ( 1,3,5, 6 )
Three-Variable K-Map Example
Plot 1’s (minterms) of switching function
ab
c 00 01 11 10
0
1
1
1 1 1
F ( a, b, c ) = ∑ m ( 1,3,5, 6 )
Three-Variable K-Map Example
Plot 1’s (minterms) of switching function
ab
c 00 01 11 10
0 ab
bc 1
1
1 1 1
F ( a, b, c ) = ab + bc
Four-variable K-Map Example
ab
cd 00 01 11 10
00
1 1
01
1
11
10
1 1
F ( a, b, c, d ) = ∑ m ( 0, 2,9,12,14 )
Karnaugh Maps (K-Map)
F ( a, b, c ) = ∑ m ( 1, 2,3,5, 6 )
Three-Variable K-Map Example
Step 1: Plot the K-map
ab
c 00 01 11 10
0
1 1
1
1 1 1
F ( a, b, c ) = ∑ m ( 1, 2,3,5, 6 )
Three-Variable K-Map Example
Step 2: Circle ALL Prime Implicants
ab
c 00 01 11 10
0
1 1
1
1 1 1
F ( a, b, c ) = ∑ m ( 1, 2,3,5, 6 )
Three-Variable K-Map Example
Step 3: Identify Essential Prime Implicants
ab PI
00 01 11 EPI
10
c
0 PI
1 1
1
EPI
1 1 1
F ( a, b, c ) = ∑ m ( 1, 2,3,5, 6 )
Three-Variable K-Map Example
Step 4: Select minimum subset of remaining
Prime Implicants to complete the cover.
ab PI
00 01 11 EPI
10
c
0
1 1
1
EPI
1 1 1
F ( a, b, c ) = ∑ m ( 1, 2,3,5, 6 )
Three-Variable K-Map Example
Step 5: Read the map.
ab
00 ab01 11
bc
10
c
0
1 1
1
1 bc
1 1
F ( a, b, c ) = ∑ m ( 1, 2,3,5, 6 )
Solution
F ( a, b, c ) = ab + bc + bc = ab + b ⊕ c
Example
Use a K-Map to simplify the
following Boolean expression
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Three-Variable K-Map Example
Step 1: Plot the K-map
ab
c 00 01 11 10
0
1 1
1
1 1
F ( a, b, c ) = ∑ m ( 2, 4,5, 7 )
Three-Variable K-Map Example
Step 2: Circle Prime Implicants
ab
c 00 01 11 10
Wrong!!
0 We really
1 1 should draw
A circle around
all four 1’s
1
1 1
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Three-Variable K-Map Example
Step 3: Identify Essential Prime Implicants
ab EPI
00 01 11 EPI
10
c
Wrong!!
0 We really
1 1 should draw
A circle around
all four 1’s
1
1 1
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Three-Variable K-Map Example
Step 4: Select Remaining Prime Implicants to
complete the cover.
ab EPI
00 01 11 EPI
10
c
0
1 1
1
1 1
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Three-Variable K-Map Example
Step 5: Read the map.
ab ab01 ab
c 00 11 10
0
1 1
1
1 1
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Solution
F ( a, b, c ) = ab + ab = b
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Three-Variable K-Map Example
Step 3: Identify Essential Prime Implicants
ab EPI
c 00 01 11 10
0
1 1
1
1 1
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Three-Variable K-Map Example
Step 5: Read the map.
ab b
c 00 01 11 10
0
1 1
1
1 1
F ( a, b, c ) = ∑ m ( 2,3, 6, 7 )
Solution
F ( a , b, c ) = b
Special Cases
Three-Variable K-Map Example
ab
c 00 01 11 10
0
1 1 1 1
1
1 1 1 1
F ( a , b, c ) = 1
Three-Variable K-Map Example
ab
c 00 01 11 10
F ( a, b, c ) = 0
Three-Variable K-Map Example
ab
c 00 01 11 10
0
1 1
1
1 1
F ( a , b, c ) = a ⊕ b ⊕ c
Four Variable Examples
Example
Use a K-Map to simplify the
following Boolean expression
F ( a, b, c, d ) = ∑ m ( 0, 2,3, 6,8,12,13,15 )
Four-variable K-Map
ab
cd 00 01 11 10
00
1 1 1
01
1
11
10
1 1
1 1
F ( a, b, c, d ) = ∑ m ( 0, 2,3, 6,8,12,13,15 )
Four-variable K-Map
ab
cd 00 01 11 10
00
1 1 1
01
1
11
10
1 1
1 1
F = ∑ m ( 0, 2,3, 6,8,12,13,15 )
Four-variable K-Map
ab
cd 00 01 11 10
00
1 1 1
01
1
11
10
1 1
1 1
F = abd + abc + acd + abd + acd
Example
Use a K-Map to simplify the
following Boolean expression
F ( a, b, c, d ) = ∑ m ( 0, 2, 6,8,12,13,15 )
+ d ( 3,9,10 )
D=Don’t care (i.e. either 1 or 0)
Four-variable K-Map
ab
cd 00 01 11 10
00
1 d 1 1
01
1 d
11
10
d 1
1 1
F ( a, b, c, d ) = ∑ m ( 0, 2, 6,8,12,13,15 ) + d ( 3, 4,9 )
Four-variable K-Map
ab
cd 00 01 11 10
00
1 d 1 1
01
1 d
11
10
d 1
1 1
F = ac + ad + abd
Five Variable K-Maps
F ( a , b, c , d , e )
Five variable K-map
A=1
A=0
Use Two Four-variable K-Maps
bc bc
de 00 01 11 10 de 00 01 11 10
00 00
01 01
11 11
10 10
Five variable example
bc bc
de 00 01 11 10 de 00 01 11 10
00 00
01 01
11
1 1 11
1 1
1 1 1 1
10 10
bc bc
de 00 01 11 10 de 00 01 11 10
00 00
01 01
11
1 1 11
1 1
1 1 1 1
10 10
F1 = a ( ce ) F2 = a ( ce )
Five variable example
F = F1 + F2 = a ( ce ) + a ( ce ) = ce
Plotting POS Functions
K-map Simplification Procedure
Plot the K-map for the function F
Circle all prime implicants on the K-map
Identify and select all essential prime
implicants for the cover.
Select a minimum subset of the remaining
prime implicants to complete the cover.
Read the K-map
Use DeMorgan’s theorem to convert F to F
in POS form
Example
Use a K-Map to simplify the
following Boolean expression
F ( a, b, c ) = ∏ M ( 1, 2,3,5, 6 )
Three-Variable K-Map Example
Step 1: Plot the K-map of F
ab
c 00 01 11 10
0
1 1
1
1 1 1
F ( a, b, c ) = ∏ M ( 1, 2,3,5, 6 )
Three-Variable K-Map Example
Step 2: Circle ALL Prime Implicants
ab
c 00 01 11 10
0
1 1
1
1 1 1
Three-Variable K-Map Example
Step 3: Identify Essential Prime Implicants
ab PI
00 01 11 EPI
10
c
0 PI
1 1
1
EPI
1 1 1
Three-Variable K-Map Example
Step 4: Select minimum subset of remaining
Prime Implicants to complete the cover.
ab PI
00 01 11 EPI
10
c
0
1 1
1
EPI
1 1 1
Three-Variable K-Map Example
Step 5: Read the map.
ab
00 ab01 11
bc
10
c
0
1 1
1
1 bc
1 1
Solution
F = ab + bc + bc
F = ab + bc + bc
( )(
= a+b b+c b+c )( )
F ( a, b, c ) = ∏ M ( 1, 2,3,5, 6 )
TPS Quiz