Lec 6
Lec 6
Fall 2020
Lecture 6
Canonical Forms
01
Agenda
SoP and PoS Form
02
Function Simplification
03
Canonical Forms
Boolean Functions
• Boolean Expression x y z F
Example: F = x + y’ z 0 0 0 0
• Truth Table 0 0 1 1
All possible combinations of input variables
0 1 0 0
• Logic Circuit
0 1 1 0
1 0 0 1
x F
y 1 0 1 1
z 1 1 0 1
1 1 1 1
Boolean Functions (cont.)
• Boolean Expression
x y z F
– F = ??
0 0 0 0
• Logic Circuit
– ???
0 0 1 1
0 1 0 0
Boolean expression can be represented by either 0 1 1 0
Sum of minterms /product 1 0 0 1
e.g. ABC+AB’C 1 0 1 1
1 1 0 1
Product of Maxterms /Sum
1 1 1 1
e.g. (A+B+C)(A+B’+C)
Minterm
(bj). 4 1 0 0 M4 A + B + C
5 1 0 1 M5 A + B + C
– A variable in Mj is complemented if its value in
bj is 1, otherwise is uncomplemented.
6 1 1 0 M6 A + B + C
7 1 1 1 M7 A + B + C
– Example
✓ If M3 Then, bj = 011 and its corresponding
No. of maxterm = 2𝑛
maxterm is denoted by M3= A+B’+C’ whrer n = no. of variables
Truth Table Of Boolean Function
m A B C F
F = ABC + ABC + ABC + ABC
m0 0 0 0 0
m1 0 0 1 1
m2 0 1 0 0
m3 0 1 1 0 • Canonical Sum-Of-minterm:
m4 1 0 0 1
➢ The minterms included are those mj such that F( ) = 1 in row j of
m5 1 0 1 1
the truth table for F( ).
m6 1 1 0 0
m7 1 1 1 1
Note: We write the variable name itself when its corresponding entry in the table is 1 - otherwise, we write the
complement of the variable in case of minterm.
Truth Table Of Boolean Function
M A B C F
M0 0 0 0 0 F = ( A + B + C ) ( A + B + C )( A + B + C ) ( A + B + C )
M1 0 0 1 1
M2 0 1 0 0
M3 0 1 1 0 • Canonical Product-Of-maxterm:
M4 1 0 0 1
➢ The maxterms included are those Mj such that F( ) = 0 in row j of
M5 1 0 1 1
M6 1 1 0 0 the truth table for F( ).
M7 1 1 1 1
Note: We write the variable name itself when its corresponding entry in the table is 0 - otherwise, we write the
complement of the variable in case of maxterm.
Canonical Forms
= ∏(0,3,5,7) indicates that the maxterms to be included are M0, M3, M5, and M7
= (a+b+c)•(a+b’+c’)•(a’+b+c’)•(a’+b’+c’)
Truth Table Of Boolean Function
Sum of Minterms
A B C F F
F = ABC + ABC + ABC + ABC
0 0 0 0 0 1
F = m1 + m4 + m5 + m7
1 0 0 1 1 0
F = (1,4,5,7) 2 0 1 0 0 1
F = (0,2,3,6) 3 0 1 1 0 1
4 1 0 0 1 0
Product of Maxterms
5 1 0 1 1 0
F = ( A + B + C )( A + B + C )( A + B + C )( A + B + C )
6 1 1 0 0 1
F = M0 M2 M3 M6 7 1 1 1 1 0
F = (0,2,3,6)
F = (1,4,5,7)
SoP and PoS Form
SOP and POS Forms
• Two forms
• Sum-of-products (SOP)
• Product-of-sums (POS)
• SOP , POS forms are “like” canonical forms, except that not all variables
need appear in the individual product/sum
• SOP is an OR expression with product terms that may have less literals than
minterms
• Example: F = xy + x′yz + xy′z
• POS is an AND expression with sum terms that may have less literals than
maxterms
• Example: F = (x+y ) (x′+y+z) (x+y′+z )
Complementing a Function Algebraically
• Expand non-canonical terms • Expand non-canonical terms
➢ by inserting equivalent of 1 in each ➢ by adding 0 in terms of missing
missing variable x: variables
(x + x’) = 1 (e.g., xx’ = 0) and using the
➢ Remove duplicate minterms distributive law
❑ When a function of more than six variables has to be simplified, mapping techniques
become increasingly difficult to employ and alternative methods have to be
considered.
❑ A commonly used alternative is the Quine-McCluskey tabular method.
▪ This technique is tedious, time consuming, and subject to error when performed by hand
▪ However, these difficulties can be overcome by writing a program which allows the
simplification process to be run on a computer.
▪ The method is based on the complementation theorem which can be applied to the
simplification process systematically.
This theorem is illustrated by the simple case
f = ABC + ABC = AB(C + C’)= AB
Example 1
Simplify F (w,x,y,z)=∑(1,4,6,7,8,9,10,11,15) using tabular
(a) (b)
(c)
0001 1 √ 1,9 -001
8,9,10,11 10--
0100 4 √ 4,6 01-0
8,9,10,11 10--
1000 8 √ 8,9 100- √
Example 1
Simplify F (w,x,y,z)=∑(1,4,6,7,8,9,10,11,15) using tabular
mi 1 4 6 7 8 9 10 11 15
x’y’z
1,9
√ X X
4,6 w’xz’ √ X X
6,7 w’xy X X
7,15 xyz
√ X X
11,15 wyz X X
8,9,10,11 wx’ X X X X
√
√ √ √ √ √ √ √
1) The terms are inspected for columns with single X
2) Search each column whose X is covered by terms from previous step
3) The columns that not covered by step 1 or 2 are searched for common terms. if
there is no common write each one separately
F= x’y’z + w’xz’ + wx’ + xyz
Thank you