ES 244: Digital Logic Design Chapter 3 Chapter 3: Karnaugh Maps Uchechukwu Ofoegbu Temple University.

Slides:



Advertisements
Similar presentations
CT455: Computer Organization Logic gate
Advertisements

Chapter3: Gate-Level Minimization Part 2
K-Map Simplification COE 202 Digital Logic Design Dr. Aiman El-Maleh
Gate-level Minimization
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Give qualifications of instructors: DAP
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.
Gate-Level Minimization1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Introduction Gate-level minimization refers to the design task of finding an optimal gate-level implementation of Boolean functions describing a digital.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Combinational Logic Circuits Chapter 2 Mano and Kime.
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
1 Simplification of Boolean Functions:  An implementation of a Boolean Function requires the use of logic gates.  A smaller number of gates, with each.
1 Chapter 5 Karnaugh Maps Mei Yang ECG Logic Design 1.
Chapter 3 The Karnaugh Map. These K-maps are described by the location. Next, each square will be 1 or 0 depending on the value of the function. ABfm.
Department of Computer Engineering
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. K-Map (1)  Karnaugh Mapping is used to minimize the number of logic gates that are required in a digital circuit.
Gate-Level Minimization Chapter 3. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
D IGITAL L OGIC D ESIGN I G ATE -L EVEL M INIMIZATION.
Optimization Algorithm
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Examples. Examples (1/11)  Example #1: f(A,B,C,D) =  m(2,3,4,5,7,8,10,13,15) Fill in the 1’s. 1 1 C A B CD AB D 1 1.
Gate-level Minimization
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
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.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
CS 1110 Digital Logic Design
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Conversion from one number base to another Binary arithmetic Equation simplification DeMorgan’s Laws Conversion to/from SOP/POS Reading equations from.
CS151 Introduction to Digital Design Chapter Map Simplification.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
1 Example: Groupings on 3-Variable K-Maps BC F(A,B,C) = A ’ B ’ A BC F(A,B,C) = B ’ A
Karnaugh Map (K-Map) By Dr. M. Khamis Mrs. Dua’a Al Sinari.
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.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
1 EENG 2710 Chapter 3 Simplification of Switching Functions.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
FIGURE 3.1 Two-variable K-map
CHAPTER 3 Simplification of Boolean Functions
Lecture #6 EGR 277 – Digital Logic
CSCE 211: Digital Logic Design
Optimized Implementation of Logic Function
CSE 140 : Components and Design Techniques for Digital Systems
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
BASIC & COMBINATIONAL LOGIC CIRCUIT
CSCE 211: Digital Logic Design
ECE 331 – Digital System Design
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
CSCE 211: Digital Logic Design
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
CSCE 211: Digital Logic Design
ECE 331 – Digital System Design
Presentation transcript:

ES 244: Digital Logic Design Chapter 3 Chapter 3: Karnaugh Maps Uchechukwu Ofoegbu Temple University

ES 244: Digital Logic Design Chapter 3Riddle Three people check into a hotel. They pay $30 to the manager and go to their room. The manager suddenly remembers that the room rate is $25 and gives $5 to the bellboy to return to the people. On the way to the room the bellboy reasons that $5 would be difficult to share among three people so he pockets $2 and gives $1 to each person. Now each person paid $10 and got back $1. So they paid $9 each, totalling $27. The bellboy has $2, totalling $29. Where is the missing $1?

ES 244: Digital Logic Design Chapter 3 If implemented correctly, they almost always produce a minimum solution. They are more straightforward that algebraic manipulations They generally produce SOPs, but POS can be generated from their complements if required. Introduction to Karnaugh Maps

ES 244: Digital Logic Design Chapter 3 Two-variable Karnaugh maps A B A’B’AB’ A’BAB A B A’ B’ A B m0m0m0m0 m2m2m2m2 m1m1m1m1 m3m3m3m3

ES 244: Digital Logic Design Chapter 3 Product terms corresponding to groups of two. Three-variable Karnaugh maps

ES 244: Digital Logic Design Chapter 3 Four-variable Karnaugh maps

ES 244: Digital Logic Design Chapter 3 An implicant of a function is a product term. From the point of view of the map, an implicant is a rectangle of 1, 2, 4, 8,... (any power of 2) 1’s. That rectangle may not include any 0’s. Example: f = A’B’C’D’+A’B’CD+A’BCD+AB’CD+ABC’D’+ABC’D+ABCD Implicants 11 AB CD

ES 244: Digital Logic Design Chapter 3Implicants The implicants of f are: Minterms (1 implicant) ABCD Groups of 2 ACD BCD ACD BCD ABC’ ABD Groups of 4 CD

ES 244: Digital Logic Design Chapter 3 Prime Implicant: o o an implicant that (from the point of view of the map) is not fully contained in any one other implicant. Essential Prime Implicant: o o a prime implicant that includes at least one 1 that is not included in any other prime implicant. Prime and Essential Prime Implicants AB CD

ES 244: Digital Logic Design Chapter 3 Minimum SOP Expressions From Karnaugh Maps

ES 244: Digital Logic Design Chapter Find all essential prime implicants. Circle them on the map and mark the minterm(s) that make them essential with an asterisk (*). 2.Find enough other prime implicants to cover the function. Do this using two criteria: a.Choose a prime implicant that covers as many new 1’s (that is, those not already covered by a chosen prime implicant). b.Avoid leaving isolated uncovered 1’s. Minimum SOP Expressions From Karnaugh Maps The main idea is 1.To Have all ones covered 2.To Have as few terms as possible 3.To have several rectangles with more 1’s and few rectangles with less 1’s

ES 244: Digital Logic Design Chapter 3Example f = w’x’y’z’+w’xy’z’+ w’xy’z+ w’xyz+ wx’y’z’+ w’xyz+ wxy’z’+ wxyz 1 1 AB CD * * * * f = y’z’+wyz+w’xz unnecessary

ES 244: Digital Logic Design Chapter 3 In Groups f = b + a' c

ES 244: Digital Logic Design Chapter 3 Prime implicant A rectangle of 1, 2, 4, 8,... 1’s or X ’s not included in any one larger rectangle. From the point of view of finding prime implicants, X ’s (don’t cares) are treated as 1’s. Essential prime implicant A prime implicant that covers at least one 1 not covered by any other prime implicant (as always). Don’t cares ( X ’s) do not make a prime implicant essential. Don’t Cares

ES 244: Digital Logic Design Chapter 3Example f = Σm(1,7,10,11,13) + Σd(5,8,15) 1 AB CD x x x F = BD + ACD + ABC 1 Use don’t cares to get as many minterms in each tem as possible

ES 244: Digital Logic Design Chapter 3 For the following problem, find the minimum SOP expression within the options given h(a,b,c) = Σm(0,1,5) + d(3,4,6,7) In groups a) a)h = a'b' + c + a b) b)h = a + c + b’ c) c)h = c + b’ d) d)h = b’ e) e)h = c

ES 244: Digital Logic Design Chapter 3 Implementation of Two Functions

ES 244: Digital Logic Design Chapter 3Example F = A’B’C’+A’BC’+ABC’+ABC; G = A’B’C+A’BC+ABC’+ABC F = A’C’+AB AB C AB C G = A’C+AB

ES 244: Digital Logic Design Chapter 3 F = AB + ABC G = AB + BC F = AB + ABC G = AB + ABC Example

ES 244: Digital Logic Design Chapter 3 f = ab + bc g = ab + ac f = ab + abc g = ab + abc Example

ES 244: Digital Logic Design Chapter 3 F = AC + ACD + ABC G = AC + ACD + ABC Example

ES 244: Digital Logic Design Chapter 3Try

Many electronic systems automatically invert gates Easier to fabricate with electronic components Basic gates used in integrated circuits (IC) digital logic families. NAND gate universal gate Could be used to construct any logic gate NAND, NOR

ES 244: Digital Logic Design Chapter 3 NAND gates. Alternate symbol for NAND. Symbols for NOR gate.

ES 244: Digital Logic Design Chapter 3 NAND Gate Implementation When we have a circuit consisting of AND and OR gates such that 1.the output of the circuit comes from an OR, 2.the inputs to all OR gates come either from a system input or from the output of an AND, and 3.the inputs to all AND gates come either from a system input or from the output of an OR. All gates are replaced by NAND gates, and any input coming directly into an OR is complemented.

ES 244: Digital Logic Design Chapter 3Example Try: g = wx(y+z)+x’y

ES 244: Digital Logic Design Chapter 3 NOR Gate Implementation When we have a circuit consisting of AND and OR gates such that 1.the output of the circuit comes from an AND, 2.the inputs to all OR gates come either from a system input or from the output of an AND, and 3.the inputs to all AND gates come either from a system input or from the output of an OR. All gates are replaced by NOR gates, and any input coming directly into an AND is complemented.

ES 244: Digital Logic Design Chapter 3Example Try: g = (x+y’)(x’+y)(x’+z)

ES 244: Digital Logic Design Chapter 3 XOR and XNOR A xor B is 1 if a = 1 or b is 1 and 0 if both are 1 or 0; Develop a truth table for XOR

ES 244: Digital Logic Design Chapter Homework