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

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

Quine-McCluskey (Tabular) Minimization

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

Digital Circuit And Logic Design I. Lecture 4

DIGITAL ELECTRONICS & it0203 Semester 3

Unit 6. Quine-McClusky Method. Unit 6 1

UNIT 5 KARNAUGH MAPS Spring 2011

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

ELC224C. Karnaugh Maps

CS221: Digital Design. Indian Institute of Technology Guwahati

WEEK 3.1 MORE ON KARNAUGH MAPS

Week-I. Combinational Logic & Circuits

K-map Definitions. abc

Configurational Analysis beyond the Quine-McCluskeyMilan, algorithm 8 February / 29

Chapter 4 Optimized Implementation of Logic Functions

CHAPTER 5 KARNAUGH MAPS

CHAPTER III BOOLEAN ALGEBRA

CSE 140: Components and Design Techniques for Digital Systems

Lecture 4: Four Input K-Maps

CMSC 313 Lecture 19 Combinational Logic Components Programmable Logic Arrays Karnaugh Maps

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

Contents. Chapter 3 Combinational Circuits Page 1 of 36

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

CHAPTER III BOOLEAN ALGEBRA

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

DIGITAL TECHNICS I. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: LOGIC SYNTHESIS

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

Spiral 1 / Unit 5. Karnaugh Maps

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

9.1. Unit 9. Implementing Combinational Functions with Karnaugh Maps or Memories

CMSC 313 Lecture 19 Homework 4 Questions Combinational Logic Components Programmable Logic Arrays Introduction to Circuit Simplification

Fundamental Algorithms for System Modeling, Analysis, and Optimization

Chapter 2 Combinational Logic Circuits

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Optimizations and Tradeoffs. Combinational Logic Optimization

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

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

Logic Synthesis and Verification

CS/EE 181a 2008/09 Lecture 4

Working with Combinational Logic. Design example: 2x2-bit multiplier

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

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

L6: Two-level minimization. Reading material

Karnaugh Maps Objectives

ESE535: Electronic Design Automation. Today. Problem. EDA Use PLA. Programmable Array Logic (PLAs) Two-Level Logic Optimization

Midterm1 Review. Jan 24 Armita

Digital Logic Circuits - Switching Algebra - Combinational Circuits -

Gate-Level Minimization

Exact and heuristic minimization of Boolean functions

COMBINATIONAL LOGIC FUNCTIONS

Systems I: Computer Organization and Architecture

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

Review for Test 1 : Ch1 5

CS/EE 181a 2010/11 Lecture 4

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

Review for B33DV2-Digital Design. Digital Design

Unit 2 Session - 6 Combinational Logic Circuits

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

Logic. Combinational. inputs. outputs. the result. system can

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

Logical Design of Digital Systems

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

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

Logic Design I (17.341) Fall Lecture Outline

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

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

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

14:332:231 DIGITAL LOGIC DESIGN

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

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

CS470: Computer Architecture. AMD Quad Core

Combinational Logic Fundamentals

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

Lecture 7: Karnaugh Map, Don t Cares

Simplifying Logic Circuits with Karnaugh Maps

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

CHAPTER 12 Boolean Algebra

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

Boolean cubes EECS150. Mapping truth tables onto cubes. Simplification. The Uniting Theorem. Three variable example

Minimization techniques

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

15.1 Elimination of Redundant States

Chapter 2 Combinational Logic Circuits

3. PRINCIPLES OF COMBINATIONAL LOGIC

CS221: Digital Design Data Path Components Adder

Chapter 2 Combinational Logic Circuits

CMSC 313 Preview Slides

Digital Design for Multiplication

L2: Combinational Logic Design (Construction and Boolean Algebra)

ENG2410 Digital Design Combinational Logic Circuits

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

DO NOT COPY DO NOT COPY

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

Lecture 22 Chapters 3 Logic Circuits Part 1

Chapter 2. Digital Logic Basics

UNIT II COMBINATIONAL CIRCUITS:

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

L2: Combinational Logic Design (Construction and Boolean Algebra)

Heuristic Minimization of Two Level Circuits

Transcription:

CS221: Digital Design QMLogicMinimization Minimization Dr. A. Sahu DeptofComp.Sc.&Engg. Indian Institute of Technology Guwahati 1

Outline Quine McCluskey(QM) Logic Minimization Examples Writing C/C++ program for QM Method 2

BCDAdder(TwoLevel) Treat as 9 input & 5 output functions Generate TthTbl Truth Table for each outputs t Solve each function using KMAP/QM Method Only Two Level: No carry Propagation Ci a1 b1 c1 d1 a2 b2 c2 d2 Adder 2 Level a b c d Co 3

Quine McCluskeyMethod for Minimization KMAP methods was practical for at most 6 variable functions Larger number of variables: need method that can be applied to computer based minimization Quine McCluskey method For example: m(0,1,2,3,5,7,13,15)

QMMethod Method PhaseI:findingPis Pis Tabular methods: Grouping and combining PhaseII:CoversminimalPIs PIs 5

QM Method QM Method Mintermsthat differ in one variable s value can be combined. Thus we list our mintermsso that they are in groups with each group having the same number of 1s. So the first step is ordering the minterms according to their number of 1s (0 cube list) only mintermsresiding in adjacent groups have the chance to be combined.):

QM Method m (0,1,2,3,5,7,13,15 ) 0_Cube 0 0000 1 0001 0010 2 0011 0101 3 0111 1101 4 1111

QM Method: Combining Adjacent Compare mintermsof a group with those ofanadjacentonetoform1 adjacent one form 1 cube cubelist. When doing the combining, we put checkmark alongside the mintermsin the 0 cubelistthathavebeencombined. that have been combined.

QM Method 1_Cube 0_Cube 0 000 0,1 0 0000 000 1 0001 1 001 0010 001 1,2 2 0011 001 0101 2 011 3 0111 011 23 2,3 1101 101 4 1111 3 111 111 3,4

QM Method: Combining Adjacent Do same combination of comparing adjacent group minterms To form 2 cubes, 3 cubes and so on. Ol Only mintermsof it adjacent groups have the chance of being combined Which have an in the same position.

QM Method 1_Cube 0 000 000 1 001 001 001 2 011 011 101 3 111 111 2_Cube 0 00 * 01 * 1 2 11 *

Q MMethod:CoverPIs Method: PIs : terms left without checkmarks. After identifying our PIs, we list them against the mintermsneeded to be covered m (0,1,2,3,5,7,13,15 ) 0 0 x x 0 x x 1 x 1 x 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 Func

QMMethod:Covers Method To find a minimal cover, we first need to find essentialpis To do this we need to find columns that only haveone checkmark in them, the according row will thus show the essential PI. AfteridentifyingessentialPIs,thatare essential that are necessarily part of the cover, we cover any remaining mintermsusing a minimal set of PIs. In this example: F = A B +BD

QM Method: Another Example Tabular method to systematically find all prime implicants ƒ(a,b,c,d) BCD)= m(4,5,6,8,9,10,13) + d(0,7,15) Stage 1: Find all prime implicants Step 1: Fill Column 1 with ON set and DC set mintermindices. Group by number of 1's. Cube0 0000 0100 1000 0101 0110 1001 1010 0111 1101 1111

Quine McCluskeyMethod Step 2:ApplyUnitingTheorem: Cube0 Cube1 Cube2 Compare elements of group 0000 0x00 * w/ N 1's against those with N+1 1s. 1's 0100 x000 * Differ by one bit implies 1000 010x adjacent. 0101 01x0 Eliminate variable and place in 0110 100x * next column. E.g., 0000 vs. 0100 yields 0 00 1001 10x0 * 0000 vs. 1000 yields 000 1010 01x1 When used in a combination, mark with a check. If cannot be combined, mark with a star. These are the prime implicants. Repeat until no further combinations can be made. 0111 x101 1101 011x 1111 1x01 * x111 11x1

QuineMcluskeyMethod Step2:ApplyUnitingTheorem: Cube0 Cube1 Cube2 Compare elements of group 0000 0x00 * 01xx * w/ N 1's against those with N+11's 1s. 0100 x000 * x1x1 * Differ by one bit implies 1000 010x adjacent. 0101 01x0 Eliminate variable and place in 0110 100x * next column. E.g., 0000 vs. 0100 yields 0 00 1001 10x0 * 0000 vs. 1000 yields 000 1010 01x1 When used in a combination, mark with a check. If cannot be combined, mark with a star. These are the prime implicants. Repeat until no further combinations can be made. 0111 x101 1101 011x 1111 1x01 * x111 11x1

Finding the Minimum Cover We have so far found all the prime implicants 2 nd step of the Q M procedure is to find the smallest set of prime implicantsto coverthecompleteon complete on set setofthe the function

Finding the Minimum Cover This is accomplished through the prime implicant chart Columns are labeled with the mintermindices of the onset Rows are labeled with the mintermscovered byagivenprimeimplicant implicant Example a prime implicant ( 1 1) becomes minterms0101, 0111, 1101, 1111, which are indices of mintermsm5, m7, m13, m15

Coverage Table/ Chart 0,4(0 00) 4 5 6 8 9 10 13 08( 000) 0,8( 000) 8,9(100 ) 8,10(10 0) 9,13(1 01) 4,5,6,7(01 ) 5,7,13,15( 1 1) Note: Don t include DCs in coverage table; they don t have covered by the final logic expression! rows = prime implicants columns = ON set elements placean""ifon setelementis an element is covered by the prime implicant

Coverage Table/ Chart 0,4(0 00) 4 5 6 8 9 10 13 08( 000) 0,8( 000) 8,9(100 ) 8,10(10 0) 9,13(1 01) 4,5,6,7(01 ) 5,7,13,15( 1 1) rows = prime implicants columns = ON setelements elements place an "" if ON set element is covered by the prime implicant If column has a single, than the implicantassociated associated withthe the row is essential. It must appear in minimum cover

Coverage Table/ Chart: Eliminate 0,4(0 00) 4 5 6 8 9 10 13 08( 000) 0,8( 000) 8,9(100 ) 8,10(10 0) 9,13(1 01) 4,5,6,7(01 ) 5,7,13,15( 1 1) rows = prime implicants columns = ON set elements place an "" if ON set element is covered by the prime implicant If column has a single il, than the implicantassociated with the row is essential. It must appear in minimum cover Eliminate all columns covered by essential primes

Coverage Table/ Chart: Eliminate 0,4(0 00) 4 5 6 8 9 10 13 08( 000) 0,8( 000) 8,9(100 ) 8,10(10 0) 9,13(1 01) 4,5,6,7(01 ) 5,7,13,15( 1 1) rows = prime implicants columns = ON-set elements place an "" if ON-set element is covered by the prime implicant Find minimum set of rows that cover the remaining columns Eliminate all columns covered by essential primes

Coverage Table/ Chart: Eliminate 0,4(0 00) 4 5 6 8 9 10 13 08( 000) 0,8( 000) 8,9(100 ) 8,10(10 0) 9,13(1 01) 4,5,6,7(01 ) 5,7,13,15( 1 1) If all are covered: Write the Implicants F= AB D + AC D + A B

Thanks 24