Simplifying Boolean Expressions Using K-Map Method

Slides:



Advertisements
Similar presentations
Techniques for Combinational Logic Optimization
Advertisements

Prof. Sin-Min Lee Department of Computer Science
ECE 3110: Introduction to Digital Systems Simplifying Sum of Products using Karnaugh Maps.
Chapter 3 Simplification of Switching Functions. Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
Gate-level Minimization
ECE 301 – Digital Electronics Karnaugh Maps (Lecture #7) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
Chapter 3 Simplification of Switching Functions
Give qualifications of instructors: DAP
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.
ECE 301 – Digital Electronics Karnaugh Maps and Determining a Minimal Cover (Lecture #8) The slides included herein were taken from the materials accompanying.
CS 140 Lecture 5 Professor CK Cheng CSE Dept. UC San Diego 1.
EECC341 - Shaaban #1 Lec # 7 Winter Combinational Circuit Minimization Canonical sum and product logic expressions do not provide a circuit.
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Chapter 2: Boolean Algebra and Logic Functions
Lecture 3: Incompletely Specified Functions and K Maps CSE 140: Components and Design Techniques for Digital Systems Fall 2014 CK Cheng Dept. of Computer.
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
Optimization Algorithm
CS2100 Computer Organisation
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
Unit 5 Karnaugh Maps Fundamentals of Logic Design by Roth and Kinney.
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.
Converting to Minterms Form
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Chapter 3 The Karnaugh Map
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
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
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 Chapter #4 Review.
CS151 Introduction to Digital Design Chapter Map Simplification.
Copied with Permission from prof. Mark PSU ECE
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
1 Example: Groupings on 3-Variable K-Maps BC F(A,B,C) = A ’ B ’ A BC F(A,B,C) = B ’ A
CSE 140: Components and Design Techniques for Digital Systems Lecture 3: Incompletely Specified Functions and K Maps CK Cheng Dept. of Computer Science.
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 5: Karnaugh Maps.
Karnaugh Map (K-Map) By Dr. M. Khamis Mrs. Dua’a Al Sinari.
1 Gate Level Minimization EE 208 – Logic Design Chapter 3 Sohaib Majzoub.
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
Karnaugh Maps (K maps).
K-map Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
CEC 220 Digital Circuit Design Implicants Wed, Sept. 23 CEC 220 Digital Circuit Design Slide 1 of 10.
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)
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 7 – Karnaugh Maps.
Lecture 5: K-Map minimization in larger input dimensions and K-map minimization using max terms CSE 140: Components and Design Techniques for Digital Systems.
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.
Computer Organisation
ECE 2110: Introduction to Digital Systems
Karnaugh Maps.
ECE 331 – Digital System Design
ECE 331 – Digital System Design
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
ECE 331 – Digital System Design
ECE 331 – Digital System Design
Chapter 3 Gate-level Minimization.
Minimization of Switching Functions
Overview Part 2 – Circuit Optimization
ECE 331 – Digital System Design
Presentation transcript:

Simplifying Boolean Expressions Using K-Map Method CS 3402-- Digital Logic Design

Simplifying Switching Functions SOP and POS expressions ==> 2-level circuits Minimum SOP/POS expression: Minimize the number of literals Minimum number of terms How? Algebraically: I.e. using the axioms and theorems of Boolean algebra. Karnaugh Map McCluskey Method CS3402::A. Berrached

Simplifying Algebraically Simplify F(X,Y,Z) = X + Y’Z + X’Y’Z + X’Y’Z’ Simplify F(A,B,C) = ABC + ABC’ + AB’C CS3402::A. Berrached

Simplifying Switching Functions: K-Map Simplifying Theorem: XY + X’Y = Y Definition: Logical Adjacency Two terms are logically adjacent iff they differ in only one literal: the literal is complemented in one term and non-complemented in the other. Two Logically adjacent terms can be combined into one term consisting of only the common literals CS3402::A. Berrached

Simplifying Boolean Expressions Example: XY + X’Y = ABC’ + AB’C’ = ABCD + ABC’ (A’+B +C+D).(A+B+C+D) = AB’ A’B ABC’ AB’C (X+Y) (X’+Y’) CS3402::A. Berrached

Karnaugh-Map (K-Map) 2-dimensional representation of a truth table. Logically adjacent terms are physically adjacent in the map. 2-Variable Functions: F(X,Y) = XY + X’Y X Y F(X,Y) m0 m1 m2 m3 0 0 0 1 1 0 1 1 CS3402::A. Berrached

2-Variable K-Map X Y 0 1 1 X Y 0 1 1 00 01 10 11 X’Y’ XY’ X’Y XY Note: 0 1 1 X Y 0 1 1 00 01 10 11 X’Y’ XY’ X’Y XY Note: Logically adjacent cells are physically adjacent in the k-map Each cells has two adjacent cells X Y 0 1 1 m0 m2 m1 m3 CS3402::A. Berrached

Function Minimization Using K-Maps 1. Each square (minterm) in a k-map of 2 variables has 2 logically adjacent squares, each square in a 3-variable k-map has 3 adjacent squares, etc. 2. Combine only the minterms for which the function is 1. 3. When combining terms on a k-map, group adjacent squares in groups of powers of 2 (I.e. 2, 4, 8, etc.). Grouping two squares eliminates one variables, grouping 4 squares eliminates 2 variables, etc. Can't combine a group of 3 minterms CS3402::A. Berrached

Function Minimization Using K-Maps 4. Group as many squares together as possible; the larger the group is the fewer the number of literals in the resulting product term 5. Select as few groups as possible to cover all the minterms of the functions. A minterm is covered if it is included in at least one group. Each minterm may be covered as many times as it is needed; however, it must be covered at least once. 6. In combining squares on the map, always begin with those squares for which there are the fewest number of adjacent squares (the “loneliest" squares on the map). CS3402::A. Berrached

Definitions Implicant: a product term that could be used to cover one or more minterms Prime Implicant: A product term obtained by combining the maximum number of adjacent squares in the map. Essential Prime Implicant: A prime implicant that covers at least one minterm that is not covered by any other prime implicant. All essential prime implicants must be included in the final minimal expression. CS3402::A. Berrached

Definitions (Cont.) Cover of function: is a set of prime implicants for which each minterm of the function is covered by at least one prime implicant. All essential prime implicants must be included in the cover of a function. CS3402::A. Berrached

Algorithm for Deriving the Minimal SOP 1. Circle all prime implicants on the k-map 2. Identify and select all essential prime implicants 3. Select a minimum subset of the remaining prime implicants to cover those minterms not covered by the essential prime implicants. CS3402::A. Berrached

00 01 00 01 11 10 11 10 Four Variable K-map CS3402::A. Berrached

Five Variable K-map ABC DE 000 001 00 01 11 10 011 010 100 101 111 110 000 001 00 01 11 10 011 010 100 101 111 110 ABC DE 00 01 11 10 m0 m1 m3 m2 m4 m5 m7 m6 m12 m13 m15 m14 m8 m9 m11 m10 m16 m17 m19 m18 m20 m21 m23 m22 m28 m29 m31 m30 m24 m25 m27 m26 Five Variable K-map CS3402::A. Berrached

More Examples Find min. SOP and POS expression for each of the following functions F(A,B,C,D) =  m(2,3,5,7,10,11,13,14,15) G(W,X,Y,Z)=  M(1,3,4,5,7) H(A,B,C,D) = m(1,3,4,7,11)+d(5,12,13,14,15) F2(A,B,C,D)=  m(1,2,7,12,15)+d(5,9,10,11,13) F3(A,B,C,D,E) =  m(0,1,2,4,5,6,13,15,16,18,22,24,26,29) CS3402::A. Berrached