CSCE 211: Digital Logic Design

Slides:



Advertisements
Similar presentations
K-Map Simplification COE 202 Digital Logic Design Dr. Aiman El-Maleh
Advertisements

Based on slides by: Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 8 – Systematic Simplification.
©2004 Brooks/Cole FIGURES FOR CHAPTER 5 KARNAUGH MAPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in the.
Chapter 3 Simplification of Switching Functions
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Give qualifications of instructors: DAP
Computer Engineering (Logic Circuits) (Karnaugh Map)
CSCE 211: Digital Logic Design
Simplifying Boolean Expressions Using K-Map Method
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
1 Chapter 5 Karnaugh Maps Mei Yang ECG Logic Design 1.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
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.
D IGITAL L OGIC D ESIGN I G ATE -L EVEL M INIMIZATION.
ES 244: Digital Logic Design Chapter 3 Chapter 3: Karnaugh Maps Uchechukwu Ofoegbu Temple University.
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.
Combinational Logic Part 2: Karnaugh maps (quick).
Converting to Minterms Form
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.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
CONSENSUS THEOREM Choopan Rattanapoka.
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
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.
1 3- De-Morgan’s Theorems 1.The complement of a product of variables is equal to the sum of the complements of the variables. 2. The complement of a sum.
Karnaugh Maps (K maps).
CEC 220 Digital Circuit Design Implicants Wed, Sept. 23 CEC 220 Digital Circuit Design Slide 1 of 10.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
1 EENG 2710 Chapter 3 Simplification of Switching Functions.
©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.
©2010 Cengage Learning SLIDES FOR CHAPTER 5 KARNAUGH MAPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
CHAPTER 6 Quine-McCluskey Method
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Lecture 6 Quine-McCluskey Method
CHAPTER 3 Simplification of Boolean Functions
Computer Organisation
Lecture 5 Topics Canonical or Standard Forms of Functions
Plotting functions not in canonical form
CS 352 Introduction to Logic Design
CSCE 211: Digital Logic Design
Optimized Implementation of Logic Function
CSCE 211: Digital Logic Design
Optimized Implementation of Logic Function
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
BASIC & COMBINATIONAL LOGIC CIRCUIT
ECE 331 – Digital System Design
EECS 465: Digital Systems Lecture Notes # 2
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Optimization Algorithm
Karnaugh Maps Introduction Venn Diagrams 2-variable K-maps
Chapter 3 Gate-level Minimization.
Function Minimization Algorithms
Optimized Implementation of Logic Function
CSCE 211: Digital Logic Design
COE 202: Digital Logic Design Combinational Logic Part 3
Minimization of Switching Functions
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Karnaugh maps Last time we saw applications of Boolean logic to circuit design. The basic Boolean operations are AND, OR and NOT. These operations can.
CSCE 211: Digital Logic Design
Laws & Rules of Boolean Algebra
ECE 331 – Digital System Design
Computer Architecture
Lecture 2: Combinational Logic Design
Presentation transcript:

CSCE 211: Digital Logic Design Chin-Tser Huang huangct@cse.sc.edu University of South Carolina

Chapter 3: The Karnaugh Map

Karnaugh Map (K-map) The algebraic simplification method in Ch. 2 is not systematical and does not tell us whether the result is a minimum We introduce the Karnaugh map, a graphical approach to finding suitable product terms for use in SOP expressions Particularly useful for problems of three or four variables 09/21/2017

Introduction to the K-map K-map consists of one square for each possible minterm in a function A two-variable map has 4 squares A three-variable map has 8 squares A four-variable map has 16 squares 09/21/2017

Example: Two-Variable K-map The upper right square correspond to A = 1, B = 0, i.e. minterm 2 of f(A, B) 09/21/2017

Example: Three-Variable K-map Notice that the last two columns are not in numeric order! By organizing the map this way, the minterms in adjacent squares can be combined using the adjacency property P9a. ab + ab’ = a 09/21/2017

Example: Four-Variable K-map 09/21/2017

Plot a Function on the K-map Two ways to do it Use minterms and plot each square corresponding to each minterm Put the function in SOP form and plot each of the product terms How to plot the function F = AB’ + AC + A’BC’ ? 09/21/2017

Implicant An implicant of a function is a product term that can be used in an SOP expression for that function 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. 09/21/2017

Implicant Example The implicants of F are Minterms Groups of 2 Groups of 4 A´B´C´D´ A´CD CD A´B´CD BCD A´BCD ACD ABC´D´ B´CD ABC´D ABC´ ABCD ABD AB´CD 09/21/2017

Prime Implicant A prime implicant is an implicant that (from the point of view of the map) is not fully contained in any one other implicant. An essential prime implicant is a prime implicant that includes at least one 1 that is not included in any other prime implicant. 09/21/2017

Why Prime Implicants? The purpose of the map is to help us find minimum SOP expressions The only product terms we need to consider are prime implicants Essential prime implicants are the prime implicants that must be used in any minimum SOP expression 09/21/2017

Finding Minimum SOP using K-map We will start with the most isolated 1’s on the map The 1’s with the fewest (or no) adjacent squares with 1 in it 09/21/2017

Map Method 1 Find all essential prime implicants. Circle them on the map and mark the minterm(s) that make them essential with an asterisk (*). Do this by examining each 1 on the map that has not already been circled. It is usually quickest to start with the most isolated 1’s, that is, those that have the fewest adjacent squares with 1’s in them. 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. 09/21/2017

Example 1 minimum all prime implicants f = y´z´ + wyz + w´xz 09/21/2017

Example 2 Find the minimum SOP expression for x´yz´ + x´yz + xy´z´ + xy´z + xyz 09/21/2017

Example 2 x´ y + x y´ + x z x´ y + x y´ + y z 09/21/2017

Example 3: “Don’t be greedy” minimum Bad move! G = A´BC´ + A´CD + ABC + AC´D 09/21/2017

Don’t Cares When there are don’t cares: An implicant is a rectangle of 1, 2, 4, 8, … 1’s or X’s A prime implicant is a rectangle of 1, 2, 4, 8, … 1’s or X’s not included in any one larger rectangle. Thus, from the point of view of finding prime implicants, X’s (don’t cares) are treated as 1’s. An essential prime implicant is 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. 09/21/2017

Example 1 minimum other p.i.s F = BD + A´C´D + AB´C 09/21/2017

Example 2 g1 = x´z + w´yz + w´y´z´ + wxy´ g2 = x´z + w´yz + xy´z´ + wxy´ g3 = x´z + w´yz + xy´z´ + wy´z 09/21/2017

Example 3 g1 = c´d´ + ab + b´d´ + a´cd g2 = c´d´ + ab + b´d´ + a´b´c g3 = c´d´ + ab + ad´ + a´b´c 09/21/2017

Finding Minimum Product of Sums Expression Finding a minimum product of sums expression requires no new theory. The following approach is the simplest: Map the complement of the function. (If there is already a map for the function, replace all 0’s by 1’s, all 1’s by 0’s and leave X’s unchanged.) Find the minimum sum of products expression for the complement of the function (using the techniques of the last two sections). Use DeMorgan’s theorem (P11) to complement that expression, producing a product of sums expression. 09/21/2017

Example f(a, b, c, d) = ∑m(0, 1, 4, 5, 10, 11, 14) 09/21/2017

Example (cont.) f = a´c´ + ab´c + acd´ f´ = ac´ + a´c + abd f´ = ac´ + a´c + bcd f = (a´ + c)(a + c´)(a´ + b´ + d´) f = (a´ + c)(a + c´)(b´ + c´ + d´) 09/21/2017