Boolean Algebra and K-Map
Boolean Algebra and K-Map
1
Canonical and Standard Forms of
Boolean Expression
• We need to consider formal techniques for the
simplification of Boolean functions.
– Sum-of-Minterms and Product-of- Maxterms or
– Sum-of-Products (SOP) and Product-of-Sums (POS)
• Replace ∑ with ∏ (or vice versa) and replace those j’s that
appeared in the original form with those that do not.
• Example:
f1(a,b,c) = a’b’c + a’bc’ + ab’c’ + abc’
= m1 + m 2 + m 4 + m 6
= ∑(1,2,4,6)
= ∏(0,3,5,7)
= (a+b+c)•(a+b’+c’)•(a’+b+c’)•(a’+b’+c’)
AB C A B ABC D
AB C AB C ( D D ) AB CD AB CD
A B A B (C C ) A B C A B C
A B C ( D D ) A B C ( D D ) A B CD A B CD A B C D A B C D
AB C A B ABC D AB CD AB CD A B CD A B CD A B C D A B C D ABC D
Conversion of POS from standard to
canonical form
• Expand noncanonical terms by adding 0 in terms of
missing variables (e.g., xx’ = 0) and using the
distributive law
• Remove duplicate maxterms
( A B C )( B C D )( A B C D)
A B C A B C DD ( A B C D )( A B C D )
B C D B C D AA ( A B C D )( A B C D )
( A B C )( B C D )( A B C D)
( A B C D)( A B C D )( A B C D )( A B C D )( A B C D )
Conversion of POS from standard to
canonical form (example)
• f1(a,b,c) = (a+b+c)•(b’+c’)•(a’+c’)
= (a+b+c)•(aa’+b’+c’)•(a’+bb’+c’)
= (a+b+c)•(a+b’+c’)•(a’+b’+c’)•
(a’+b+c’)•(a’+b’+c’)
= (a+b+c)•(a+b’+c’)•(a’+b’+c’)•(a’+b+c’)
22
Two-Variable Map (cont.)
• Any two adjacent cells in the map differ by
ONLY one variable, which appears
complemented in one cell and
uncomplemented in the other.
• Example:
m0 (=x1’x2’) is adjacent to m1 (=x1’x2) and m2
(=x1x2’) but NOT m3 (=x1x2)
0 m0 m1 m3 m2
4 5 7 6
1 m4 m5 m7 m6
group of 4 terms
2024.11.23 Boolean Algebra PJF - 28
Simplification
• Enter minterms of the Boolean function into
the map, then group terms
• Example: f(a,b,c) = a’c + abc + bc’
• Result: f(a,b,c) = a’c+ b
abc
1 1 1
1 1
1 1 1
1 1
• f1(x, y, z) = ∑ m(2,3,5,7) 0 1 1
1 1 1
f1(x, y, z) = x’y + xz
• f2(x, y, z) = ∑ m (0,1,2,3,6)
1 1 1 1
f (x, y, z) = x’+yz’
2
1
00 01 11 10
WX
00 m0 m1 m3 m2
01 m4 m5 m7 m6
10 m8 m9 m11 m10
CD 00 01 11 10
AB
00
01
11
10
Four-variable Map Simplification
• One square represents a minterm of 4 literals.
• A rectangle of 2 adjacent squares represents a
product term of 3 literals.
• A rectangle of 4 squares represents a product term of
2 literals.
• A rectangle of 8 squares represents a product term of
1 literal.
• A rectangle of 16 squares produces a function that is
equal to logic 1.
1 1 1 1 1 1
1 1 1 1
1 1 1 1 1 1
g(A,B,C,D) = c’+b’d’+a’bd
2024.11.23 Boolean Algebra PJF - 37
Determining the Minimum SOP
Expression from the Map (example)
CD
00 01 11 10 B A C AC D
AB
00 1 1 AC
01 1 1 1 1 B
11 1 1 1 1
AC D
10 1
Determining the Minimum SOP
Expression from the Map (exercises)
CD CD
AB 00 01 11 10 AB 00 01 11 10
00 1 1 00 1 1
01 1 1 1 1 01 1 1 1
11 11 1 1 1
10 1 1 10 1 1 1
A B A C AB D D AB C BC