Unit 6. Quine-McClusky Method. Unit 6 1

Similar documents
UNIT 5 KARNAUGH MAPS Spring 2011

CHAPTER 5 KARNAUGH MAPS

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

DIGITAL ELECTRONICS & it0203 Semester 3

Digital Circuit And Logic Design I. Lecture 4

Karnaugh Maps Objectives

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Logic Design I (17.341) Fall Lecture Outline

Digital Logic Design. Combinational Logic

Unit 2 Session - 6 Combinational Logic Circuits

Optimizations and Tradeoffs. Combinational Logic Optimization

Simplifying Logic Circuits with Karnaugh Maps

ELC224C. Karnaugh Maps

Digital Logic Design ENEE x. Lecture 12

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Chapter 4 Optimized Implementation of Logic Functions

Chapter 2 Combinational Logic Circuits

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 2

Quine-McCluskey (Tabular) Minimization

CHAPTER III BOOLEAN ALGEBRA

Lecture 4: Four Input K-Maps

CSE 140: Components and Design Techniques for Digital Systems

Lecture 7: Karnaugh Map, Don t Cares

CHAPTER III BOOLEAN ALGEBRA

Midterm1 Review. Jan 24 Armita

Advanced Digital Design with the Verilog HDL, Second Edition Michael D. Ciletti Prentice Hall, Pearson Education, 2011

Week-I. Combinational Logic & Circuits

PI = { a.b.c, ac d, b cd, ab d, bd} cd

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

Review for Test 1 : Ch1 5

Digital Logic Circuits - Switching Algebra - Combinational Circuits -

Gate-Level Minimization

ELCT201: DIGITAL LOGIC DESIGN

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

K-map Definitions. abc

Karnaugh Maps ف ر آ ا د : ا ا ب ا م آ ه ا ن ر ا

MODULAR CIRCUITS CHAPTER 7

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

Karnaugh Maps (K-Maps)

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Chapter 2 : Boolean Algebra and Logic Gates

Chapter 2 Combinational Logic Circuits

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

L6: Two-level minimization. Reading material

Boolean Algebra and Logic Design (Class 2.2 1/24/2013) CSE 2441 Introduction to Digital Logic Spring 2013 Instructor Bill Carroll, Professor of CSE

Chap 2. Combinational Logic Circuits

for Digital Systems Simplification of logic functions Tajana Simunic Rosing Sources: TSR, Katz, Boriello & Vahid

Introduction to Digital Logic Missouri S&T University CPE 2210 Karnaugh Maps

COM111 Introduction to Computer Engineering (Fall ) NOTES 6 -- page 1 of 12

Logical Design of Digital Systems

This form sometimes used in logic circuit, example:

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Binary logic consists of binary variables and logical operations. The variables are

Number System conversions

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

L2: Combinational Logic Design (Construction and Boolean Algebra)

Logic Simplification. Boolean Simplification Example. Applying Boolean Identities F = A B C + A B C + A BC + ABC. Karnaugh Maps 2/10/2009 COMP370 1

Systems I: Computer Organization and Architecture

CSE 140, Lecture 2 Combinational Logic CK Cheng CSE Dept. UC San Diego

ECE 238L Boolean Algebra - Part I

Administrative Notes. Chapter 2 <9>

Digitalteknik EIT020. Lecture 10: Karnaugh Maps

Digitalteknik EIT020. Lecture 10: Kanaugh Maps

Chapter 2 Combinational logic

CS470: Computer Architecture. AMD Quad Core

REPRESENTATION AND MINIMIZATION OF BOOLEAN FUNCTIONS. Part II Minimization of Boolean Functions.

ENG2410 Digital Design Combinational Logic Circuits

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

CS221: Digital Design. Indian Institute of Technology Guwahati

CPE100: Digital Logic Design I

Combinational Logic Design/Circuits

3. PRINCIPLES OF COMBINATIONAL LOGIC

UNIT 1. BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS

Minimization techniques

Digital Logic Design. Malik Najmus Siraj

Combinatorial Logic Design Principles

Faculty of Engineering. FINAL EXAMINATION FALL 2008 (December2008) ANSWER KEY

Karnaugh Maps for Combinatorial Logic CS 64: Computer Organization and Design Logic Lecture #12

Combinational Logic. Review of Combinational Logic 1

Karnaugh Map & Boolean Expression Simplification

Logic Minimization. Two-Level. University of California. Prof. Srinivas Devadas. Prof. Richard Newton Prof. Sanjit Seshia. Prof.

211: Computer Architecture Summer 2016

Quality of Minimal Sets of Prime Implicants of Boolean Functions

Boolean Algebra. Sungho Kang. Yonsei University

CSE 140 Midterm I - Solution

Analysis of Clocked Sequential Circuits

ELEC Digital Logic Circuits Fall 2014 Logic Minimization (Chapter 3)

Logic Synthesis and Verification

CS/EE 181a 2010/11 Lecture 4

Introduction to Karnaugh Maps

Combinational Logic Fundamentals

Chapter-2 BOOLEAN ALGEBRA

14:332:231 DIGITAL LOGIC DESIGN

Chapter 9 Asynchronous Sequential Logic

Transcription:

Unit 6 Quine-McClusky Method Unit 6 1

Outline Determination of prime implicants The prime implicant chart Petrick s method Simplification of incompletely specified functions Unit 6 2

Overview (1/2) A systematic simplification procedure Input: minterm expansion Output: a minimum sum of products Step: 1. Generate all prime implicants Eliminate as many literals as possible from each term by systematically applying the theorem XY+XY =X 2. Find the minimum solution Use a prime implicant chart to select a minimum set of prime implicants which contain a minimum number of literals Unit 6 3

Overview (2/2) Example: F(a,b,c)=a b c +ab c +ab c+abc All implicants: a b c, ab c, ab c, abc, ab, b c, ac Prime implicants: ab, b c, ac ab c Essential prime implicants: 0 b c, ac c 1 Minimum sum of products: b F(a,b,c) = b c +ac a 00 01 11 10 1 1 1 1 ac b c ab Unit 6 4

Determination of Prime Implicants (1/5) Example: Find all of the prime implicants of the function f(a,b,c,d)= Σm(0,1,2,5,6,7,8,9,10,14) group 0 group 1 group 2 group 3 Column I 0 0000 1 0001 2 0010 8 1000 5 0101 6 0110 9 1001 10 1010 7 0111 14 1110 Column II 0, 1 000-0, 2 00-0 0, 8-000 1, 5 0-01 1, 9-001 2, 6 0-10 2, 10-010 8, 9 100-8, 10 10-0 5, 7 01-1 6, 7 011-6, 14-110 10, 14 1-10 Column III 0, 1, 8, 9-00- 0, 2, 8, 10-0-0 0, 8, 1, 9-00- 0, 8, 2, 10-0-0 2, 6, 10, 14 --10 2, 10, 6, 14 --10 Unit 6 5

Determination of Prime Implicants (2/5) group 0 group 1 group 2 group 3 Column I 0 0000 1 0001 2 0010 8 1000 5 0101 6 0110 9 1001 10 1010 7 0111 14 1110 Column II 0, 1 000-0, 2 00-0 0, 8-000 1, 5 0-01 P1 1, 9-001 2, 6 0-10 2, 10-010 8, 9 100-8, 10 10-0 5, 7 01-1 P2 6, 7 011- P3 6, 14-110 10, 14 1-10 Column III 0, 1, 8, 9-00- P4 0, 2, 8, 10-0-0 P5 0, 8, 1, 9-00- 0, 8, 2, 10-0-0 2, 6, 10, 14 --10 P6 2, 10, 6, 14 --10 All of the prime implicants: P1 = {1,5} = 0-01 = a c d P2 = {5,7} = 01-1 = a bd P3 = {6,7} = 011- = a bc P4 = {0,1,8,9} = -00- = b c P5 = {0,2,8,10} = -0-0 = b d P6 = {2,6,10,14} = --10 = cd Unit 6 6

Determination of Prime Implicants (3/5) Find all of the prime implicants (1) Represent each minterm by a binary code (2) Find the decimal number for each binary code (3) Define the number of 1 s in binary number as the index of the number. (3-1) Group all the binary numbers of the same index into a group (3-2) List all the groups in a column in the index ascending order (3-3) Within each group, the binary number are listed in the ascending order of their decimal-number equivalent Unit 6 7

Determination of Prime Implicants (4/5) (4) Start with the terms in the set of lowest index; compare them with those, if any, in the set whose index is 1 greater, and eliminate all redundant variables by XY+XY =X (5) Check off all the terms that entered into the combinations. The ones that are left are prime implicants (6) Repeat step (4) and (5) until no further reduction is possible Unit 6 8

Determination of Prime Implicants (5/5) f = a c d + a bd + a bc + cd + b d + b c (1, 5) (5, 7) (6, 7) (2, 6, 10, 14) (0, 2, 8, 10) (0, 1, 8, 9) P1 P2 P3 P4 P5 P6 Minimum form??? f = a bd + cd + b c Unit 6 9

The Prime Implicant Chart (1/7) Example: Prime Implicant Table (0, 1, 8, 9) b c P6 (0, 2, 8, 10) b d P5 (2, 6, 10, 14) cd P4 (1, 5) a c d P1 (5, 7) a bd P2 (6, 7) a bc P3 0 1 2 5 6 7 8 9 10 14 Unit 6 10

The Prime Implicant Chart (2/7) Prime Implicant Table (0, 1, 8, 9)* b c P6* (0, 2, 8, 10) b d P5 (2, 6, 10, 14)* cd P4* (1, 5) a c d P1 (5, 7) a bd P2 (6, 7) a bc P3 0 1 2 5 6 7 8 9 10 14 (1, 5) a c d P1 (5, 7) a bd P2 (6, 7) a bc P3 5 7 No secondary essential term. Include the essential prime implicants in the minimal sum; The minimal sum is: f(a,b,c,d)=b c +cd +a bd Unit 6 11

The Prime Implicant Chart (3/7) Construct the Prime Implicant Table (Chart) and find the Essential Prime Implicants of the function (1) Construct the prime implicant table (1-1) Each column carries a decimal number at the top which correspond to the one of the minterm in the given function (1-2) The column are assigned by such a number in ascending order (1-3) Each row corresponds to one of the prime implicants, P1, P2, Unit 6 12

The Prime Implicant Chart (4/7) (2) Make a cross under each decimal number that is a term contained in the prime implicant represented by that row (3) Find all the columns that contain a single cross and circle them; place an asterisk * at the left of those rows in which you circle a cross The rows marked with an asterisk are the essential prime implicants Unit 6 13

The Prime Implicant Chart (5/7) Example with a cyclic prime implicant table Sol: Find all of the prime implicants F= Σ m(0,1,2,5,6,7) 0 000 0, 1 00- P1 1 001 0, 2 0-0 P2 2 010 1, 5-01 P3 5 101 2, 6-10 P4 6 110 5, 7 1-1 P5 7 111 6, 7 11- P6 c c ab a 1 1 1 1 1 1 b Unit 6 14

Select P1 first The Prime Implicant Chart (6/7) (0, 1) a b P1 (0, 2) a c P2 (1, 5) b c P3 (2, 6) bc P4 (5, 7) ac P5 (6, 7) ab P6 0 1 2 5 6 7 The minimum sum of products F=a b +bc +ac Unit 6 15

The Prime Implicant Chart (7/7) Select P2 first (0, 1) a b P1 (0, 2) a c P2 (1, 5) b c P3 (2, 6) bc P4 (5, 7) ac P5 (6, 7) ab P6 The minimum sum of products The minimum sum of product is not unique 0 1 2 5 6 7 F=a c +b c+ab Unit 6 16

Petrick s Method (1/6) A technique for determining all minimum sum-of-products solutions from a prime implicant table Before applying Petrick s method, all essential prime implicants and minterms they cover should be removed from the table Unit 6 17

Petrick s Method (2/6) Example: F=Σm(0,1,2,5,6,7) P 1 P 2 P 3 P 4 P 5 P 6 (0, 1) a b (0, 2) a c (1, 5) b c (2, 6) bc (5, 7) ac (6, 7) ab 0 1 2 5 6 7 Unit 6 18

Petrick s Method (3/6) In order to cover minterm 0, we must choose P 1 or P 2 the expression P 1 +P 2 must be true cover 0 P 1 +P 2 1 P 1 +P 3 2 P 2 +P 4 5 P 3 +P 5 6 P 4 +P 6 7 P 5 +P 6 Unit 6 19

Petrick s Method (4/6) Using (X+Y)(X+Z)=X+YZ and the distributive law P=(P 1 +P 2 )(P 1 +P 3 )(P 2 +P 4 )(P 3 +P 5 )(P 4 +P 6 )(P 5 +P 6 ) = 1 P = (P 1 +P 2 P 3 ) (P 4 +P 2 P 6 ) (P 5 +P 3 P 6 ) = (P 1 P 4 +P 1 P 2 P 6 +P 2 P 3 P 4 +P 2 P 3 P 6 ) (P 5 +P 3 P 6 ) = P 1 P 4 P 5 +P 1 P 2 P 5 P 6 + P 2 P 3 P 4 P 5 +P 2 P 3 P 5 P 6 +P 1 P 3 P 4 P 6 + P 1 P 2 P 3 P 6 + P 2 P 3 P 4 P 6 + P 2 P 3 P 6 Unit 6 20

X XY Petrick s Method (5/6) X Use to delete redundant terms from P P = P 1 P 4 P 5 +P 1 P 2 P 5 P 6 +P 2 P 3 P 4 P 5 +P 2 P 3 P 5 P 6 +P 1 P 3 P 4 P 6 +P 1 P 2 P 3 P 6 +P 2 P 3 P 4 P 6 +P 2 P 3 P 6 = P 1 P 4 P 5 + P 1 P 2 P 5 P 6 + P 2 P 3 P 4 P 5 +P 1 P 3 P 4 P 6 +P 2 P 3 P 6 3 implicants 4 4 4 3 Two minimum solutions: F = P 1 +P 4 +P 5 = a b +bc +ac F = P 2 +P 3 +P 6 = a c +b c+ab Unit 6 21

Petrick s Method Petrick s Method (6/6) 1. Label the rows of the table, P 1, P 2, 2. Form a logic function P(P 1,P 2, ), which is true when all of the minterms in the table have been covered 3. Reduce P to a minimum sum of products using (X+Y)(X+Z)=X+YZ and X+XY=X 4. Select one solution that has minimum number of prime implicant, minimum number of literals Unit 6 22

Simplification of Incompletely Specified Functions (1/3) Modify the Quine-McCluskey procedure Finding the Prime Implicants Treat the don t care terms as if they were required minterms Forming the Prime Implicant Table The don t cares are not listed at the top of the table Unit 6 23

Simplification of Incompletely Specified Functions (2/3) Example: Simplify F(A,B,C,D)= Σm(2,3,7,9,11,13)+Σd(1,10,15) Sol: Treat the don t cares (1, 10, 15) as required minterms 1 0001 2 0010 3 0011 9 1001 10 1010 7 0111 11 1011 13 1101 15 1111 (1, 3) 00-1 (1, 9) -001 (2, 3) 001- (2, 10) -010 (3, 7) 0-11 (3, 11) -011 (9, 11) 10-1 (9, 13) 1-01 (10, 11) 101- (7, 15) -111 (11, 15) 1-11 (13, 15) 11-1 (1, 3, 9, 11) -0-1 (2, 3, 10, 11) -01- (3, 7, 11, 15) --11 (9, 11, 13, 15) 1--1 Unit 6 24

Simplification of Incompletely Specified Functions (3/3) The don t cares are not listed at the top of the table (1, 3, 9, 11) *(2, 3, 10, 11) *(3, 7, 11, 15) *(9, 11, 13, 15) 2 3 7 9 11 13 F=B C+CD+AD *essential prime implicants Unit 6 25