Docsity

Unate Covering and Quine-McCluskey Method in Computer Engineering - EECS 203 Homework, Study notes of Discrete Mathematics

Toggle sidebar
bg1
Introduction to Computer Engineering –EECS 203
http://ziyang.eecs.northwestern.edu/∼dickrp/eecs203/
Instructor: Robert Dick
Office: L477 Tech
Email: dickrp@northwestern.edu
Phone: 847–467–2298
TA: Neal Oza
Office: Tech. Inst. L375
Phone: 847-467-0033
Email: [email protected]rthwestern.edu
TT: David Bild
Office: Tech. Inst. L470
Phone: 847-491-2083
Email: d-bild@northwestern.edu
Unate covering within the Quine–McCluskey method
Homework
Review: Quine–McCluskey two-level logic minimization
Compute prime implicants with awell-defined algorithm
Start from minterms
Merge adjacent implicants until further merging impossible
Select minimal cover from prime implicants
Unate covering problem
What is happening?
ab +ab=a
3R. Dick Introductionto Computer Engineering –EECS 203
Unate covering within the Quine–McCluskey method
Homework
Definition: Unate covering
Given amatrix forwhich all entries are 0 or1, find the minimum
cardinalitysubset of columns such that, forevery row, at least one
column in the subset contains a1.
I’ll give an example
4R. Dick Introductionto Computer Engineering –EECS 203
Unate covering within the Quine–McCluskey method
Homework
Prime implicant selection
0X001X X00 X11
100
111
011
010
000 1 1
1 1
1 1
1
1
On-set
minterms
these
... cover
Use these to...
Prime implicants
5R. Dick Introductionto Computer Engineering –EECS 203
Unate covering within the Quine–McCluskey method
Homework
Cyclic core
1
1 1
1
1
1
1
1
1
1
1
1
0
0
111
111
0011
001
010
100
101
110
0X1 01X X01 X10 1X010X
00 01 11 10
1
bc
a
6R. Dick Introductionto Computer Engineering –EECS 203
Unate covering within the Quine–McCluskey method
Homework
Implicant selection reduction
Eliminate rows covered byessential columns
Eliminate rows dominated byother rows
Eliminate columns dominated byother columns
7R. Dick Introductionto Computer Engineering –EECS 203
Unate covering within the Quine–McCluskey method
Homework
Eliminate rows covered byessential columns
ABC
H1
I1 1
J11
K11
8R. Dick Introductionto Computer Engineering –EECS 203
Unate covering within the Quine–McCluskey method
Homework
Eliminate rows dominated byother rows
ABC
H1
I1 1
J1 1
9R. Dick Introductionto Computer Engineering –EECS 203
pf2

Partial preview of the text

Download Unate Covering and Quine-McCluskey Method in Computer Engineering - EECS 203 Homework and more Study notes Discrete Mathematics in PDF only on Docsity!

Introduction to Computer Engineering – EECS 203

http://ziyang.eecs.northwestern.edu/∼dickrp/eecs203/

Instructor: Robert Dick Office: L477 Tech Email: [email protected] Phone: 847–467–

TA: Neal Oza Office: Tech. Inst. L Phone: 847-467- Email: [email protected] TT: David Bild Office: Tech. Inst. L Phone: 847-491- Email: [email protected]

Unate covering within the Quine–McCluskey method Homework

Review: Quine–McCluskey two-level logic minimization

Compute prime implicants with a well-defined algorithm Start from minterms Merge adjacent implicants until further merging impossible Select minimal cover from prime implicants Unate covering problem What is happening? ab + ab = a

3 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Definition: Unate covering

Given a matrix for which all entries are 0 or 1, find the minimum cardinality subset of columns such that, for every row, at least one column in the subset contains a 1.

I’ll give an example

4 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Prime implicant selection

01X 0X0X00 X

On-set

minterms

these

... cover

Use these to...

Prime implicants

5 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Cyclic core

0X1 01X X01 X10 10X1X

bc

a

6 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Implicant selection reduction

Eliminate rows covered by essential columns Eliminate rows dominated by other rows Eliminate columns dominated by other columns

7 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Eliminate rows covered by essential columns

A B C

H 1

I 1 1

J 1 1

K 1 1

8 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Eliminate rows dominated by other rows

A B C

H 1

I 1 1

J 1 1

9 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Eliminate columns dominated by other columns

A B C

H 1

I 1 1

J 1 1

K 1

10 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Backtracking

Will proceed to complete solution unless cyclic If cyclic, backtrack Try all possible options to completion Advanced topic: Can use a number of tricks to simplify this

11 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Use bound to constrain search space

Eliminate rows covered by essential columns Eliminate rows dominated by other rows Eliminate columns dominated by other columns Speed improved, still ∈ N P-complete Too slow to solve for large problem instances

12 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Loose end – Don’t cares

What should be done about Xs in QM? Should they be included in the initial minterms? Should they be required in the Unate Covering problem?

13 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Another example

f (a, b, c) =

(1, 2 , 6) + d(3)

14 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Summary

Review Prime implicant selection in Quine–McCluskey Encoders and decoders Review: Transmission gates Multiplexers and demultiplexers

15 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Reading assignment

M. Morris Mano and Charles R. Kime. Logic and Computer Design Fundamentals. Prentice-Hall, NJ, fourth edition, 2008 Rest of Section 4.

17 R. Dick Introduction to Computer Engineering – EECS 203

Unate covering within the Quine–McCluskey method Homework

Computer geek culture reference

Complexity classes Michael R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman & Company, NY, 1979

18 R. Dick Introduction to Computer Engineering – EECS 203