Karnaugh Maps (K maps).

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.
Gate-level Minimization
Basics: Digital Logic. F(x,y) = x.y F(x,y) = x.y + x'.y'
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 6 Dr. Shi Dept. of Electrical and Computer Engineering.
Chapter 3 Simplification of Switching Functions
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.

Computer Engineering (Logic Circuits) (Karnaugh Map)
ECE 331 – Digital System Design Karnaugh Maps and Determining a Minimal Cover (Lecture #7) The slides included herein were taken from the materials accompanying.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Simplifying Boolean Expressions Using K-Map Method
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Boolean Algebra and Logic Simplification
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
K-map Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
1 Simplification of Boolean Functions:  An implementation of a Boolean Function requires the use of logic gates.  A smaller number of gates, with each.
CT455: Computer Organization K-Map
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.
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.
Slide 1-1 Organizational Remarks I don’t use the exercises in Mano/Kime; this way you can use them as review exercises (for many of them there are solutions.
Optimization Algorithm
CS2100 Computer Organisation
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
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.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Lecture 11 Combinational Design Procedure
Conversion from one number base to another Binary arithmetic Equation simplification DeMorgan’s Laws Conversion to/from SOP/POS Reading equations from.
Karnaugh Maps (K maps). What are Karnaugh 1 maps?  Karnaugh maps provide an alternative way of simplifying logic circuits.  Instead of using Boolean.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
THE K-MAP.
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.
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.
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
Lecture 4: Four Input K-Maps CSE 140: Components and Design Techniques for Digital Systems CK Cheng Dept. of Computer Science and Engineering University.
K-map Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
In some Boolean functions there are some input terms that will never occur, for example in BCD code there are sex invalid combinations 1010,1011,1100,
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.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC:K-Map. K-Map (1)  Karnaugh Map provides a systematic method for simplifying Boolean expressions and may produce.
Computer Organisation
Optimized Implementation of Logic Function
Digital Logic and Design
Optimized Implementation of Logic Function
ECE 331 – Digital System Design
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
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.
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’
Karnaugh Maps (K maps).
Laws & Rules of Boolean Algebra
ECE 331 – Digital System Design
Presentation transcript:

Karnaugh Maps (K maps)

What are Karnaugh1 maps? Karnaugh maps provide an alternative way of simplifying logic circuits. Instead of using Boolean algebra simplification techniques, you can transfer logic values from a Boolean statement or a truth table into a Karnaugh map. The arrangement of 0's and 1's within the map helps you to visualise the logic relationships between the variables and leads directly to a simplified Boolean statement. 1Named for the American electrical engineer Maurice Karnaugh.

Karnaugh maps Karnaugh maps, or K-maps, are often used to simplify logic problems with 2, 3 or 4 variables. Cell = 2n ,where n is a number of variables For the case of 2 variables, we form a map consisting of 22=4 cells as shown in Figure A A A 1 1 1 B B B 00 10 01 11 2 1 1 1 1 3 Maxterm Minterm

Karnaugh maps 3 variables Karnaugh map Cell = 23=8 AB C 1 00 01 11 10 2 6 4 1 3 7 5 1

Karnaugh maps 4 variables Karnaugh map AB 00 01 11 10 CD 00 01 11 10 4 4 12 8 00 1 5 13 9 01 3 7 15 11 11 2 6 14 10 10

Karnaugh maps The Karnaugh map is completed by entering a '1‘(or ‘0’) in each of the appropriate cells. Within the map, adjacent cells containing 1's (or 0’s) are grouped together in twos, fours, or eights.

Example 2-variable Karnaugh maps are trivial but can be used to introduce the methods you need to learn. The map for a 2-input OR gate looks like this: A 1 B 1 A 1 1 1 A B Y 1 B A+B

Example A B C Y 1 AB C 00 01 11 10 1 1 1 1 1 1

Exercise Let us use Karnaugh map to simplify the follow function. F1 = m0+m2+m3+m4+m5+m6+m7 F2 = m0+m1+m2+m5+m7 Answer

Exercise Given the truth table, find the simplified SOP and POS form. Y 1

Don’t care term AB 00 01 11 10 CD X 1 00 01 11 10 AD

Exercise Design logic circuit that convert a 4-bits binary code to Excess-3 code A B C D W X Y Z 1 x

Don’t-care condition Minterms that may produce either 0 or 1 for the function. They are marked with an ´ in the K-map. This happens, for example, when we don’t input certain minterms to the Boolean function. These don’t-care conditions can be used to provide further simplification of the algebraic expression. (Example) F = A`B`C`+A`BC` + ABC` d=A`B`C +A`BC + AB`C F = A` + BC` 13

Prime Implicants and Covers An implicant is a product term that can cover minterms of a function. A prime implicant is a product term that is not covered by another implicant of the function. An essential prime implicant is a prime implicant that covers at least one minterm that is not covered by any other prime implicant. A set of implicants is said to be a cover of a function if each minterm of the function is covered by at least one implicant in the set. A minimal cover is a cover that contains the smallest number of prime implicants and the smallest number of literals..

illustrating implicants Minterms: {AB C, A BC, A BC, ABC, ABC} Groups of two minterms: {A B, AB, A C, BC, BC} Groups of four minterms: {B} Prime implicants: {A C, B} Cover = {A C, B} MSOP = A C + B

Algorithm -- Generating and Selecting Prime Implicants 1. Count the number of adjacencies for each minterm on the K-map. 2. Select an uncovered minterm with the fewest number of adjacencies. Make an arbitrary choice if more than one choice is possible. 3. Generate a prime implicant for this minterm and put it in the cover. If this minterm is covered by more than one prime implicant, select the one that covers the most uncovered minterms. 4. Repeat steps 2 and 3 until all minterms have been covered.

f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)

Algorithm -- Generating and Selecting Prime Implicants (Revisited) 1. Circle all prime implicants on the K-map. 2. Identify and select all essential prime implicants for the cover. 3. Select a minimum subset of the remaining prime implicants to complete the cover, that is, to cover those minterms not covered by the essential prime implicants.

f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)

f(A,B,C,D) = m(0,5,7,8,10,12,14,15)

f(A,B,C,D) = m(1,2,3,6) = AC + BC

f(A,B,C,D) = BD + BC + BCD

Function with no essential prime implicants. f(A,B,C,D) = m(0,4,5,7,8,10,14,15)

Minimizing a five-variable function Minimizing a five-variable function. f(A,B,C,D,E) = m(0,2,4,7,10,12,13,18,23,26,28,29)