SlideShare a Scribd company logo
Boolean functions
and minimization
Dr.S.Joshua Kumaresan M.E, M.S, Ph.D
Associate professor/ECE
R.M.K. Engineering college
Learning Outcomes
 A Boolean function is an expression formed with:
 Binary variables
 Operators (OR, AND, and NOT)
 Parentheses, and equal sign
 The value of a Boolean function can be either 0 or 1
 A Boolean function may be represented as:
 An algebraic expression, or
 A truth table
 A Logic diagram
80
Boolean Functions
13 / 28
• Boolean Expression
Example: F(x, y) = x + y’ z
• Truth Table
All possible combinations
of input variables
• Logic Circuit
x y z F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
x
y
z
F
BOOLEAN FUNCTIONS
DIGITAL PRINCIPLES AND SYSTEM DESIGN 4
Boolean Theorems - Recap
Animated Video
Simplification - EXAMPLE
• (A + B)(A + C) = A + BC
• This rule can be proved as follows:
• (A + B)(A + C) = AA + AC + AB + BC Distributive law
• = A + AC + AB + BC AA = A
• = A( 1 + C) + AB + BC 1 + C = 1
• = A. 1 + AB + BC Factoring (distributive law)
• = A(1 + B) + BC 1 + B = 1
• = A. 1 + BC A . 1 = A
• = A + BC
Simpification - EXAMPLE
Simplify the following expression
Y = (A + B) (A’ + C) (B' + C’)
Y = (A + B) (A’ + C) (B' + C’)
= (AA' + AC +A'B +BC) (B' + C') [A.A' = 0]
= (AC + A'B + BC) (B' + C’)
= AB'C + ACC' + A'BB' + A'BC' + BB'C + BCC‘
= AB'C + A'BC
Simplification - EXAMPLE
• Prove that ABC + ABC' + AB'C + A'BC = AB + AC + BC
• ABC + ABC' + AB'C + A'BC
= AB(C + C') + AB'C + A'BC
= AB + AB'C + A'BC
= A (B + B'C) + A'BC
= A (B + C) (B + B') + A'BC
= AB + AC + A'BC
= B (A + A'C) + AC
= B (A + A') (A + C) + AC
= AB + BC + AC
= AB + AC +BC ...Proved
Simplification – Example
•Solve the boolean expression
•(x+ y) (x+ y’)
= x.x+ xy’+ yx+ yy’
= x+ xy’+ xy+ 0 [ x. x= x]; [ y. y’= 0]
= x (1+ y’+ y)
= x (1) [ 1+y= 1 ]
= x.
Simplification - Example
Solve the expression :A’B’+ A’C’D’+ A’B’D+
A’B’CD’
= A’B’ (1+D) + A’C’D’+ A’B’CD’
= A’B’ (1) + A’C’D’+ A’B’CD’ [1+ x = 1]
= A’B’+ A’C’D’+ A’B’CD’
= A’B’+ A’B’CD’+ A’C’D’
= A’B’ (1+CD’) + A’C’D’
= A’B’ (1) + A’C’D’ [1+ x = 1]
= A’B’+ A’C’D’
= A’ (B’+C’D’)
Consensus Theorem
AB + C + BC = AB + C
Proof Steps
AB + C + BC
= AB + C + 1 · BC
= AB + C + (+ A) · BC
= AB + C + BC + ABC
= AB (1+C) +C (1 + B)
= AB . 1 + C . 1
= AB + C
(a)x+y
Ans: x+y
(b)x.+y)
Ans: xy
© x
Ans: x.(
Try out some Boolean Function Minimization
 The complement of a Boolean function is obtained by
interchanging:
 Operators OR and AND
 Complementing each literal
 This is based on De Morgan’s theorems,
whose general form is:
A 1+A 2 +A 3 +...+An = A 1A 2 A 3 ...An
A 1A 2 A 3 ...An = A 1+A 2 +A 3 +...+An
80
Complement of a Boolean Function
80
Complementing a Boolean Function (Example)
Complement
=
=
=
SUM OF PRODUCT
• The sum-of-products (SOP) form is a method (or form) of simplifying the Boolean
expressions of logic gates.
• Sum and product derived from the symbolic representations of the OR and AND
functions.
• OR (+) , AND ( . ) , addition and multiplication.
• Minterms : It is a product term that consists of all the varaibles in complemented or
true form
f(A,B,C) = ABC + A’BC’
SUM
PRODUCT TERM
A sum-of-products (SOP) expression is a product term
or several product terms logically added (ORed)
together. Examples are:
F(x,y,z)=
xy+z
F(x,y,z) =x+ yz
F(x,y)= xy+
xy
80
Sum-of-Products (SOP) Expression
A B C F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1
CONVERTING FROM TRUTH TABLE
TO BOOLEAN FUNCTION
Truth Table to Boolean Function
F = A’B’C+ AB'C' + AB'C +ABC
Using Minterms
DIGITAL PRINCIPLES AND SYSTEM DESIGN 17
CONVERTING FROM TRUTH TABLE TO
BOOLEAN FUNCTION
• Sum of Minterms
• F =A’B’C + AB’C’ + AB’C+ ABC
• F= m1 + m4 + m5 + m7
DIGITAL PRINCIPLES AND SYSTEM DESIGN 18
A B C F
0 0 0 0 0
1 0 0 1 1
2 0 1 0 0
3 0 1 1 0
4 1 0 0 1
5 1 0 1 1
6 1 1 0 0
7 1 1 1 1
F = ∑(1,4,5,7)
x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
80
The following 3 combinations of the variables produce a 1:
001, 100, and 111
Expressing a Function in its
Sum-of-Products Form (Example)
(Continued on next slide)
Expressing a Function in its
Sum-of-Products Form (Example)
(Continued from previous slide..)
 Their corresponding minterms are:
x y z, x y z, and x y 
z
 Taking the OR of these minterms, we get
F1 =xy z+ x y z+ x y
z=m1+m4 m7
80
F1 xy z=1, 4,7
MINTERMS
⮚ f(A,B,C) = A’B’C’ + A’BC’ + A’BC + ABC
= m0 + m2 + m3 + m7
= Σm(0,2,3,7)
⮚ f(A,B,C)= A’B’C + A’BC + AB’C + ABC
= m1 + m3 + m5 + m7
= Σm(1,3,5,7)
⮚ f(A,B,C)= A’B’C’ + A’BC’ + A’BC + ABC’
= m0 + m2 + m3 + m6
= Σm(0,2,3,6)
DIGITAL PRINCIPLES AND SYSTEM DESIGN 21
CANONICAL FORM
• In SOP or POS form, all individual terms do not
involve all literals.
• For example AB + A’BC the first product term
do not contain literal C.
• If each term in SOP or POS contain all
literals then the expression is known as
canonical form.
CONVERT SOP TO CANONICAL
SOP FORM
•Step 1: Find the missing literal in each product term if any.
•Step 2: And each product term having missing literals with
terms form by ORing the literal and its complement.
•Step 3: Expends the term by applying, distributive
law and reorder the literals.
•Step 4: Reduce the repeated product terms.
Because A + A = A (Theorem 1a ).
EXAMPLE
f (A,B,C) = AB + BC + AC
Step 1: Find the missing literals in each product
term.
f (A,B,C) = AB + BC + AC
Step 2: AND the product term with missing literal + its
complement.
f (A,B,C) = AB . (C+C’) + BC . (A+A’) + AC . (B+B’)
Literal B is missing
Literal A is missing
Literal C is missing
Missing literals and their complements
Step 3: Expends the term and reorder the literals.
f (A,B,C) = AB . (C+C’) + BC . (A+A’) + AC . (B+B’)
Expand & Reorder:
ABC + ABC’ + ABC + A’BC + ABC + AB’C
Step 4: Omit repeated product terms.
f(A,B,C)=ABC + ABC’ + ABC + A’BC + ABC + AB’C
f(A,B,C)= ABC + ABC’ + A’BC + AB’C
Write once
PRODUCT OF SUM
• When two or more sum terms are multiplied by a Boolean OR operation.
• Sum terms are defined by using OR operation and the product term is
defined by using AND operation.
• Maxterms : It is a sum term that consists of all the varaibles in
complemented or true form
f(A,B,C) = (A’+C) . (A’+B+C’)
PRODUCT
SUM TERM
Product-of Sums (POS) Expression
A product-of-sums (POS) expression is a sum term
(maxterm) or several sum terms (maxterms) logically
multiplied (ANDed) together. Examples are:
F(x,y) = x+ yx+ yx+y
F(x,y,z) = x + yx+ y+z
F(x,y) = x+ yx+y 
80
21 / 28
A B C F
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 0
CONVERTING FROM TRUTH TABLE TO
BOOLEAN FUNCTION
Truth Table to Boolean Function
F = ( A + B +C') ( A' + B + C)( A '+ B + C')( A' + B' + C')
Using Maxterms
DIGITAL PRINCIPLES AND SYSTEM DESIGN 28
CONVERTING FROM TRUTH TABLE TO
BOOLEAN FUNCTION
• Productof Maxterms
• F=(A+B+C).(A+B’+C).(A+B’+C’).(A’+B’+C)
• F= m0 . m2 . m3 . M6
DIGITAL PRINCIPLES AND SYSTEM DESIGN 29
A BC F
0 0 0 0 0
1 0 0 1 1
2 0 1 0 0
3 0 1 1 0
4 1 0 0 1
5 1 0 1 1
6 1 1 0 0
7 1 1 1 1
F = Π (0,2,3,6)
x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
 The following 5 combinations of variables produce a 0:
000, 010, 011, 101, and
110
Expressing a Function in its
Product-of-Sums Form
(Continued on next slide)
Product-of-Sums Form
(Continued from previous slide..)
 Their corresponding maxterms are:
x+ y+ z, x+ y+ z, x+ y+ z,
x+ y+ z and x+ y+ z
 Taking the AND of these maxterms, we get:
F1 =x+ y+ zx+ y+ z x+ y+ z x+
y+z
x+ y+z=M0 M2 M3  M5 M6
F1 x,y,z = Π0,2,3,5,6
MAXTERMS
⮚f(A,B,C) = (A+B+C).(A+B’+C).(A+B’+C’)+(A’+B’+C’)
= M0 + M2 + M3 + M7
= ΠM(0,2,3,7)
⮚f(A,B,C)= (A+B+C’).(A+B’+C’).(A+B’+C’).(A’+B’+C’)
= M1 + M3 + M5 + M7
= ΠM (1,3,5,7)
⮚f(A,B,C)= (A+B+C).(A+B’+C).(A+B’+C’).(A’+B’+C)
= M0 + M2 + M3 + M6
= ΠM (0,2,3,6)
DIGITAL PRINCIPLES AND SYSTEM DESIGN 32
CONVERT POS TO STANDARD
POS FORM
•Step 1: Find the missing literal in each sum term if any.
•Step 2: OR each sum term having missing literals with terms
form by ANDing the literal and its complement.
•Step 3: Expends the term by applying, distributive
law and reorder the literals.
•Step 4: Reduce the repeated product terms. Because A +
A = A (Theorem 1a ).
EXAMPLE
f (A,B,C) = (A + B) . (B + C) . (A + C)
Step 1: Find the missing literals in each sum
term.
f (A,B,C) = (A + B) . (B + C) . (A + C)
Step 2: OR the sum term with missing
literal . its complement.
f (A,B,C) = (A + B)+(C.C’) + (B + C)+(A.A’) + (A +
C)+(B.B’)
Literal B is missing
Literal A is missing
Literal C is missing
Missing literals and their complements
Step 3: Expends the term and reorder the
literals.
f (A,B,C) = (A + B)+(C.C’) + (B + C)+(A.A’) + (A +C)+(B.B’)
Expand & Reorder:
f(A,B,C)=(A+B+C).(A+B+C’).(A+B+C).(A’+B+C).(A+B+C).
(A+B’+C)
Step 4: Omit repeated sum terms.
f(A,B,C)=(A+B+C).(A+B+C’).(A+B+C).(A’+B+C).(A+B+C).(A+B’+C)
f(A,B,C)=(A+B+C).(A+B+C’).(A’+B+C).(A+B’+C)
Write once
=
Σ
To convert from one canonical form to another,
interchange the symbol and list those numbers missing
from the original form.
Example:
Fx,y,z= Π0,2,4,5 = Σ1,3,6,7
Fx,y,z 1,4,7 = Σ0,2,3,5,6
Conversion Between Canonical Forms (Sum-of-
Products and Product-of-Sums)
Note that each minterm is the complement of its corresponding maxterm and vice-versa
Variables Minterms Maxterms
x y z Term Designation Term Designation
0 0 0
x  y z m 0 x  y  z M 0
0 0 1
x  y z m 1 x  y  z M 1
0 1 0
x  y z m 2 x  y  z M 2
0 1 1
x  y z m 3 x  y  z M 3
1 0 0
x  y z m 4 x  y  z M 4
1 0 1
x  y z m 5 x  y  z M 5
1 1 0
x  y z m 6 x  y  z M 6
1 1 1
x  y z m 7 x  y  z M 7
80
Minterms and Maxterms for three Variables

More Related Content

PDF
Sop and pos
PDF
2nd PUC computer science chapter 2 boolean algebra
PPTX
Logic gates summary in digital electronics
PPTX
4. Boolean Function and Their Representation.pptx
PPTX
SOP POS, Minterm and Maxterm
PPTX
Boolean algebra
PPT
Digital Electronics
PPTX
Sum of Product or SOP and Product of Sum or POS+ Karnaugh Map or K-Map .pptx
Sop and pos
2nd PUC computer science chapter 2 boolean algebra
Logic gates summary in digital electronics
4. Boolean Function and Their Representation.pptx
SOP POS, Minterm and Maxterm
Boolean algebra
Digital Electronics
Sum of Product or SOP and Product of Sum or POS+ Karnaugh Map or K-Map .pptx

Similar to session 3 - Boolean Functions Minimization.pptx (20)

PPTX
SUM OF PRODUCT AND PRODUCT OF SUM FORM .pptx
PDF
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
PPTX
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptx
PDF
ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.
PPT
Boolean algebra
PPT
13 Boolean Algebra
PPTX
Module ppt class.pptx
PPTX
Module 1 ppt class.pptx
PPTX
SOP_POS_kmap_ DJ_Section_B.pptx
PPTX
Digital Circuits, important subject in CS
PPTX
CcchcufugufufyfyfDE - UEEB02 - L 10-11.pptx
PDF
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
PPTX
Intoduction to Computer Appl 1st_coa.pptx
PDF
2,Combinational Logic Circuits.pdf
PPTX
Switching theory and logic design.
PPTX
Digital logic design lecture 2
PDF
digital electronics PPT.pdfggjjnjjjjuuhhh
PPTX
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
PDF
Digital electronics combinational log ckt sop pos kmap quine
SUM OF PRODUCT AND PRODUCT OF SUM FORM .pptx
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptx
ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.
Boolean algebra
13 Boolean Algebra
Module ppt class.pptx
Module 1 ppt class.pptx
SOP_POS_kmap_ DJ_Section_B.pptx
Digital Circuits, important subject in CS
CcchcufugufufyfyfDE - UEEB02 - L 10-11.pptx
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
Intoduction to Computer Appl 1st_coa.pptx
2,Combinational Logic Circuits.pdf
Switching theory and logic design.
Digital logic design lecture 2
digital electronics PPT.pdfggjjnjjjjuuhhh
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital electronics combinational log ckt sop pos kmap quine
Ad

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Digital Logic Computer Design lecture notes
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Welding lecture in detail for understanding
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPT
Mechanical Engineering MATERIALS Selection
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
573137875-Attendance-Management-System-original
bas. eng. economics group 4 presentation 1.pptx
OOP with Java - Java Introduction (Basics)
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Digital Logic Computer Design lecture notes
CH1 Production IntroductoryConcepts.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Welding lecture in detail for understanding
UNIT 4 Total Quality Management .pptx
Operating System & Kernel Study Guide-1 - converted.pdf
R24 SURVEYING LAB MANUAL for civil enggi
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
additive manufacturing of ss316l using mig welding
Mechanical Engineering MATERIALS Selection
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Embodied AI: Ushering in the Next Era of Intelligent Systems
Ad

session 3 - Boolean Functions Minimization.pptx

  • 1. Boolean functions and minimization Dr.S.Joshua Kumaresan M.E, M.S, Ph.D Associate professor/ECE R.M.K. Engineering college
  • 3.  A Boolean function is an expression formed with:  Binary variables  Operators (OR, AND, and NOT)  Parentheses, and equal sign  The value of a Boolean function can be either 0 or 1  A Boolean function may be represented as:  An algebraic expression, or  A truth table  A Logic diagram 80 Boolean Functions
  • 4. 13 / 28 • Boolean Expression Example: F(x, y) = x + y’ z • Truth Table All possible combinations of input variables • Logic Circuit x y z F 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 x y z F BOOLEAN FUNCTIONS DIGITAL PRINCIPLES AND SYSTEM DESIGN 4
  • 5. Boolean Theorems - Recap Animated Video
  • 6. Simplification - EXAMPLE • (A + B)(A + C) = A + BC • This rule can be proved as follows: • (A + B)(A + C) = AA + AC + AB + BC Distributive law • = A + AC + AB + BC AA = A • = A( 1 + C) + AB + BC 1 + C = 1 • = A. 1 + AB + BC Factoring (distributive law) • = A(1 + B) + BC 1 + B = 1 • = A. 1 + BC A . 1 = A • = A + BC
  • 7. Simpification - EXAMPLE Simplify the following expression Y = (A + B) (A’ + C) (B' + C’) Y = (A + B) (A’ + C) (B' + C’) = (AA' + AC +A'B +BC) (B' + C') [A.A' = 0] = (AC + A'B + BC) (B' + C’) = AB'C + ACC' + A'BB' + A'BC' + BB'C + BCC‘ = AB'C + A'BC
  • 8. Simplification - EXAMPLE • Prove that ABC + ABC' + AB'C + A'BC = AB + AC + BC • ABC + ABC' + AB'C + A'BC = AB(C + C') + AB'C + A'BC = AB + AB'C + A'BC = A (B + B'C) + A'BC = A (B + C) (B + B') + A'BC = AB + AC + A'BC = B (A + A'C) + AC = B (A + A') (A + C) + AC = AB + BC + AC = AB + AC +BC ...Proved
  • 9. Simplification – Example •Solve the boolean expression •(x+ y) (x+ y’) = x.x+ xy’+ yx+ yy’ = x+ xy’+ xy+ 0 [ x. x= x]; [ y. y’= 0] = x (1+ y’+ y) = x (1) [ 1+y= 1 ] = x.
  • 10. Simplification - Example Solve the expression :A’B’+ A’C’D’+ A’B’D+ A’B’CD’ = A’B’ (1+D) + A’C’D’+ A’B’CD’ = A’B’ (1) + A’C’D’+ A’B’CD’ [1+ x = 1] = A’B’+ A’C’D’+ A’B’CD’ = A’B’+ A’B’CD’+ A’C’D’ = A’B’ (1+CD’) + A’C’D’ = A’B’ (1) + A’C’D’ [1+ x = 1] = A’B’+ A’C’D’ = A’ (B’+C’D’)
  • 11. Consensus Theorem AB + C + BC = AB + C Proof Steps AB + C + BC = AB + C + 1 · BC = AB + C + (+ A) · BC = AB + C + BC + ABC = AB (1+C) +C (1 + B) = AB . 1 + C . 1 = AB + C
  • 12. (a)x+y Ans: x+y (b)x.+y) Ans: xy © x Ans: x.( Try out some Boolean Function Minimization
  • 13.  The complement of a Boolean function is obtained by interchanging:  Operators OR and AND  Complementing each literal  This is based on De Morgan’s theorems, whose general form is: A 1+A 2 +A 3 +...+An = A 1A 2 A 3 ...An A 1A 2 A 3 ...An = A 1+A 2 +A 3 +...+An 80 Complement of a Boolean Function
  • 14. 80 Complementing a Boolean Function (Example) Complement = = =
  • 15. SUM OF PRODUCT • The sum-of-products (SOP) form is a method (or form) of simplifying the Boolean expressions of logic gates. • Sum and product derived from the symbolic representations of the OR and AND functions. • OR (+) , AND ( . ) , addition and multiplication. • Minterms : It is a product term that consists of all the varaibles in complemented or true form f(A,B,C) = ABC + A’BC’ SUM PRODUCT TERM
  • 16. A sum-of-products (SOP) expression is a product term or several product terms logically added (ORed) together. Examples are: F(x,y,z)= xy+z F(x,y,z) =x+ yz F(x,y)= xy+ xy 80 Sum-of-Products (SOP) Expression
  • 17. A B C F 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 CONVERTING FROM TRUTH TABLE TO BOOLEAN FUNCTION Truth Table to Boolean Function F = A’B’C+ AB'C' + AB'C +ABC Using Minterms DIGITAL PRINCIPLES AND SYSTEM DESIGN 17
  • 18. CONVERTING FROM TRUTH TABLE TO BOOLEAN FUNCTION • Sum of Minterms • F =A’B’C + AB’C’ + AB’C+ ABC • F= m1 + m4 + m5 + m7 DIGITAL PRINCIPLES AND SYSTEM DESIGN 18 A B C F 0 0 0 0 0 1 0 0 1 1 2 0 1 0 0 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 0 7 1 1 1 1 F = ∑(1,4,5,7)
  • 19. x y z F1 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 80 The following 3 combinations of the variables produce a 1: 001, 100, and 111 Expressing a Function in its Sum-of-Products Form (Example) (Continued on next slide)
  • 20. Expressing a Function in its Sum-of-Products Form (Example) (Continued from previous slide..)  Their corresponding minterms are: x y z, x y z, and x y  z  Taking the OR of these minterms, we get F1 =xy z+ x y z+ x y z=m1+m4 m7 80 F1 xy z=1, 4,7
  • 21. MINTERMS ⮚ f(A,B,C) = A’B’C’ + A’BC’ + A’BC + ABC = m0 + m2 + m3 + m7 = Σm(0,2,3,7) ⮚ f(A,B,C)= A’B’C + A’BC + AB’C + ABC = m1 + m3 + m5 + m7 = Σm(1,3,5,7) ⮚ f(A,B,C)= A’B’C’ + A’BC’ + A’BC + ABC’ = m0 + m2 + m3 + m6 = Σm(0,2,3,6) DIGITAL PRINCIPLES AND SYSTEM DESIGN 21
  • 22. CANONICAL FORM • In SOP or POS form, all individual terms do not involve all literals. • For example AB + A’BC the first product term do not contain literal C. • If each term in SOP or POS contain all literals then the expression is known as canonical form.
  • 23. CONVERT SOP TO CANONICAL SOP FORM •Step 1: Find the missing literal in each product term if any. •Step 2: And each product term having missing literals with terms form by ORing the literal and its complement. •Step 3: Expends the term by applying, distributive law and reorder the literals. •Step 4: Reduce the repeated product terms. Because A + A = A (Theorem 1a ).
  • 24. EXAMPLE f (A,B,C) = AB + BC + AC Step 1: Find the missing literals in each product term. f (A,B,C) = AB + BC + AC Step 2: AND the product term with missing literal + its complement. f (A,B,C) = AB . (C+C’) + BC . (A+A’) + AC . (B+B’) Literal B is missing Literal A is missing Literal C is missing Missing literals and their complements
  • 25. Step 3: Expends the term and reorder the literals. f (A,B,C) = AB . (C+C’) + BC . (A+A’) + AC . (B+B’) Expand & Reorder: ABC + ABC’ + ABC + A’BC + ABC + AB’C Step 4: Omit repeated product terms. f(A,B,C)=ABC + ABC’ + ABC + A’BC + ABC + AB’C f(A,B,C)= ABC + ABC’ + A’BC + AB’C Write once
  • 26. PRODUCT OF SUM • When two or more sum terms are multiplied by a Boolean OR operation. • Sum terms are defined by using OR operation and the product term is defined by using AND operation. • Maxterms : It is a sum term that consists of all the varaibles in complemented or true form f(A,B,C) = (A’+C) . (A’+B+C’) PRODUCT SUM TERM
  • 27. Product-of Sums (POS) Expression A product-of-sums (POS) expression is a sum term (maxterm) or several sum terms (maxterms) logically multiplied (ANDed) together. Examples are: F(x,y) = x+ yx+ yx+y F(x,y,z) = x + yx+ y+z F(x,y) = x+ yx+y  80
  • 28. 21 / 28 A B C F 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 0 CONVERTING FROM TRUTH TABLE TO BOOLEAN FUNCTION Truth Table to Boolean Function F = ( A + B +C') ( A' + B + C)( A '+ B + C')( A' + B' + C') Using Maxterms DIGITAL PRINCIPLES AND SYSTEM DESIGN 28
  • 29. CONVERTING FROM TRUTH TABLE TO BOOLEAN FUNCTION • Productof Maxterms • F=(A+B+C).(A+B’+C).(A+B’+C’).(A’+B’+C) • F= m0 . m2 . m3 . M6 DIGITAL PRINCIPLES AND SYSTEM DESIGN 29 A BC F 0 0 0 0 0 1 0 0 1 1 2 0 1 0 0 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 0 7 1 1 1 1 F = Π (0,2,3,6)
  • 30. x y z F1 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1  The following 5 combinations of variables produce a 0: 000, 010, 011, 101, and 110 Expressing a Function in its Product-of-Sums Form (Continued on next slide)
  • 31. Product-of-Sums Form (Continued from previous slide..)  Their corresponding maxterms are: x+ y+ z, x+ y+ z, x+ y+ z, x+ y+ z and x+ y+ z  Taking the AND of these maxterms, we get: F1 =x+ y+ zx+ y+ z x+ y+ z x+ y+z x+ y+z=M0 M2 M3  M5 M6 F1 x,y,z = Π0,2,3,5,6
  • 32. MAXTERMS ⮚f(A,B,C) = (A+B+C).(A+B’+C).(A+B’+C’)+(A’+B’+C’) = M0 + M2 + M3 + M7 = ΠM(0,2,3,7) ⮚f(A,B,C)= (A+B+C’).(A+B’+C’).(A+B’+C’).(A’+B’+C’) = M1 + M3 + M5 + M7 = ΠM (1,3,5,7) ⮚f(A,B,C)= (A+B+C).(A+B’+C).(A+B’+C’).(A’+B’+C) = M0 + M2 + M3 + M6 = ΠM (0,2,3,6) DIGITAL PRINCIPLES AND SYSTEM DESIGN 32
  • 33. CONVERT POS TO STANDARD POS FORM •Step 1: Find the missing literal in each sum term if any. •Step 2: OR each sum term having missing literals with terms form by ANDing the literal and its complement. •Step 3: Expends the term by applying, distributive law and reorder the literals. •Step 4: Reduce the repeated product terms. Because A + A = A (Theorem 1a ).
  • 34. EXAMPLE f (A,B,C) = (A + B) . (B + C) . (A + C) Step 1: Find the missing literals in each sum term. f (A,B,C) = (A + B) . (B + C) . (A + C) Step 2: OR the sum term with missing literal . its complement. f (A,B,C) = (A + B)+(C.C’) + (B + C)+(A.A’) + (A + C)+(B.B’) Literal B is missing Literal A is missing Literal C is missing Missing literals and their complements
  • 35. Step 3: Expends the term and reorder the literals. f (A,B,C) = (A + B)+(C.C’) + (B + C)+(A.A’) + (A +C)+(B.B’) Expand & Reorder: f(A,B,C)=(A+B+C).(A+B+C’).(A+B+C).(A’+B+C).(A+B+C). (A+B’+C) Step 4: Omit repeated sum terms. f(A,B,C)=(A+B+C).(A+B+C’).(A+B+C).(A’+B+C).(A+B+C).(A+B’+C) f(A,B,C)=(A+B+C).(A+B+C’).(A’+B+C).(A+B’+C) Write once
  • 36. = Σ To convert from one canonical form to another, interchange the symbol and list those numbers missing from the original form. Example: Fx,y,z= Π0,2,4,5 = Σ1,3,6,7 Fx,y,z 1,4,7 = Σ0,2,3,5,6 Conversion Between Canonical Forms (Sum-of- Products and Product-of-Sums)
  • 37. Note that each minterm is the complement of its corresponding maxterm and vice-versa Variables Minterms Maxterms x y z Term Designation Term Designation 0 0 0 x  y z m 0 x  y  z M 0 0 0 1 x  y z m 1 x  y  z M 1 0 1 0 x  y z m 2 x  y  z M 2 0 1 1 x  y z m 3 x  y  z M 3 1 0 0 x  y z m 4 x  y  z M 4 1 0 1 x  y z m 5 x  y  z M 5 1 1 0 x  y z m 6 x  y  z M 6 1 1 1 x  y z m 7 x  y  z M 7 80 Minterms and Maxterms for three Variables