Chapter 3 Special Section Focus on Karnaugh Maps.

Slides:



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

ECE 238L Computer Logic Design Spring 2010
Boolean Algebra and Combinational Logic
CSE-221 Digital Logic Design (DLD)
Karnaugh Maps for Simplification
ENGIN112 L13: Combinational Design Procedure October 1, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 13 Combinational Design Procedure.
CS 151 Digital Systems Design Lecture 13 Combinational Design Procedure.
Logic gate level Part 3: minimizing circuits. Improving circuit efficiency Efficiency of combinatorial circuit depends on number & arrangement of its.
Chapter 2: Combinatorial Logic Circuits Illustration Pg. 32 Logic Circuit Diagrams - Circuit Optimization -2,3,4 level maps 48 elements Optimized to 25.
Computer Organization and Assembly Language: Chapter 7 The Karnaugh Maps September 30, 2013 By Engineer. Bilal Ahmad.
IKI a-Simplification of Boolean Functions Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture.
Computer Programming Skills Revision Prepared by: Ghader Kurdi.
PHY 201 (Blum)1 Karnaugh Maps References: Chapters 4 and 5 in Digital Principles (Tokheim) Chapter 3 in Introduction to Digital Systems (Palmer and Perlman)
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
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
Digital Logic Chapter 4 Presented by Prof Tim Johnson
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.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Karnaugh Maps References:
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
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.
T,JK-flip-flop, Midterm 1 Revision Decoders and Multiplexers Prof. Sin-Min Lee Department of Computer Science San Jose State University.
CS1Q Computer Systems Lecture 7
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
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.
CS231 Boolean Algebra1 Summary so far So far: – A bunch of Boolean algebra trickery for simplifying expressions and circuits – The algebra guarantees us.
Karnaugh Mapping Digital Electronics. Karnaugh Mapping or K-Mapping This presentation will demonstrate how to Create and label two, three, & four variable.
1 Digital Logic Design Week 5&6 cont’d Revision for Quiz 2/Exam.
CS151 Introduction to Digital Design Chapter Map Simplification.
Sum-of-Products (SOP)
Karnaugh Maps (K-Maps)
Karnaugh Map and Circuit Design.
June 12, 2002© Howard Huang1 Karnaugh maps Last time we saw applications of Boolean logic to circuit design. – The basic Boolean operations are.
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.
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 Gate Level Minimization EE 208 – Logic Design Chapter 3 Sohaib Majzoub.
Revision Mid 1 Prof. Sin-Min Lee Department of Computer Science.
CS231 Boolean Algebra1 Circuit analysis summary After finding the circuit inputs and outputs, you can come up with either an expression or a truth table.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
CHAPTER 3 Simplification of Boolean Functions
Dr. Clincy Professor of CS
Circuit analysis summary
Lecture 3 Gunjeet Kaur Dronacharya Group of Institutions
Digital Logic and Design
Dr. Clincy Professor of CS
Karnaugh Maps (K-Maps)
Dr. Clincy Professor of CS
BASIC & COMBINATIONAL LOGIC CIRCUIT
Karnaugh Maps Topics covered in this presentation: Karnaugh Maps
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Unit 3 Simplification and K-map
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
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.
Karnaugh Map Method By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

Chapter 3 Special Section Focus on Karnaugh Maps

2 3A.1 Introduction Simplification of Boolean functions leads to simpler (and usually faster) digital circuits. Simplifying Boolean functions using identities is time-consuming and error-prone. This special section presents an easy, systematic method for reducing Boolean expressions.

3 In 1953, Maurice Karnaugh was a telecommunications engineer at Bell Labs. While exploring the new field of digital logic and its application to the design of telephone circuits, he invented a graphical way of visualizing and then simplifying Boolean expressions. This graphical representation, now known as a Karnaugh map, or Kmap, is named in his honor. 3A.1 Introduction

4 3A.2 Description of Kmaps and Terminology A Kmap is a matrix consisting of rows and columns that represent the output values of a Boolean function. The output values placed in each cell are derived from the minterms of a Boolean function. A minterm is a product term that contains all of the function’s variables exactly once, either complemented or not complemented.

5 For example, the minterms for a function having the inputs x and y are: Consider the Boolean function, Its minterms are: 3A.2 Description of Kmaps and Terminology

6 Similarly, a function having three inputs, has the minterms that are shown in this diagram. 3A.2 Description of Kmaps and Terminology

7 A Kmap has a cell for each minterm. This means that it has a cell for each line for the truth table of a function. The truth table for the function F(x,y) = xy is shown at the right along with its corresponding Kmap. 3A.2 Description of Kmaps and Terminology

8 As another example, we give the truth table and KMap for the function, F(x,y) = x + y at the right. This function is equivalent to the OR of all of the minterms that have a value of 1. Thus: 3A.2 Description of Kmaps and Terminology

9 3A.3 Kmap Simplification for Two Variables Of course, the minterm function that we derived from our Kmap was not in simplest terms. –That’s what we started with in this example. We can, however, reduce our complicated expression to its simplest terms by finding adjacent 1s in the Kmap that can be collected into groups that are powers of two. In our example, we have two such groups. – Can you find them?

10 The best way of selecting two groups of 1s form our simple Kmap is shown below. We see that both groups are powers of two and that the groups overlap. The next slide gives guidance for selecting Kmap groups. 3A.3 Kmap Simplification for Two Variables

11 The rules of Kmap simplification are: Groupings can contain only 1s; no 0s. Groups can be formed only at right angles; diagonal groups are not allowed. The number of 1s in a group must be a power of 2 – even if it contains a single 1. The groups must be made as large as possible. Groups can overlap and wrap around the sides of the Kmap. 3A.3 Kmap Simplification for Two Variables

12 A Kmap for three variables is constructed as shown in the diagram below. We have placed each minterm in the cell that will hold its value. –Notice that the values for the yz combination at the top of the matrix form a pattern that is not a normal binary sequence. 3A.3 Kmap Simplification for Three Variables

13 Thus, the first row of the Kmap contains all minterms where x has a value of zero. The first column contains all minterms where y and z both have a value of zero. 3A.3 Kmap Simplification for Three Variables

14 Consider the function: Its Kmap is given below. –What is the largest group of 1s that is a power of 2? 3A.3 Kmap Simplification for Three Variables

15 This grouping tells us that changes in the variables x and y have no influence upon the value of the function: They are irrelevant. This means that the function, reduces to F(x) = z. You could verify this reduction with identities or a truth table. 3A.3 Kmap Simplification for Three Variables

16 Now for a more complicated Kmap. Consider the function: Its Kmap is shown below. There are (only) two groupings of 1s. –Can you find them? 3A.3 Kmap Simplification for Three Variables

17 In this Kmap, we see an example of a group that wraps around the sides of a Kmap. This group tells us that the values of x and y are not relevant to the term of the function that is encompassed by the group. –What does this tell us about this term of the function? What about the green group in the top row? 3A.3 Kmap Simplification for Three Variables

18 The green group in the top row tells us that only the value of x is significant in that group. We see that it is complemented in that row, so the other term of the reduced function is. Our reduced function is: Recall that we had six minterms in our original function! 3A.3 Kmap Simplification for Three Variables

19 Our model can be extended to accommodate the 16 minterms that are produced by a four-input function. This is the format for a 16-minterm Kmap. 3A.3 Kmap Simplification for Four Variables

20 We have populated the Kmap shown below with the nonzero minterms from the function: –Can you identify (only) three groups in this Kmap? Recall that groups can overlap. 3A.3 Kmap Simplification for Four Variables

21 Our three groups consist of: –A purple group entirely within the Kmap at the right. –A pink group that wraps the top and bottom. –A green group that spans the corners. Thus we have three terms in our final function: 3A.3 Kmap Simplification for Four Variables

22 It is possible to have a choice as to how to pick groups within a Kmap, while keeping the groups as large as possible. The (different) functions that result from the groupings below are logically equivalent. 3A.3 Kmap Simplification for Four Variables

23 3A.6 Don’t Care Conditions Real circuits don’t always need to have an output defined for every possible input. –For example, some calculator displays consist of 7- segment LEDs. These LEDs can display patterns, but only ten of them are useful. If a circuit is designed so that a particular set of inputs can never happen, we call this set of inputs a don’t care condition. They are very helpful to us in Kmap circuit simplification.

24 In a Kmap, a don’t care condition is identified by an X in the cell of the minterm(s) for the don’t care inputs, as shown below. In performing the simplification, we are free to include or ignore the X’s when creating our groups. 3A.6 Don’t Care Conditions

25 In one grouping in the Kmap below, we have the function: 3A.6 Don’t Care Conditions

26 A different grouping gives us the function: 3A.6 Don’t Care Conditions

27 The truth table of: differs from the truth table of: However, the values for which they differ, are the inputs for which we have don’t care conditions. 3A.6 Don’t Care Conditions

28 Kmaps provide an easy graphical method of simplifying Boolean expressions. A Kmap is a matrix consisting of the outputs of the minterms of a Boolean function. In this section, we have discussed and 4- input Kmaps. This method can be extended to any number of inputs through the use of multiple tables. 3A Conclusion

29 Recapping the rules of Kmap simplification: Groupings can contain only 1s; no 0s. Groups can be formed only at right angles; diagonal groups are not allowed. The number of 1s in a group must be a power of 2 – even if it contains a single 1. The groups must be made as large as possible. Groups can overlap and wrap around the sides of the Kmap. Use don’t care conditions when you can. 3A Conclusion

30 End of Chapter 3A