SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
Chapter3: Gate-Level Minimization
Lecture6- Function Simplification using Quine
McCluskey Minimization Algorithm
Engr. Arshad Nazir, Asst Prof
Dept of Electrical Engineering
SEECS 1
Fall 2022
Objectives
• Functions Simplification in Sum-of-Products (SOP) form
using Quine McCluskey Minimization Algorithm
2
Fall 2022
Function Simplification using
Quine McCluskey Method
• The Quine-McCluskey method is an exact algorithm which finds
minimum cost sum-of-products implementation of a Boolean
function.
• There are four steps in the Quine-McCluskey algorithm:
 Generate Prime Implicants
 Construct Prime Implicant Table
 Reduce the Prime Implicant Table by
– Removing Essential Prime Implicants
– Column Dominance
– Row Dominance
 Solve Prime Implicant Table by (i) Petrick’s Method (ii)
Branching Method
3
Fall 2022
Example
f(a,b,c,d,e)=∑m(1,3,4,5,6,7,10,11,12,13,14,15,
18,19,20,21,22,23,26,27)
4
Fall 2022
Example Cont…
Group minterms Variables
a b c d e
0 1
4
0 0 0 0 1
0 0 1 0 0
1 3
5
6
10
12
18
20
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 1 0
0 1 1 0 0
1 0 0 1 0
1 0 1 0 0
2 7
11
13
14
19
21
22
26
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 0
1 1 0 1 0
3 15
23
27
0 1 1 1 1
1 0 1 1 1
1 1 0 1 1
 minterms sorted into
groups according to number
of 1’s in each term.
5
Fall 2022
Group minterms a b c d e
0 1
4
0 0 0 0 1
0 0 1 0 0
1 3
5
6
10
12
18
20
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 1 0
0 1 1 0 0
1 0 0 1 0
1 0 1 0 0
2 7
11
13
14
19
21
22
26
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 0
1 1 0 1 0
3 15
23
27
0 1 1 1 1
1 0 1 1 1
1 1 0 1 1
Column 1
6
Fall 2022
Gp minterms a b c d e
0 1,3,5,7
4,5,6,7
4,5,12,13
4,5,20,21
4,6,12,14
4,6,20,22
0 0 - - 1
0 0 1 - -
0 - 1 0 -
- 0 1 0 -
0 - 1 - 0
- 0 1 - 0
1 3,7,11,15
3,7,19,23
3,11,19,27
5,7,13,15
5,7,21,23
6,7,14,15
6,7,22,23
10,11,14,15
10,11,26,27
12,13,14,15
18,19,22,23
18,19,26,27
20,21,22,23
0 - - 1 1
- 0 - 1 1
- - 0 1 1
0 - 1 - 1
- 0 1 - 1
0 - 1 1 -
- 0 1 1 -
0 1 - 1 -
- 1 0 1 -
0 1 1 - -
1 0 - 1 -
1 - 0 1 -
1 0 1 - -
Column3
Gp minterms a b c d e
0 4,5,6,7,12,13,14,15
4,5,6,7,20,21,22,23
4,5,12,13,6,7,14,15
4,5,20,21,6,7,22,23
4,6,12,14,5,7,13,15
4,6,20,22,5,7,21,23
0 - 1 - -
- 0 1 - -
0 - 1 - -
- 0 1 - -
0 - 1 - -
- 0 1 - -
Column4
The Prime implicants generated:-
a′b′e ∑(1,3,5,7)
a′d e ∑(3,7,11,15)
b′d e ∑(3,7,19,23)
c′d e ∑(3,11,19,27)
a′bd ∑(10,11,14,15)
bc′d ∑(10,11,26,27)
ab′d ∑(18,19,22,23)
ac′d ∑(18,19,26,27)
a′c ∑(4,5,6,7,12,13,14,15)
b′c ∑(4,5,6,7,20,21,22,23) 7
Fall 2022
Prime Implicant Table
8
Fall 2022
Reduced Prime Implicant Table
PIs 10 11 18 19 26 27
a′de (3,7,11,15)
b′de (3,7,19,23)
c′de (3,11,19,27)
a′bd (10,11,14,15)
bc′d (10,11,26,27)
ab′d (18,19,22,23)
ac′d (18,19,26,27)
×
×
× × ×
× ×
× × × ×
× ×
× × × ×
 The Prime Implicant Table was
constructed in the previous slide.
 Essential Prime Implicants (EPIs)
identified and eliminated from the table
and corresponding minterms also
struck.
 The Essential Prime Implicants (EPIs)
obtained in this way are:-
_ a′b′e ∑(1,3,5,7)
_ a′c ∑(4,5,6,7,12,13,14,15)
_ b′c ∑(4,5,6,7,20,21,22,23)
 Now we can construct Reduced Prime
Implicant Table and apply column
dominance to reduce it further.
 Eliminate dominating column. 9
Fall 2022
Further Reduced Prime Implicant
Table
PIs 10 18 26
a′bd (10,11,14,15)
bc′d (10,11,26,27)
ab′d (18,19,22,23)
ac′d (18,19,26,27)
×
×
×
×
 The table is further reduced by
applying Column Dominance.
 We can now apply Row Dominance
and eliminate dominated rows.
 Rows bc′d and ac′d dominate a′bd
and ab′d. Hence dominated rows a′bd
and ab′d can be eliminated. The
secondary EPIs bc′d and ac′d cover all
minterms and are selected for
minimal solution.
 We can also apply row dominance
first and then column dominance.
f(a,b,c,d,e)=a′b′e+a′c+b′c+bc′d+ac′d
10
Fall 2022
Petrick Method
PIs 10 11 18 19 26 27
p1 a′de (3,7,11,15)
p2 b′de (3,7,19,23)
p3 c′de (3,11,19,27)
p4 a′bd (10,11,14,15)
p5 bc′d (10,11,26,27)
p6 ab′d (18,19,22,23)
p7 ac′d (18,19,26,27)
×
×
× × ×
× ×
× × × ×
× ×
× × × ×
 In Petrick’s method, a Boolean expression P
is formed which describes all possible
solutions of the table.
 The prime implicants in the table are
numbered in order, from 1 to 6. For each
prime implicant pi, a Boolean variable Pi is
used which is true whenever prime implicant
pi is included in the solution.
 Remember that pi is prime implicant
whereas Pi is corresponding Boolean
proposition(true/false statement) which is
true(1) or false(0) value.
 Using these Pi variables, a larger Boolean
expression P can be formed, which captures
the precise conditions for every row in the
table to be covered.
11
Fall 2022
All Possible Solutions using Petrick’s Method
P=(P4+P5)(P1+P3+P4+P5)(P6+P7)(P2+P3+P6+P7)(P5+P7)
(P3+P5+P7)
P=(P4+P5)(P6+P7)(P5+P7) Absorption theorem
P=(P4+P5)(P7+P5P6) + dist over .
P=P4P7 +P4P5P6+P5P7+P5P6
Each product term in the above Boolean expression describes a
solution for the table.
 All possible solutions are
f1(a,b,c,d,e)=a′b′e+a′c+b′c+a′bd+ac′d
f1(a,b,c,d,e)=a′b′e+a′c+b′c+bc′d+ac′d
f1(a,b,c,d,e)=a′b′e+a′c+b′c+ab′d+bc′d
12
Fall 2022
Map Simplification of the Same Function
1* 1
1 1 1 1
1* 1 1 1
1 1
1 1
1* 1 1 1
1 1
bc
de
00 01 11 10
00
01
11
10
a=0
de
bc
00 01 11 10
00
01
11
10
a=1
f(a,b,c,d,e)=a′c+b′c+a′b′e+(a′bd+ac′d or bc′d+ab′d or bc′d+ac′d)
13
Fall 2022
The End
14
Fall 2022

Contenu connexe

Similaire à Lecture6 Chapter3- Function Simplification using Quine-MacCluskey Method.pdf

06 ch ken black solution
06 ch ken black solution06 ch ken black solution
06 ch ken black solution
Krunal Shah
 
TRACK D: Challenges of Giant Silicons in Advanced Process Technology Node/ S...
TRACK D: Challenges of Giant Silicons in  Advanced Process Technology Node/ S...TRACK D: Challenges of Giant Silicons in  Advanced Process Technology Node/ S...
TRACK D: Challenges of Giant Silicons in Advanced Process Technology Node/ S...
chiportal
 
Dalitz Project Poster
Dalitz Project PosterDalitz Project Poster
Dalitz Project Poster
Nick Eminizer
 
Student manual
Student manualStudent manual
Student manual
ec931657
 

Similaire à Lecture6 Chapter3- Function Simplification using Quine-MacCluskey Method.pdf (20)

06 ch ken black solution
06 ch ken black solution06 ch ken black solution
06 ch ken black solution
 
Two stage op amp design on cadence
Two stage op amp design on cadenceTwo stage op amp design on cadence
Two stage op amp design on cadence
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_priale
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economia
 
Quadratic equations ppt
Quadratic equations pptQuadratic equations ppt
Quadratic equations ppt
 
Matematicas para ingenieria 4ta edicion - john bird
Matematicas para ingenieria   4ta edicion - john birdMatematicas para ingenieria   4ta edicion - john bird
Matematicas para ingenieria 4ta edicion - john bird
 
pot fracciones log etc.pdf
pot fracciones log etc.pdfpot fracciones log etc.pdf
pot fracciones log etc.pdf
 
College algebra in context 5th edition harshbarger solutions manual
College algebra in context 5th edition harshbarger solutions manualCollege algebra in context 5th edition harshbarger solutions manual
College algebra in context 5th edition harshbarger solutions manual
 
Overview of sparse and low-rank matrix / tensor techniques
Overview of sparse and low-rank matrix / tensor techniques Overview of sparse and low-rank matrix / tensor techniques
Overview of sparse and low-rank matrix / tensor techniques
 
51541 0131469657 ism-0
51541 0131469657 ism-051541 0131469657 ism-0
51541 0131469657 ism-0
 
TRACK D: Challenges of Giant Silicons in Advanced Process Technology Node/ S...
TRACK D: Challenges of Giant Silicons in  Advanced Process Technology Node/ S...TRACK D: Challenges of Giant Silicons in  Advanced Process Technology Node/ S...
TRACK D: Challenges of Giant Silicons in Advanced Process Technology Node/ S...
 
Tugas mtk 1.01
Tugas mtk 1.01Tugas mtk 1.01
Tugas mtk 1.01
 
Transportation and transshipment problems
Transportation  and transshipment problemsTransportation  and transshipment problems
Transportation and transshipment problems
 
Dalitz Project Poster
Dalitz Project PosterDalitz Project Poster
Dalitz Project Poster
 
Multi-scalar multiplication: state of the art and new ideas
Multi-scalar multiplication: state of the art and new ideasMulti-scalar multiplication: state of the art and new ideas
Multi-scalar multiplication: state of the art and new ideas
 
Negative numbers
Negative numbersNegative numbers
Negative numbers
 
Correction subcircuits.pdf
Correction subcircuits.pdfCorrection subcircuits.pdf
Correction subcircuits.pdf
 
Student manual
Student manualStudent manual
Student manual
 

Plus de UmerKhan147799

Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
UmerKhan147799
 
Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...
Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...
Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...
UmerKhan147799
 
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
UmerKhan147799
 
Lecture5 Chapter2- Positive and Negative Logic.pdf
Lecture5 Chapter2- Positive and Negative Logic.pdfLecture5 Chapter2- Positive and Negative Logic.pdf
Lecture5 Chapter2- Positive and Negative Logic.pdf
UmerKhan147799
 
Lecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdf
Lecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdfLecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdf
Lecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdf
UmerKhan147799
 
Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...
Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...
Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...
UmerKhan147799
 

Plus de UmerKhan147799 (8)

Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
Lecture6 Chapter1- ASCII Code, Error Detection and Correction Codes, and Bina...
 
Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...
Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...
Lecture6 Chapter4- Design Magnitude Comparator Circuit, Introduction to Decod...
 
Lecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfLecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdf
 
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
 
Lecture5 Chapter2- Positive and Negative Logic.pdf
Lecture5 Chapter2- Positive and Negative Logic.pdfLecture5 Chapter2- Positive and Negative Logic.pdf
Lecture5 Chapter2- Positive and Negative Logic.pdf
 
Lecture4 Chapter3- Non-Degenerate Forms.pdf
Lecture4 Chapter3- Non-Degenerate Forms.pdfLecture4 Chapter3- Non-Degenerate Forms.pdf
Lecture4 Chapter3- Non-Degenerate Forms.pdf
 
Lecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdf
Lecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdfLecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdf
Lecture5 Chapter4- Design Decimal Adder and Binary Multiplier Circuits.pdf
 
Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...
Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...
Lecture5 Chapter3- Exclusive-OR Function and its Applications in Digital Desi...
 

Dernier

Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 

Dernier (20)

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 

Lecture6 Chapter3- Function Simplification using Quine-MacCluskey Method.pdf

  • 1. Chapter3: Gate-Level Minimization Lecture6- Function Simplification using Quine McCluskey Minimization Algorithm Engr. Arshad Nazir, Asst Prof Dept of Electrical Engineering SEECS 1 Fall 2022
  • 2. Objectives • Functions Simplification in Sum-of-Products (SOP) form using Quine McCluskey Minimization Algorithm 2 Fall 2022
  • 3. Function Simplification using Quine McCluskey Method • The Quine-McCluskey method is an exact algorithm which finds minimum cost sum-of-products implementation of a Boolean function. • There are four steps in the Quine-McCluskey algorithm:  Generate Prime Implicants  Construct Prime Implicant Table  Reduce the Prime Implicant Table by – Removing Essential Prime Implicants – Column Dominance – Row Dominance  Solve Prime Implicant Table by (i) Petrick’s Method (ii) Branching Method 3 Fall 2022
  • 5. Example Cont… Group minterms Variables a b c d e 0 1 4 0 0 0 0 1 0 0 1 0 0 1 3 5 6 10 12 18 20 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 0 1 0 1 0 0 1 1 0 0 1 0 0 1 0 1 0 1 0 0 2 7 11 13 14 19 21 22 26 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 3 15 23 27 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1  minterms sorted into groups according to number of 1’s in each term. 5 Fall 2022
  • 6. Group minterms a b c d e 0 1 4 0 0 0 0 1 0 0 1 0 0 1 3 5 6 10 12 18 20 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 0 1 0 1 0 0 1 1 0 0 1 0 0 1 0 1 0 1 0 0 2 7 11 13 14 19 21 22 26 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 0 3 15 23 27 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 Column 1 6 Fall 2022
  • 7. Gp minterms a b c d e 0 1,3,5,7 4,5,6,7 4,5,12,13 4,5,20,21 4,6,12,14 4,6,20,22 0 0 - - 1 0 0 1 - - 0 - 1 0 - - 0 1 0 - 0 - 1 - 0 - 0 1 - 0 1 3,7,11,15 3,7,19,23 3,11,19,27 5,7,13,15 5,7,21,23 6,7,14,15 6,7,22,23 10,11,14,15 10,11,26,27 12,13,14,15 18,19,22,23 18,19,26,27 20,21,22,23 0 - - 1 1 - 0 - 1 1 - - 0 1 1 0 - 1 - 1 - 0 1 - 1 0 - 1 1 - - 0 1 1 - 0 1 - 1 - - 1 0 1 - 0 1 1 - - 1 0 - 1 - 1 - 0 1 - 1 0 1 - - Column3 Gp minterms a b c d e 0 4,5,6,7,12,13,14,15 4,5,6,7,20,21,22,23 4,5,12,13,6,7,14,15 4,5,20,21,6,7,22,23 4,6,12,14,5,7,13,15 4,6,20,22,5,7,21,23 0 - 1 - - - 0 1 - - 0 - 1 - - - 0 1 - - 0 - 1 - - - 0 1 - - Column4 The Prime implicants generated:- a′b′e ∑(1,3,5,7) a′d e ∑(3,7,11,15) b′d e ∑(3,7,19,23) c′d e ∑(3,11,19,27) a′bd ∑(10,11,14,15) bc′d ∑(10,11,26,27) ab′d ∑(18,19,22,23) ac′d ∑(18,19,26,27) a′c ∑(4,5,6,7,12,13,14,15) b′c ∑(4,5,6,7,20,21,22,23) 7 Fall 2022
  • 9. Reduced Prime Implicant Table PIs 10 11 18 19 26 27 a′de (3,7,11,15) b′de (3,7,19,23) c′de (3,11,19,27) a′bd (10,11,14,15) bc′d (10,11,26,27) ab′d (18,19,22,23) ac′d (18,19,26,27) × × × × × × × × × × × × × × × × ×  The Prime Implicant Table was constructed in the previous slide.  Essential Prime Implicants (EPIs) identified and eliminated from the table and corresponding minterms also struck.  The Essential Prime Implicants (EPIs) obtained in this way are:- _ a′b′e ∑(1,3,5,7) _ a′c ∑(4,5,6,7,12,13,14,15) _ b′c ∑(4,5,6,7,20,21,22,23)  Now we can construct Reduced Prime Implicant Table and apply column dominance to reduce it further.  Eliminate dominating column. 9 Fall 2022
  • 10. Further Reduced Prime Implicant Table PIs 10 18 26 a′bd (10,11,14,15) bc′d (10,11,26,27) ab′d (18,19,22,23) ac′d (18,19,26,27) × × × ×  The table is further reduced by applying Column Dominance.  We can now apply Row Dominance and eliminate dominated rows.  Rows bc′d and ac′d dominate a′bd and ab′d. Hence dominated rows a′bd and ab′d can be eliminated. The secondary EPIs bc′d and ac′d cover all minterms and are selected for minimal solution.  We can also apply row dominance first and then column dominance. f(a,b,c,d,e)=a′b′e+a′c+b′c+bc′d+ac′d 10 Fall 2022
  • 11. Petrick Method PIs 10 11 18 19 26 27 p1 a′de (3,7,11,15) p2 b′de (3,7,19,23) p3 c′de (3,11,19,27) p4 a′bd (10,11,14,15) p5 bc′d (10,11,26,27) p6 ab′d (18,19,22,23) p7 ac′d (18,19,26,27) × × × × × × × × × × × × × × × × ×  In Petrick’s method, a Boolean expression P is formed which describes all possible solutions of the table.  The prime implicants in the table are numbered in order, from 1 to 6. For each prime implicant pi, a Boolean variable Pi is used which is true whenever prime implicant pi is included in the solution.  Remember that pi is prime implicant whereas Pi is corresponding Boolean proposition(true/false statement) which is true(1) or false(0) value.  Using these Pi variables, a larger Boolean expression P can be formed, which captures the precise conditions for every row in the table to be covered. 11 Fall 2022
  • 12. All Possible Solutions using Petrick’s Method P=(P4+P5)(P1+P3+P4+P5)(P6+P7)(P2+P3+P6+P7)(P5+P7) (P3+P5+P7) P=(P4+P5)(P6+P7)(P5+P7) Absorption theorem P=(P4+P5)(P7+P5P6) + dist over . P=P4P7 +P4P5P6+P5P7+P5P6 Each product term in the above Boolean expression describes a solution for the table.  All possible solutions are f1(a,b,c,d,e)=a′b′e+a′c+b′c+a′bd+ac′d f1(a,b,c,d,e)=a′b′e+a′c+b′c+bc′d+ac′d f1(a,b,c,d,e)=a′b′e+a′c+b′c+ab′d+bc′d 12 Fall 2022
  • 13. Map Simplification of the Same Function 1* 1 1 1 1 1 1* 1 1 1 1 1 1 1 1* 1 1 1 1 1 bc de 00 01 11 10 00 01 11 10 a=0 de bc 00 01 11 10 00 01 11 10 a=1 f(a,b,c,d,e)=a′c+b′c+a′b′e+(a′bd+ac′d or bc′d+ab′d or bc′d+ac′d) 13 Fall 2022