ECE 3110: Introduction to Digital Systems Simplifying Sum of Products using Karnaugh Maps.

Slides:



Advertisements
Similar presentations
Techniques for Combinational Logic Optimization
Advertisements

Prof. Sin-Min Lee Department of Computer Science
Chapter 3 Simplification of Switching Functions. Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
ITEC 352 Lecture 4 Boolean logic / Karnaugh Maps.
Gate-level Minimization
1 EE 365 Combinational-Circuit Synthesis. 2 Combinational-Circuit Analysis Combinational circuits -- outputs depend only on current inputs (not on history).
Chapter 3 Simplification of Switching Functions
Example: Given a 4-bit input combination N=N 3 N 2 N 1 N 0, this function produces a 1 output for N=1,2,3,5,7,11,13, and 0 otherwise.  According to the.

Computer Engineering (Logic Circuits) (Karnaugh Map)
ENEE244-02xx Digital Logic Design Lecture 10. Announcements HW4 assigned, due 10/9.
ECE 331 – Digital System Design Karnaugh Maps and Determining a Minimal Cover (Lecture #7) The slides included herein were taken from the materials accompanying.
ECE 301 – Digital Electronics Karnaugh Maps and Determining a Minimal Cover (Lecture #8) 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.
Logic gate level Part 3: minimizing circuits. Improving circuit efficiency Efficiency of combinatorial circuit depends on number & arrangement of its.
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
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.
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 10 (Part 2): Boolean Algebra  Logic Gates (10.3) (cont.)  Minimization of Circuits (10.4)
1 Digital Logic Design Week 5 Simplifying logic expressions.
1 EE121 John Wakerly Lecture #4 Combinational-Circuit Synthesis ABEL.
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
1 ENGR 254 Lecture DeMorgan Symbol Equivalence.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
ECE 3110: Introduction to Digital Systems Symplifying Products of sums using Karnaugh Maps.
UM EECS 270 Spring 2011 – Taken from Dr.Karem Sakallah Logic Synthesis: From Specs to Circuits Implementation Styles –Random –Regular Optimization Criteria.
Combinational Logic Part 2: Karnaugh maps (quick).
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
PRASAD A. PAWASKAR SPN. NO DETE 2 SEMESTER lec1-11.
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
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:
ECE 3110: Introduction to Digital Systems
ece Parity Used to check for errors Can be either ODD or EVEN Left most bit used as the indicator For EVEN, insert a 0 or a 1 so as to make the.
1 Digital Logic Design Week 5&6 cont’d Revision for Quiz 2/Exam.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Minimization Karnaugh Maps
Sum-of-Products (SOP)
June 12, 2002© Howard Huang1 Karnaugh maps Last time we saw applications of Boolean logic to circuit design. – The basic Boolean operations are.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
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.
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.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
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.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CSC205 Jeffrey N. Denenberg Lecture #5
ECE 2110: Introduction to Digital Systems
Computer Organisation
ECE 3110: Introduction to Digital Systems
CS 352 Introduction to Logic Design
ECE 2110: Introduction to Digital Systems
Karnaugh Maps.
Lecture 4 Sums of Product Circuits Simplification
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Minimization of Switching Functions
Instructor: Alexander Stoytchev
Laws & Rules of Boolean Algebra
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Circuit Simplification and
Presentation transcript:

ECE 3110: Introduction to Digital Systems Simplifying Sum of Products using Karnaugh Maps

2 Previous… Algebra Minimization K-Map

3 Karnaugh Maps Karnaugh Map : a representation of the truth table by a matrix of squares (cells), where each square corresponds to a minterm ( or a maxterm) of the logic function. For n-variable function, we need 2^n rows truth table and 2^n squares (cells). The square number is equivalent to the row number in the truth table To represent a logic function, the truth table values are copied into their corresponding cells. The arrangements of the squares help to identify the input variable redundancy ( X.Y.Z+X.Y.Z’=X.Y )

4 Karnaugh-map usage Plot 1s corresponding to minterms of function. Circle largest possible rectangular sets of 1s.  # of 1s in set must be power of 2  OK to cross edges Read off product terms, one per circled set.  Variable is 1 ==> include variable  Variable is 0 ==> include complement of variable  Variable is both 0 and 1 ==> variable not included Circled sets and corresponding product terms are called “prime implicants” Minimum number of gates and gate inputs

5 Prime-number detector (again)

6 When we solved algebraically, we missed one simplification -- the circuit below has three less gate inputs.

7 Simplifying the Sum of Products (again) Two main steps : 1) Combining/Grouping the 1-cells. 2) Writing the product term for each group. Rules : ( for n-variable function ) 1) The group size must be a power of 2. 2) A set of 2^i cells can be combined if there are ( i ) variables that take all possible combinations within the set and the remaining ( n-i ) variables have the same value within that set. 3) The corresponding product term for each group contains (n-i) literals: - The variable is complemented if it is 0 in the combined cells - The variable is uncomplemented if it’s 1 in the combined cells - The variable is not included in the product term if it takes both values 0 and 1 within the combined cells

8 Example 1 The canonical sum is : F=X’.Y’.Z’+X’.Y.Z’+X.Y’.Z’+X.Y’.Z+X.Y.Z’ Combine cells (0,2,6,4) X=0,1, Y= 0,1, Z=0 Product Term : Z’ Combine cells ( 4,5 ) Z=0,1, Y=0, X=1 Product Term : XY’ F= X.Y’+Z’ XY Z X Z Y

9 Definitions : A logic function P implies a logic function F if for every input combination for which P=1, then F=1 also. ( P is an implicant of F, P implies F, p=>F, F includes P, or F covers P ) Any minterm or combination of minterms in the canonical sum expression is an implicant of the output function A prime implicant is a group of combined minterms that cant be combined with any other minterm or group of minterms (a circled set) Distinguished 1-cell: is an input combination that is covered by only one prime implicant. (a unique minterm) Essential prime implicant is a prime implicant which covers one or more distinguished 1-cells (i.e. at least one minterm isn’t contained in any other prime implicant.) A minimal sum of a logic function is a sum-of-products expression for F such that no sum-of-products expression for F has fewer product terms. In Example 1 : - X’Y’Z’, (X’Y’Z’+XYZ’), XY’ are implicants of F - XY’, Z’ are prime implicants and essential prime implicants

10 Prime-Implicant Theorem A minimum sum is a sum of prime implicants. Complete sum: sum of all the prime implicants of a logic function. Complete sum is not always minimal. Which prime implicants should be included and which should not be included in the minimum sum?

11 Minimal sum Essential prime implicants (if available) must be included. Secondary essential prime implicants must be included. If a logic function with no essential prime implicants at all.  Trial and error  Branching method

12 How to get minimal sum Load the minterms and maxterms into the K-map by placing the 1’s and 0’s in the appropriate cells. Look for groups of minterms and write the corresponding product terms ( the prime implicants): a- The group size must be a power of 2. b- Find the largest groups of minterms first then find smaller groups of minterms until all groups are found and all 1-cells are covered. Determine the essential prime implicants. Select all essential prime implicants and the minimal set of the remaining prime implicants that cover the remaining 1’s. It’s possible to get more than one equally simplified expression if more than one set of the remaining prime implicants contains the same number of minterms.

13 Next: Simplifying Products of sums (POS) Other minimization Read Ch HW #6