SlideShare una empresa de Scribd logo
1 de 14
Descargar para leer sin conexión
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

Más contenido relacionado

Similar a 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
 

Similar a 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
 

Más 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
 

Más 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...
 

Último

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Último (20)

UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 

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