Karnaugh Map Method.

Slides:



Advertisements
Similar presentations
Techniques for Combinational Logic Optimization
Advertisements

EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
BOOLEAN ALGEBRA. A Mathematical notation used to represent the function of the Digital circuit. A notation that allows variables & constants to have only.
Karnaugh Map Method.
Minimization of Circuits
Prof. Sin-Min Lee Department of Computer Science
I NTRODUCTION TO THE K ARNAUGH M AP 1 Alan Clements.
Chapter 3 Simplification of Switching Functions. Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
Boolean Algebra and Combinational Logic
ECE 301 – Digital Electronics Karnaugh Maps (Lecture #7) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,

EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Computer Engineering (Logic Circuits) (Karnaugh Map)
EECC341 - Shaaban #1 Lec # 7 Winter Combinational Circuit Minimization Canonical sum and product logic expressions do not provide a circuit.
Simplifying Boolean Expressions Using K-Map Method
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Digital Logic Chapter 4 Presented by Prof Tim Johnson
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
1 Chapter 5 Karnaugh Maps Mei Yang ECG Logic Design 1.
Department of Computer Engineering
1 Digital Logic Design Week 5 Simplifying logic expressions.
Digital Systems: Combinational Logic Circuits Wen-Hung Liao, Ph.D.
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.
CS1Q Computer Systems Lecture 7
February 2, 2004CS 2311 Karnaugh maps Last time we saw applications of Boolean logic to circuit design. – The basic Boolean operations are AND, OR and.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Karnaugh Mapping Digital Electronics. Karnaugh Mapping or K-Mapping This presentation will demonstrate how to Create and label two, three, & four variable.
Sum-of-Products (SOP)
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
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.
Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
C.S.Choy39 TERMINOLOGY Minterm –product term containing all input variables of a function in either true or complementary form Maxterm – sum term containing.
1 Karnaugh Map Method Truth Table -TO- K-Map Y0101Y0101 Z1011Z1011 X0011X0011 minterm 0  minterm 1  minterm 2  minterm 3 
Chapter 4 OPTIMIZED IMPLEMENTATION OF LOGIC FUNCTIONS.
K-map Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Karnaugh Maps The minimization method using Boolean Algebra, apart from being laborious and requiring the remembering all the laws, can lead to solutions.
1 EENG 2710 Chapter 3 Simplification of Switching Functions.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
CHAPTER 3 Simplification of Boolean Functions
Homework Reading Machine Projects Labs
Minimization of Circuits
ECE 2110: Introduction to Digital Systems
Prof. Sin-Min Lee Department of Computer Science
ECE 3110: Introduction to Digital Systems
Boolean Algebra and Combinational Logic
Lecture 3 Gunjeet Kaur Dronacharya Group of Institutions
Karnaugh Maps.
Karnaugh Maps (K-Maps)
E- Lesson: Karnaugh Maps (K-Map ).
Optimized Implementation of Logic Function
Dr. Clincy Professor of CS
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Karnaugh Mapping Karnaugh Mapping Digital Electronics
Karnaugh Mapping Digital Electronics
ECE 331 – Digital System Design
Karnaugh Mapping Karnaugh Mapping Digital Electronics
ECE 331 – Digital System Design
Karnaugh Mapping Digital Electronics
The Map Method Truth table of fn is unique but fn can be in many different algebraic forms Simplification by using boolean algebra is often difficult because.
Minimization of Switching Functions
Overview Part 2 – Circuit Optimization
Karnaugh Maps (K maps).
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.
Laws & Rules of Boolean Algebra
Karnaugh Map Method By: Asst Lec. Besma Nazar Nadhem
Circuit Simplification and
Computer Architecture
Presentation transcript:

Karnaugh Map Method

Karnaugh Map Technique K-Maps, like truth tables, are a way to show the relationship between logic inputs and desired outputs. K-Maps are a graphical technique used to simplify a logic equation. K-Maps are very procedural and much cleaner than Boolean simplification. K-Maps can be used for any number of input variables, BUT are only practical for fewer than six.

K-Map Format Each minterm in a truth table corresponds to a cell in the K-Map. K-Map cells are labeled so that both horizontal and vertical movement differ only in one variable. Once a K-Map is filled (0’s & 1’s) the sum-of-products expression for the function can be obtained by OR-ing together the cells that contain 1’s. Since the adjacent cells differ by only one variable, they can be grouped to create simpler terms in the sum-of-product expression.

Truth Table -TO- K-Map Y 1 Z X Y X 1 1 1 minterm 0  minterm 1  1 Z X Y X 1 minterm 0  minterm 1  minterm 2  minterm 3  1 2 1 1 3

2 Variable K-Map : Groups of One Y X 1 Y X 1 X Y X Y Y X 1 Y X 1 X Y X Y

Adjacent Cells Y X 1 X Y X Y Z = X Y + X Y = Y ( X + X ) = Y 1 Y X 1 X Y X Y Z = X Y + X Y = Y ( X + X ) = Y 1 Y X 1 Y = Z

Groupings Grouping a pair of adjacent 1’s eliminates the variable that appears in complemented and uncomplemented form. Grouping a quad of 1’s eliminates the two variables that appear in both complemented and uncomplemented form. Grouping an octet of 1’s eliminates the three variables that appear in both complemented and uncomplemented form, etc…..

2 Variable K-Map : Groups of Two Y X 1 Y X 1 Y X Y X 1 Y X 1 X Y

2 Variable K-Map : Group of Four Y X 1 1

Two Variable Design Example 1 T R S R 1 2 3 1 S T = F(R,S) = S

3 Variable K-Map : Vertical B C minterm 0  minterm 1  minterm 2  minterm 3  minterm 4  minterm 5  minterm 6  minterm 7  C 1 Y B A 1 4 1 5 3 7 2 6

3 Variable K-Map : Horizontal C 1 Y B A minterm 0  minterm 1  minterm 2  minterm 3  minterm 4  minterm 5  minterm 6  minterm 7  C A B 1 2 6 4 1 3 7 5

3 Variable K-Map : Groups of Two C A B 1 B C 1 A B 1 A C 1 A B 1 B C 1 A B 1 A B 1 A C 1 B C 1 A C 1 B C 1 A C

3 Variable K-Map : Groups of Four C A B 1 B 1 A 1 C 1 B 1 A 1 C

3 Variable K-Map : Group of Eight C A B 1 1

Simplification Process Construct the K-Map and place 1’s in cells corresponding to the 1’s in the truth table. Place 0’s in the other cells. Examine the map for adjacent 1’s and group those 1’s which are NOT adjacent to any others. These are called isolated 1’s. Group any hex. Group any octet, even if it contains some 1’s already grouped, but are not enclosed in a hex. Group any quad, even if it contains some 1’s already grouped, but are not enclosed in a hex or octet. Group any pair, even if it contains some 1’s already grouped, but are not enclosed in a hex, octet or quad. Group any single cells remaining. Form the OR sum of all the terms grouped.

Three Variable Design Example #1 1 M K J L J K 1 2 3 6 7 4 5 1 J L J K J K L M = F(J,K,L) = J L + J K + J K L

Three Variable Design Example #2 C 1 Z B A B C C A B 1 2 3 6 7 4 5 1 A C Z = F(A,B,C) = A C + B C

Three Variable Design Example #3 C 1 F2 B A A B C A C 1 A B 1 3 2 4 5 7 6 B C B C F2 = F(A,B,C) = B C + B C + A B F2 = F(A,B,C) = B C + B C + A C

Four Variable K-Map W X Y Z 1 Z 1 F1 Y X W minterm 0  minterm 1  1 F1 Y X W minterm 0  minterm 1  minterm 2  minterm 3  minterm 4  minterm 5  minterm 6  minterm 7  minterm 8  minterm 9  minterm 10  minterm 11  minterm 12  minterm 13  minterm 14  minterm 15  W X Y Z 1 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10

Four Variable K-Map : Groups of Four W X Y Z 1 X Z X Z 1 1 X Z

Four Variable Design Example #1 Z 1 F1 Y X W 1 4 5 12 13 8 9 3 2 7 6 15 14 11 10 W X Y Z min 0  min 15  W X Y 1 W Z X Y Z F1 = F(w,x,y,z) = W X Y + W Z + X Y Z

Four Variable Design Example #2 1 4 5 12 13 8 9 3 2 7 6 15 14 11 10 W X Y Z X Z 1 F2 x Y X W X Y Z min 0  min 15  Y Z X Y F2 = F(w,x,y,z) = X Y Z + Y Z + X Y