Lecture 4: Four Input K-Maps CSE 140: Components and Design Techniques for Digital Systems CK Cheng Dept. of Computer Science and Engineering University.

Slides:



Advertisements
Similar presentations
CSE20 Lecture 15 Karnaugh Maps Professor CK Cheng CSE Dept. UC San Diego 1.
Advertisements

1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic.
Gate-level Minimization
CS 140 Lecture 5 Professor CK Cheng 10/10/02. Part I. Combinational Logic 1.Spec 2.Implementation K-map: Sum of products Product of sums.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 6 Dr. Shi Dept. of Electrical and Computer Engineering.
1 CS 140 Lecture 3 Combinational Logic Professor CK Cheng CSE Dept. UC San Diego.
Examples Simplify: ab’c + abc + a’bc Show that X + X’Y = X + Y
1 CS 20 Lecture 14 Karnaugh Maps Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 3 Professor CK Cheng Tuesday 4/09/02.
Chapter 3 Simplification of Switching Functions
CS 140 Lecture 4 Professor CK Cheng Tuesday 5/08/02.
CS 140 Lecture 6 Professor CK Cheng Tuesday 10/15/02.
Give qualifications of instructors: DAP
CS 140 Lecture 4 Combinational Logic: K-Map Professor CK Cheng CSE Dept. UC San Diego 1.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 4-1 Chapter #2: Two-Level Combinational Logic Section 2.3, Switches and Tools.
CS 140 Lecture 6 Professor CK Cheng UC San Diego.
CS 140 Lecture 4 Professor CK Cheng 4/11/02. Part I. Combinational Logic Implementation K-Map Given F R D Obj: Minimize sum of products Proc: Draw K-Map.

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.
CS 140 Lecture 5 Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 5 Professor CK Cheng CSE Dept. UC San Diego 1.
Simplifying Boolean Expressions Using K-Map Method
Lecture 3: Incompletely Specified Functions and K Maps CSE 140: Components and Design Techniques for Digital Systems Fall 2014 CK Cheng Dept. of Computer.
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.
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
Examples. Examples (1/11)  Example #1: f(A,B,C,D) =  m(2,3,4,5,7,8,10,13,15) Fill in the 1’s. 1 1 C A B CD AB D 1 1.
Converting to Minterms Form
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
CS2100 Computer Organisation
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
Conversion from one number base to another Binary arithmetic Equation simplification DeMorgan’s Laws Conversion to/from SOP/POS Reading equations from.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
1 Example: Groupings on 3-Variable K-Maps BC F(A,B,C) = A ’ B ’ A BC F(A,B,C) = B ’ A
 Seattle Pacific University EE Logic System DesignKMaps-1 Two-Level Simplification All Boolean expressions can be represented in two- level forms.
CSE 140: Components and Design Techniques for Digital Systems Lecture 3: Incompletely Specified Functions and K Maps CK Cheng Dept. of Computer Science.
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 4: Cost of Logic Circuits and Karnaugh Maps José Nelson Amaral.
Karnaugh Maps (K maps).
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
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.
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.
Lecture 3: Incompletely Specified Functions and K Maps
Computer Organisation
CSE 140: Components and Design Techniques for Digital Systems
Optimized Implementation of Logic Function
CSE 140 : Components and Design Techniques for Digital Systems
Lecture 3: Incompletely Specified Functions and K Maps
Optimized Implementation of Logic Function
ECE 331 – Digital System Design
EECS 465: Digital Systems Lecture Notes # 2
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
CSE 140: Components and Design Techniques for Digital Systems
Optimization Algorithm
Chapter 3 Gate-level Minimization.
Optimized Implementation of Logic Function
Overview Part 2 – Circuit Optimization
CSE 140 Lecture 3 Combinational Logic: Implementation
Professor CK Cheng CSE Dept. UC San Diego
CSE 140 Lecture 4 Combinational Logic: K-Map
Lecture 3: Incompletely Specified Functions and K Maps
ECE 331 – Digital System Design
Presentation transcript:

Lecture 4: Four Input K-Maps CSE 140: Components and Design Techniques for Digital Systems CK Cheng Dept. of Computer Science and Engineering University of California, San Diego 1

Outlines Boolean Algebra vs. Karnaugh Maps –Algebra: variables, product terms, minterms, consensus theorem –Map: planes, rectangles, cells, adjacency Definitions: implicants, prime implicants, essential prime implicants Implementation Procedures 2

3 4-input K-map

4

5 Arrangement of variables Adjacency and partition

Boolean Expression K-Map Variable x i and complement x i ’  Half planes Rx i, and Rx i ’  Intersect of Rx i * for all i in P Each minterm  One element cell Two minterms are adjacent.  The two cells are neighbors Each minterm has n adjacent minterms  Each cell has n neighbors 6

7 Procedure for finding the minimal function via K-maps (layman terms) 1.Convert truth table to K-map 2.Group adjacent ones: In doing so include the largest number of adjacent ones (Prime Implicants) 3.Create new groups to cover all ones in the map: create a new group only to include at least one cell (of value 1 ) that is not covered by any other group 4.Select the groups that result in the minimal sum of products (we will formalize this because its not straightforward)

8 Reading the reduced K-map

Definitions: implicant, prime implicant, essential prime implicant 9 Implicant: A product term that has non-empty intersection with on-set F and does not intersect with off-set R. Prime Implicant: An implicant that is not covered by any other implicant. Essential Prime Implicant: A prime implicant that has an element in on-set F but this element is not covered by any other prime implicants.

Definition: Prime Implicant 1.Implicant: A product term that has non-empty intersection with on-set F and does not intersect with off-set R. 2.Prime Implicant: An implicant that is not covered by any other implicant. Q: Is this a prime implicant? 10 A.Yes B.No

Definition: Prime Implicant 11 A.Yes B.No Q: How about this one? Is it a prime implicant? 1.Implicant: A product term that has non-empty intersection with on-set F and does not intersect with off-set R. 2.Prime Implicant: An implicant that is not covered by any other implicant.

Definition: Prime Implicant 12 A.Yes B.No Q: How about this one? Is it a prime implicant? 1.Implicant: A product term that has non-empty intersection with on-set F and does not intersect with off-set R. 2.Prime Implicant: An implicant that is not covered by any other implicant.

Definition: Essential Prime Essential Prime Implicant: A prime implicant that has an element in on-set F but this element is not covered by any other prime implicants. 13 A.Yes B.No Q: Is the blue group an essential prime?

14

Definition: Non-Essential Prime 15 A.bc’d B.d’b’ C.ac D.abc E.ad’ Q: Which of the following reduced expressions is obtained from a non-essential prime for the given K-map ? ab cd Non Essential Prime Implicant : Prime implicant that has no element that cannot be covered by other prime implicant

16 Procedure for finding the minimal function via K-maps (formal terms) 1.Convert truth table to K-map 2.Include all essential primes 3.Include non essential primes as needed to completely cover the onset (all cells of value one)

17 K-maps with Don’t Cares

18 K-maps with Don’t Cares

19 K-maps with Don’t Cares

Reducing Canonical expressions Given F(a,b,c,d) = Σm (0, 1, 2, 8, 14) D(a,b,c,d) = Σm (9, 10) 1. Draw K-map 20 ab cd

Reducing Canonical Expressions Given F(a,b,c,d) = Σm (0, 1, 2, 8, 14) D(a,b,c,d) = Σm (9, 10) 1. Draw K-map ab cd

Reducing Canonical Expressions Given F(a,b,c,d) = Σm (0, 1, 2, 8, 14) D(a,b,c,d) = Σm (9, 10) 1. Draw K-map X X ab cd

Reducing Canonical Expressions 1.Draw K-map 2.Identify Prime implicants 3.Identify Essential Primes X X 23 ab cd PI Q: How many primes (P) and essential primes (EP) are there? A.Four (P) and three (EP) B.Three (P) and two (EP) C.Three (P) and three (EP) D.Four (P) and Four (EP)

Reducing Canonical Expressions X X 24 ab cd PI Q: Do the E-primes cover the entire on set? A.Yes B.No 1.Prime implicants: Σm (0, 1, 8, 9), Σm (0, 2, 8, 10), Σm (10, 14) 2.Essential Primes: Σm (0, 1, 8, 9), Σm (0, 2, 8, 10), Σm (10, 14)

Reducing Canonical Expressions 1.Prime implicants: Σm (0, 1, 8, 9), Σm (0, 2, 8, 10), Σm (10, 14) 2.Essential Primes: Σm (0, 1, 8, 9), Σm (0, 2, 8, 10), Σm (10, 14) 3.Min exp: Σ (Essential Primes)=Σm (0, 1, 8, 9) + Σm (0, 2, 8, 10) + Σm (10, 14) f(a,b,c,d) = ? X X 25 ab cd PI Q: Do the E-primes cover the entire on set? A.Yes B.No

Reducing Canonical Expressions 1.Prime implicants: Σm (0, 1, 8, 9), Σm (0, 2, 8, 10), Σm (10, 14) 2.Essential Primes: Σm (0, 1, 8, 9), Σm (0, 2, 8, 10), Σm (10, 14) 3.Min exp: Σ (Essential Primes)=Σm (0, 1, 8, 9) + Σm (0, 2, 8, 10) + Σm (10, 14) f(a,b,c,d) = b’c’ + b’d’+ acd‘ X X 26 ab cd PI Q: Do the E-primes cover the entire on set? A.Yes B.No

Another example Given F(a,b,c,d) = Σm (0, 3, 4, 14, 15) D(a,b,c,d) = Σm (1, 11, 13) 1.Draw the K-Map 27 ab cd

Another example Given F(a,b,c,d) = Σm (0, 3, 4, 14, 15) D(a,b,c,d) = Σm (1, 11, 13) X 0 X X ab cd

Reducing Canonical Expressions 29 1.Prime implicants: Σm (0, 4), Σm (0, 1), Σm (1, 3), Σm (3, 11), Σm (14, 15), Σm (11, 15), Σm (13, 15) 2.Essential Primes: Σm (0, 4), Σm (14, 15) X 0 X X ab cd

Reducing Canonical Expressions Prime implicants: Σm (0, 4), Σm (0, 1), Σm (1, 3), Σm (3, 11), Σm (14, 15), Σm (11, 15), Σm (13, 15) 2.Essential Primes: Σm (0, 4), Σm (14, 15) 3.Min exp: Σm (0, 4), Σm (14, 15), (Σm (3, 11) or Σm (1,3) ) 4. f(a,b,c,d) = a’c’d’+ abc+ b’cd (or a’b’d) X 0 X X ab cd