KARNAUGH MAP A Karnaugh map (K Map) is a pictorial method used to minimize boolean expressions without having to use boolean algebra theorems and equation.

Slides:



Advertisements
Similar presentations
Prof. Sin-Min Lee Department of Computer Science
Advertisements

K-Map Simplification COE 202 Digital Logic Design Dr. Aiman El-Maleh
Chapter 3 Simplification of Switching Functions. Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
ECE 301 – Digital Electronics Karnaugh Maps (Lecture #7) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 – Part 4.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Simplifying Boolean Expressions Using K-Map Method
Computer Organization and Assembly Language: Chapter 7 The Karnaugh Maps September 30, 2013 By Engineer. Bilal Ahmad.
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Boolean Algebra and Logic Simplification
Digital Logic and Design Vishal Jethva Lecture No. 10 svbitec.wordpress.com.
KU College of Engineering Elec 204: Digital Systems Design
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
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.
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.
1 Digital Logic Design Week 5 Simplifying logic expressions.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
Chapter 3 Gate-Level Minimization
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 2.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 2.
Computer Engineering (Logic Circuits) (Karnaugh Map)
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Minimisation ENEL111. Minimisation Last Lecture  Sum of products  Boolean algebra This Lecture  Karnaugh maps  Some more examples of algebra and truth.
LOGIC GATES & BOOLEAN ALGEBRA
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
ENG241 Digital Design Week #2 Combinational Logic Circuits.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Karnaugh Mapping Digital Electronics. Karnaugh Mapping or K-Mapping This presentation will demonstrate how to Create and label two, three, & four variable.
CS151 Introduction to Digital Design Chapter Map Simplification.
Chapter 2 Boolean Algebra and Minimization Techniques.
Sum-of-Products (SOP)
Chapter 3 Special Section Focus on Karnaugh Maps.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
Logic Simplification-Using K-Maps
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.
Karnaugh Maps (K maps).
Revision Mid 1 Prof. Sin-Min Lee Department of Computer Science.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
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,
Function Simplification. Outline  Function Simplification  Algebraic Simplification  Half Adder  Introduction to K-maps  Venn Diagrams.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
Digital Systems Design 1 Signal Expressions Multiply out: F = ((X + Y)  Z) + (X  Y  Z) = (X  Z) + (Y  Z) + (X  Y  Z)
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
Computer Organisation
Dr. Clincy Professor of CS
Karnaugh Maps.
Optimized Implementation of Logic Function
Optimized Implementation of Logic Function
Dr. Clincy Professor of CS
BASIC & COMBINATIONAL LOGIC CIRCUIT
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
SYEN 3330 Digital Systems Chapter 2 – Part 4 SYEN 3330 Digital Systems.
Karnaugh Maps Introduction Venn Diagrams 2-variable K-maps
Dr. Clincy Professor of CS
Optimized Implementation of Logic Function
Dr. Clincy Professor of CS
CS Chapter 3 (3A and ) – Part 3 of 5
Dr. Clincy Professor of CS
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Chapter 3 Special Section
Laws & Rules of Boolean Algebra
Presentation transcript:

KARNAUGH MAP A Karnaugh map (K Map) is a pictorial method used to minimize boolean expressions without having to use boolean algebra theorems and equation manipulations. A K Map can be thought of as a special version of a truth table. K Map is a grid –like representation of a truth table. It is really just another way of presenting truth table.

HISTORY The Karnaugh map was invented in 1952 by Edward W. Veitch and developed further in 1953 by Maurice Karnaugh, a telecommunications engineer at bell It is a method to simplify Boolean algebra expressions. The Karnaugh map reduces the need for extensive calculations by taking advantage of humans' pattern-recognition capability, permitting the rapid identification and elimination of potential race hazards

PURPOSE Normally, extensive calculations are required to obtain the minimal expression of a Boolean function, however Karnaugh mapping reduces the need for such calculations by: Taking advantage of the human brain's pattern-matching capability to decide which terms should be combined to obtain the simplest expression. Permitting the rapid identification and elimination of potential race hazards, which is unavoidable in boolean equations. Providing an excellent aid for simplification of up to six variables, however with more variables it becomes more difficult to discern optimal patterns. Helping to teach about Boolean functions and minimization.

PROCEDURE An significant about the construction of K-map is the arrangement of the cells. Two cells are physically adjacent within the configuration if and only if their respective n-tuples differ in exactly by one element. So that the Boolean law x+x=1 cab be applied to adjacent cells. Ex. Two 3- tuples (0,1,1) and (0,1,0) are physically a djacent since these tuples vary by one element. When the Karnaugh map has been completed, to derive a minimized function the "1s" or desired outputs are grouped into the largest possible rectangular groups in which the number of grid boxes (output possibilities) in the groups must be equal to a power of 2.[1] For example, the groups may be 4 boxes in a line, 2 boxes high by 4 boxes long, 2 boxes by 2 boxes, and so on. "Don't care(s)" possibilities (generally represented by a "X") are grouped only if the group created is larger than the group with "Don't care" is excluded. The boxes can be used more than once only if it generates the least number of groups. Each "1" or desired output possibilities must be contained within at least one grouping.

OBJECTIVES This section presents a technique for simplifying logical expressions. It will: Define Karnaugh and establish the correspondence between Karnaugh maps and truth tables and logical expressions. Show how to use Karnaugh maps to derive minimal sum of-products and product-of-sums expressions. Introduce the concept of "don't care“ entries and show how to extend Karnaugh map techniques to include maps with don't care entries.

2 VARIABLE K-MAP 1 m0 m1 1 m2 m3 2 variable needs 2^2= 4cells A B 1 0 1 m0 m1 1 A 1 m2 m3 S= a b’+ a’ b

3 VARIABLE K-MAP 3 variables need 2^3 =8 cells 1 F=C’+B’ F=Σm(0,1,2,4,5,6) A AB 00 01 11 10 C 1 1 c F=C’+B’

4-variable K-maps

5 VARIABLE K-MAP 1 1 5 variables need 2^5=32 cells y A’ A y x YZ 00 01 11 10 YZ 00 01 11 10 WX WX 1 1 00 01 11 10 00 01 11 10 x X W W A’ A Z Z

RULES OF SIMPLIFICATION No diagonals. No zeros allowed. Groups should be as large as possible. Every one must be in at least one group. Overlapping allowed. Wrap around allowed. Fewest number of groups possible

SUM OF PRODUCT (SOP) Simplified SOP expression can be obtained by grouping the minterms (i.e. 1s)of given function. example: F=Σm(2,3,4,5,7,8,10,13,15) AB AB’D’ CD 00 01 11 10 A'BC’ 1 00 01 11 10 A’B’C

PRODUCT OF SUM (POS) Simplified POS expression can be obtained by grouping the maxterms (i.e. 0s) of given function. Example: F=ΣM(0,1,2,3,5,7,8,9,10,11) (A’+B’) AB 00 01 11 10 CD 1 00 01 11 10 (B’+D)

DON’T CARE CONDITION They could be chosen to be either ‘1’ or ‘0’ depending on which gives the simpler expression. Don’t care conditions can be used to help simple boolean expressions further in K-Maps. Don’t care conditions are denoted by ‘X’.

DON’T CARE CONDITION C CD 00 01 11 10 AB 1 X 00 01 11 10 B A D

USE OF BOOLEAN ALGEBRA IN SIMPLIFICATION Commutative law : x + y = y + x x . y = y . X Distributive law : x + (y . z) = (x + y) . (x + z) x . (y + z) = (x . y) + (x . z) Associative law : (x + y) + z = x + (y + z) (x . y) . z = x. (y . z) Complement : x + x’ = 1 x . x’ = 0 De Morgan’s law : ( x+ y )’ = x’ . y’ ( x . y )’ = x’+ y’

SIMPLIFICATION USING K-MAP GROUP OF MINTERMS MUST BE: Rectangular,and Have a size in power of 2's 1 1

SIMPLICATION USING K-MAP 1 2 3 1 1 1

ADVANTAGE ADVANTAGE: The advantage of K Map is that it is designed to present the information in a way that allows easy grouping of terms that can be combined.

LIMITATIONS It is difficult to make judgements about which combinations from the minimum expression. The K Map simplification is manual technique and simplification process is heavily depends on human abilities.

THANK YOU