Docsity

Quine-McCluskey Algorithm for Boolean Function Minimization - Prof. Susan Lysecky, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
ECE 274 - Digital Logic
Lecture 10
Lecture 10 – Chapter 4.9
Tabular Method for Minimization
2
ECE 274 - Digital Logic
Tabular Method for Minimization - Quine-McCluskey
Developed in the mid-50’s
Finds the minimized representation of a Boolean f unction
Provides systematic way of generating all prime implicants then
extracting a minimum set of primes co vering the on-set
Accomplishes this by repeatedly applying the Uniting theorem
Uniting theorem: ab + ab’ = a(b+b’) = a*1 = a
3
ECE 274 - Digital Logic
Quine-McCluskey Algorithm
Quine-McCluskey Algorithm
1. Find all the prime implicants
2. Find all the essential prime implicants
3. Select a minimal set of remaining prime implicants that covers remaining 1s
pf3
pf4
pf5

Partial preview of the text

Download Quine-McCluskey Algorithm for Boolean Function Minimization - Prof. Susan Lysecky and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Lecture 10

„ Lecture 10 – Chapter 4.

„ Tabular Method for Minimization

ECE 274 - Digital Logic

Tabular Method for Minimization - Quine-McCluskey

„ Developed in the mid-50’s

„ Finds the minimized representation of a Boolean function

„ Provides systematic way of generating all prime implicants then

extracting a minimum set of primes covering the on-set

„ Accomplishes this by repeatedly applying the Uniting theorem

„ Uniting theorem: ab + ab’ = a(b+b’) = a*1 = a

ECE 274 - Digital Logic

Quine-McCluskey Algorithm

Quine-McCluskey Algorithm

1. Find all the prime implicants

2. Find all the essential prime implicants

3. Select a minimal set of remaining prime implicants that covers remaining 1s

a’b’c’ a’b’c ab’c abc’ abc

G

G

G

G

group G0 contains all minterms containing zero 1’s group G1 contains all minterms containing one 1 group G2 contains all minterms containing two 1’s group G3 contains all minterms containing three 1’s this grouping strategy will help us compare the minterms systematically

Minimize F = a’b’c’ + a’b’c + ab’c + abc’ + abc

Step 1: Find all the prime implicants

„ List all elements of on-set and don’t care set, represented as a binary number „ Group minterms according to the number of 1’s in the minterm

Quine-McCluskey – Example 1

G

G

G

G

no new implicants are generated – end of step 1

we have found all prime implicants (ones without check marks)

Step 1: Find all the prime implicants (cont’)

„ Compare each entry in Gi to each entry in Gi+ „ If they differ by 1 bit, we can apply the uniting theorem and eliminate a literal „ Add check to minterm/implicant to remind us that it is not a prime implicant (combined with another elementto form a larger implicant)

G0 (0,1) 00-

G2 (5,7) 1-

G1 (1,5) -

ECE 274 - Digital Logic

Quine-McCluskey – Example 1

Step 2: Find all essential prime implicants

„ Create prime implicant chart „ Columns are minterm indicies, rows are the prime implicants we determined

F = a’b’c’ + a’b’c + ab’c + abc’ + abc

derived in

Step

ECE 274 - Digital Logic

Quine-McCluskey – Example 1

Quine-McCluskey – Example 1

• Is this an optimal solution?

  • YES.
  • We generate all the minterms and make sure they are all covered by the

prime implicants

• Is the solution unique?

  • NOT NECESSARILY.
  • There could be different sets of minimum covers.

Minimize F = w’x’y’z’ + w’x’yz + w’x’yz’ + w’xy’z’ + w’xyz + w’xyz’ + wxy’z +

wxyz + wx’y’z + wx’yz

Step 1: Find all the prime implicants

„ List all elements of on-set and don’t care set, represented as a binary number „ Group minterms according to the number of 1’s in the minterm

w’xyz’ (6) 0110 wxy’z (13) 1101 wxyz (^) (15) 1111 wx’y’z (^) (9) 1001 wx’yz (^) (11) 1011

w’x’y’z’ (0) 0000 w’x’yz (3) 0011 w’x’yz’ (^) (2) 0010 w’xy’z’ (^) (4) 0100 w’xyz (^) (7) 0111

G

G

G

G

G

ECE 274 - Digital Logic

Quine-McCluskey – Example 2

Step 1: Find all the prime implicants (cont’)

„ Compare each entry in Gi to each entry in Gi+ „ If they differ by 1 bit, we can apply the uniting theorem and eliminate a literal „ Add check to minterm/implicant to remind us that it is not a prime implicant

G

G

G

G

G

(2,9)? N (4,3)? N (4,6) 01- (4,6)? no new implicants are generated – end of step 1

G1 (2,3) 001-

(2,3)?

(0,2)? G0 (0,2) 00-

(2,6)?

G

G

G

G

G2 (3,7) 0-

(4,9)? N (3,7) ?(3,11)? (3,13)? N(6,7)? (6,11)? N (6,13)? N(9,7)? N (9,11)? (9,13)? (7,15)? (11,15) ?(13,15)?

ECE 274 - Digital Logic

Quine-McCluskey – Example 2

Step 2: Find all essential prime implicants

„ Create prime implicant chart „ Columns are minterm indicies, rows are the prime implicants we determined „ Place “X” in a row if the prime implicant covers the minterm „ Essential prime implicants are found by looking for rows with a single “X” „ Add essential prime implicant to the cover

Cover: F = w’z’ + wz

Quine-McCluskey – Example 2

essential prime implicants

Step 3: Select a minimal set of remaining prime implicants that covers the on

set of the function

„ Cross out all minterms covered by the prime implicants „ Based on which minterms are left, add minimal set of prime implicants to cover

Cover: F = w’z’ + wz + yz

Minterm 3 and 7 remain – either prime implicant (2,3,6,7) or (3,7,11,15) will work

ECE 274 - Digital Logic

Quine-McCluskey – Example 2

„ What if determining minimum prime implicant cover is not so easy?

„ Assume we have the implicant table below

„ Determine prime implicants, add to cover

0 6 7 8 9 1315 (2,6) 0-

essential primeimplicants Cover: F = w’yz’ + x’y’z

ECE 274 - Digital Logic

Quine-McCluskey – Example 3

„ Karnaugh Maps (K-Maps)

„ Incompletely Specified Functions (Don’t Cares)

„ Multilevel Synthesis

„ Factoring „ Functional Decomposition

„ Multilevel Analysis

„ Cubical Representation

„ Quine-McCluskey

„ Book provides more examples „ Different minimum cover strategy (row dominance)

Chapter 4 Summary – Optimization of Logic Functions