ENGIN112 L9: More Karnaugh Maps September 22, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 9 More Karnaugh Maps and Don’t Cares.

Slides:



Advertisements
Similar presentations
Chapter 3 Gate-Level Minimization
Advertisements

ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Karnaugh Map Adjacent Squares
Digital Logic Design Gate-Level Minimization
Chapter3: Gate-Level Minimization Part 2
Karnaugh Map Adjacent Squares
CS 121 Digital Logic Design
D IGITAL L OGIC By: Safwan Mawlood Digital Principles and Logic Design, A.Saha &N.Manna K ARNAUGH M APS (K MAPS )
CS 121 Digital Logic Design
CS 121 Digital Logic Design
Karnaugh Maps ECEn/CS 224.
CS 121 Digital Logic Design
KU College of Engineering Elec 204: Digital Systems Design
Optimization, terms and don’t cares
FUNCTION OPTIMIZATION Switching Function Representations can be Classified in Terms of Levels Number of Levels, k, is Number of Unique Boolean (binary)
CENG 241 Digital Design 1 Lecture 4
Digital Circuits.
Gate-Level Minimization
Based on slides by: Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 8 – Systematic Simplification.
ELEC Digital Logic Circuits Fall 2008 Logic Minimization (Chapter 3) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
Gate-level Minimization
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 6 Dr. Shi Dept. of Electrical and Computer Engineering.
CSE 370 – Winter 2002 – Logic minimization - 1 Overview zLast lecture yExamples of Karnaugh maps, including Don’t cares zToday yDesign Examples yPrime.
Give qualifications of instructors: DAP
Gate Logic: Two Level Canonical Forms
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 4-1 Chapter #2: Two-Level Combinational Logic Section 2.3, Switches and Tools.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
1 Chapter 5 Karnaugh Maps Mei Yang ECG Logic Design 1.
Department of Computer Engineering
ES 244: Digital Logic Design Chapter 3 Chapter 3: Karnaugh Maps Uchechukwu Ofoegbu Temple University.
Simplification of incompletely specified functions using QM Tech.
1 Quine-McCluskey Method. 2 Motivation Karnaugh maps are very effective for the minimization of expressions with up to 5 or 6 inputs. However they are.
Computer Engineering (Logic Circuits) (Karnaugh Map)
07 KM Page 1 ECEn/CS 224 Karnaugh Maps. 07 KM Page 2 ECEn/CS 224 What are Karnaugh Maps? A simpler way to handle most (but not all) jobs of manipulating.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
1 Example: Groupings on 3-Variable K-Maps BC F(A,B,C) = A ’ B ’ A BC F(A,B,C) = B ’ A
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 4: Cost of Logic Circuits and Karnaugh Maps José Nelson Amaral.
Karnaugh Maps (K maps).
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
State university of New York at New Paltz Electrical and Computer Engineering Department Logic Synthesis Optimization Lect10: Two-level Logic Minimization.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
©2010 Cengage Learning SLIDES FOR CHAPTER 6 QUINE-McCLUSKEY METHOD Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
CHAPTER 3 Simplification of Boolean Functions
ELEC Digital Logic Circuits Fall 2014 Logic Minimization (Chapter 3)
Computer Organisation
Plotting functions not in canonical form
CS 352 Introduction to Logic Design
Optimized Implementation of Logic Function
Digital Logic and Design
Karnaugh Maps (K-Maps)
Optimized Implementation of Logic Function
BASIC & COMBINATIONAL LOGIC CIRCUIT
ECE 331 – Digital System Design
Digital Logic & Design Dr. Waseem Ikram Lecture 12.
EECS 465: Digital Systems Lecture Notes # 2
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
CH7 Multilevel Gate Network
Optimization Algorithm
Optimized Implementation of Logic Function
COE 202: Digital Logic Design Combinational Logic Part 3
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Laws & Rules of Boolean Algebra
Dept of Electronics Engineering
ECE 331 – Digital System Design
Computer Architecture
Presentation transcript:

ENGIN112 L9: More Karnaugh Maps September 22, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 9 More Karnaugh Maps and Don’t Cares

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Overview °Karnaugh maps with four inputs Same basic rules as three input K-maps °Understanding prime implicants Related to minterms °Covering all implicants °Using Don’t Cares to simplify functions Don’t care outputs are undefined °Summarizing Karnaugh maps

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Karnaugh Maps for Four Input Functions °Represent functions of 4 inputs with 16 minterms °Use same rules developed for 3-input functions °Note bracketed sections shown in example.

ENGIN112 L9: More Karnaugh Maps September 22, 2003 C+ B’D’ Solution set can be considered as a coordinate System! Karnaugh map: 4-variable example °F(A,B,C,D) =  m(0,2,3,5,6,7,8,10,11,14,15) F = D A B A B C D C + A’BD

ENGIN112 L9: More Karnaugh Maps September 22, 2003 A' B' D + A' C + B' C D B C' D' + A C' + A B D' LT= EQ= GT= K-map for LTK-map for GT Design examples D A B C K-map for EQ D A B C D A B C Can you draw the truth table for these examples? A'B'C'D' + A'BC'D + ABCD + AB'CD’

ENGIN112 L9: More Karnaugh Maps September 22, 2003 ABCDABCD EQ Physical Implementation °Step 1: Truth table °Step 2: K-map °Step 3: Minimized sum-of- products °Step 4: Physical implementation with gates K-map for EQ D A B C

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Karnaugh Maps °Four variable maps. F=BC +CD + AC+ AD 0 AB CD F=ABC + ACD + ABC + AB CD + ABC + AB C °Need to make sure all 1’s are covered °Try to minimize total product terms. °Design could be implemented using NANDs and NORs

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Karnaugh maps: Don’t cares °In some cases, outputs are undefined °We “don’t care” if the logic produces a 0 or a 1 °This knowledge can be used to simplify functions. 01 X0X1X0X1 D A 1 110X110X 00 B C CD AB Treat X’s like either 1’s or 0’s - Very useful - OK to leave some X’s uncovered

ENGIN112 L9: More Karnaugh Maps September 22, C’D Karnaugh maps: Don’t cares °f(A,B,C,D) =  m(1,3,5,7,9) + d(6,12,13) without don't cares -f = 01 X0X1X0X1 D A 1 110X110X 00 B C A’D CD AB Cf X D XX XX00 A B

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Don’t Care Conditions °In some situations, we don’t care about the value of a function for certain combinations of the variables. these combinations may be impossible in certain contexts or the value of the function may not matter in when the combinations occur °In such situations we say the function is incompletely specified and there are multiple (completely specified) logic functions that can be used in the design. so we can select a function that gives the simplest circuit °When constructing the terms in the simplification procedure, we can choose to either cover or not cover the don’t care conditions.

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Map Simplification with Don’t Cares F=ACD+B+AC 0 AB xx CD 0 x x x 0 AB xx CD 0 x x x F=ABCD+ABC+BC+AC °Alternative covering.

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Karnaugh maps: don’t cares (cont’d) °f(A,B,C,D) =  m(1,3,5,7,9) + d(6,12,13) f = A'D + B'C'Dwithout don't cares f = with don't cares don't cares can be treated as 1s or 0s depending on which is more advantageous 01 X0X1X0X1 D A1 110X110X 00 B C A'D by using don't care as a "1" a 2-cube can be formed rather than a 1-cube to cover this node + C'D

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Definition of terms for two-level simplification °Implicant Single product term of the ON-set (terms that create a logic 1) °Prime implicant Implicant that can't be combined with another to form an implicant with fewer literals. °Essential prime implicant Prime implicant is essential if it alone covers a minterm in the K-map Remember that all squares marked with 1 must be covered °Objective: Grow implicant into prime implicants (minimize literals per term) Cover the K-map with as few prime implicants as possible (minimize number of product terms)

ENGIN112 L9: More Karnaugh Maps September 22, X110X D A B C 5 prime implicants: BD, ABC', ACD, A'BC, A'C'D Examples to illustrate terms D A B C 6 prime implicants: A'B'D, BC', AC, A'C'D, AB, B'CD minimum cover: AC + BC' + A'B'D essential minimum cover: 4 essential implicants essential

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Prime Implicants Any single 1 or group of 1s in the Karnaugh map of a function F is an implicant of F. A product term is called a prime implicant of F if it cannot be combined with another term to eliminate a variable. B C A D Example: If a function F is represented by this Karnaugh Map. Which of the following terms are implicants of F, and which ones are prime implicants of F? (a) AC’D’ (b) BD (c) A’B’C’D’ (d) AC’ (e) B’C’D’ Implicants: (a),(c),(d),(e) Prime Implicants: (d),(e)

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Essential Prime Implicants A product term is an essential prime implicant if there is a minterm that is only covered by that prime implicant. - The minimal sum-of-products form of F must include all the essential prime implicants of F.

ENGIN112 L9: More Karnaugh Maps September 22, 2003 Summary °K-maps of four literals considered Larger examples exist °Don’t care conditions help minimize functions Output for don’t cares are undefined °Result of minimization is minimal sum-of-products °Result contains prime implicants °Essential prime implicants are required in the implementation