Canonical Forms and K Maps
Canonical Forms and K Maps
Canonical Forms and K Maps
B.V.V.L.KALA BHARATHI
Dept of ELECTRICAL AND ELECTRONICS ENGINEERING
Aditya Engineering College(A)
Surampalem.
Aditya Engineering College (A)
CANONICAL Form:
It is the way of representing Boolean outputs using boolean algebra.
Two types:
Sum-of-Products (SOP )form
Product-of-Sums(POS) form
Literals: a variable on its own or in its complemented form.
Examples: x, x' , y, y'
Product Term: a single literal or a logical product (AND) of several literals.
Examples: x , x.y.z‘ , A'.B , A.B
Sum Term: a single literal or a logical sum (OR) of several literals.
Examples: x, x+y+z‘ , A'+B , A+B
Maxterm
That means
minterms are product terms.
Maxterms are sum terms.
Therfore
Sum of minterms is SOP Canonical Form.
Example:A.B+A'.B' +A.B’
product of Maxterms is POS Canonical Form.
Example: A+B).(A'+B')+(A+B’)
Obtain the functions F1,F2 and F3 from the given table using minterms
F1 = x.y.z' = m(6)
F2x= x'.y'.z
y z + x.y'.z‘
F1 F2 + x.y'.z
F3 + x.y.z‘ + x.y.z
0 0 0 0 0 0
= (m0,m4,m5,m6,m7)=m(1,4,5,6,7)
0 0 1 0 1 1
0 1 0 0 0 0
0 1 1 0 0 1
F31= x'.y'.z
0 0+ x'.y.z
0 + 1x.y'.z'1 +x.y'.z
1 0 1 0 1 1
1 =(m1,m3,m4,m5)
1 0 1 1 0
1 1 1 0 1 0
= m(1,3,4,5)
Obtain the functions F1,F2 and F3 from the given table using
MAXterms
x y z F1 F2 F3
0 0 0 0 0 0 F1=(M0,M1,M2,M3,M4,M5,M7)=M(0,1,2,3,4,5,7)
0 0 1 0 1 1
0 1 0 0 0 0
=(x+y+z).(x+y+z’)(x+y'+z).(x+y'+z')(x’+y+z)
0 1 1 0 0 1 (x’+y’+z) (x'+y'+z')
1 0 0 0 1 1
1 0 1 0 1 1
1 1 0 1 1 0 F2 = (M0,M2,M3)=M(0,2,3)
1 1 1 0 1 0
= (x+y+z).(x+y'+z).(x+y'+z')
F3 =(M0,M2,M6,M7)= M(0,2,6,7)
= (x+y+z).(x+y'+z).(x'+y'+z).(x'+y'+z')
Digital Circuits and logic design 8/24/20
Aditya Engineering College (A)
Product-of-Maxterms Sum-of-Minterms
Rewrite maxterm shorthand using minterm shorthand.
Replace maxterm indices with indices not already used.
Eg: F2(A,B,C) = M(0,3,5,6) = m(1,2,4,7)
Digital Circuits and logic design 8/24/20
Aditya Engineering College (A)
EXAMPLE
• K-Maps can be used for any number of input variables, BUT are only
practical for two, three, and four variables.
K-Map Format
• Each minterm in a truth table corresponds to a cell in the
K-Map.
• K-Map cells are labeled such that both horizontal and
vertical movement differ only by one variable.
• Since the adjacent cells differ by only one variable, they
can be grouped to create simpler terms in the sum-of-
products expression.
• The sum-of-products expression for the logic function can
be obtained by OR-ing together the cells or group of cells
that contain 1s.
V
W X FWX X X
Minterm – 0 0 0 1
W 1 0
0 1
Minterm – 1 0 1 0
Minterm – 2 1 0 1 1
W
2
0 3
Minterm – 3 1 1 0
Groups of One – 4
V
B B
A 10 10
A 10 10
AB AB
AB AB
8/24/20
Digital Circuits and logic design
Two Variable K-Map Groupings
Groups of Two – 4
V
B B
A 10 110
A 10 10
A
A B B
Group of Four – 1
V
B B
A
1 1
A 1 1
V
J K F1 K K
0 0 1 1 1
J
0 1 1
1 0 0 J 0 0
1 1 0
Solution:
V
J K F1 K K
0 0 1 1 1
J
0 1 1
1 0 0 J J 0 0
1 1 0
W X Y FWXY V
Minterm – 0 0 0 0 1 Y Y
Minterm – 1 0 0 1 0
W X 1 0
0 1
Minterm – 2 0 1 0 0
Minterm – 3 0 1 1 0 W X 0 0 Only one
2 3 variable changes
Minterm – 4 1 0 0 0 for every row
Minterm – 5 1 0 1 1 change
W X 1 0
6 7
Minterm – 6 1 1 0 1
Minterm – 7 1 1 1 0 W X 0 1
4 5
C VC
A B 0 0
11 1
0 0
A B 11 1
AB
0 0
A B 1 1
AB
0 0
A B 1 1
AB
AB BACC BACC
Digital Circuits and logic design BC BC 8/24/20
Three Variable K-Map Groupings
Groups of Four – 6
B
C VC
A B 110 0
1
1
0 0
A B 1
11 1
1
0 0
A B 111 11
A 0 0
A B 11 11
B
A
Digital Circuits and logic design C C 8/24/20
Three Variable K-Map Groupings
Group of Eight - 1
C VC
A B 1 1
1 1
A B
1 1
A B
1 1
A B
1
Digital Circuits and logic design 8/24/20
Example #2: 3 Variable K-Map
Example:
After labeling and transferring the truth table data into the K-Map, write the simplified sum-of-
products (SOP) logic expression for the logic function F2.
E F G F2 G G
0 0 0 0 E F 0 1
0 0 1 1
0 1 0 1
1 0
E F
0 1 1 0
1 0
1 0 0 0 E F
1 0 1 1 0 1
1 1 0 1 E F
1 1 1 0
A B 110 110 10 10 BD
8/24/20
Digital Circuits and logic design
Four Variable K-Map Groupings
V B
C D C D C D C D
D
A B 110 10 10 110
A B 10 0 0 10
A B 10 0 0 10
A B 110 10 10 110
Group of Sixteen – 1
V
C D C D C D C D
A B 1 1 1 1
A B 1 1 1 1
A B 1 1 1 1
A B 1 1 1 1
1 8/24/20
0 0 1 1 1
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 0
1 1 0 0 1
1 1 0 1 0
8/24/20
Digital Circuits and logic design
1 1 1 0 1
1 1 1 1 1
Aditya Engineering College (A)
VC This don’t care condition was treated as a (1). This allowed the grouping
C
of a single one to become a grouping of two, resulting in a simpler term.
A B X 0
1 0
AC A B
0 0
A B
X 0
A B
THANK YOU