Lecture 4: Four Input K-Maps

Similar documents
CSE 140: Components and Design Techniques for Digital Systems

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Unit 2 Session - 6 Combinational Logic Circuits

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

CHAPTER 5 KARNAUGH MAPS

Advanced Digital Design with the Verilog HDL, Second Edition Michael D. Ciletti Prentice Hall, Pearson Education, 2011

Lecture 7: Karnaugh Map, Don t Cares

Karnaugh Maps Objectives

COM111 Introduction to Computer Engineering (Fall ) NOTES 6 -- page 1 of 12

CHAPTER III BOOLEAN ALGEBRA

Digital Logic Design. Combinational Logic

CHAPTER III BOOLEAN ALGEBRA

Optimizations and Tradeoffs. Combinational Logic Optimization

Midterm1 Review. Jan 24 Armita

Chapter 2 Combinational Logic Circuits

UNIT 5 KARNAUGH MAPS Spring 2011

Gate-Level Minimization

CSE 140 Lecture 11 Standard Combinational Modules. CK Cheng and Diba Mirza CSE Dept. UC San Diego

ELC224C. Karnaugh Maps

Digital Circuit And Logic Design I. Lecture 4

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

Karnaugh Map & Boolean Expression Simplification

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

This form sometimes used in logic circuit, example:

Simplifying Logic Circuits with Karnaugh Maps

DIGITAL ELECTRONICS & it0203 Semester 3

PI = { a.b.c, ac d, b cd, ab d, bd} cd

CSE 140, Lecture 2 Combinational Logic CK Cheng CSE Dept. UC San Diego

Karnaugh Maps (K-Maps)

Unit 6. Quine-McClusky Method. Unit 6 1

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Administrative Notes. Chapter 2 <9>

211: Computer Architecture Summer 2016

WEEK 3.1 MORE ON KARNAUGH MAPS

Introduction to Karnaugh Maps

Chap 2. Combinational Logic Circuits

Karnaugh Maps ف ر آ ا د : ا ا ب ا م آ ه ا ن ر ا

Logic Simplification. Boolean Simplification Example. Applying Boolean Identities F = A B C + A B C + A BC + ABC. Karnaugh Maps 2/10/2009 COMP370 1

Chapter 2 Combinational Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Number System conversions

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Logical Design of Digital Systems

Lecture 8: Sequential Networks and Finite State Machines

Logic Design I (17.341) Fall Lecture Outline

CSE 140 Midterm I - Solution

ENG2410 Digital Design Combinational Logic Circuits

Week-I. Combinational Logic & Circuits

Chapter 2 Boolean Algebra and Logic Gates

Chapter 4 Optimized Implementation of Logic Functions

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

CPE100: Digital Logic Design I

Fundamental Algorithms for System Modeling, Analysis, and Optimization

L2: Combinational Logic Design (Construction and Boolean Algebra)

Systems I: Computer Organization and Architecture

K-map Definitions. abc

Solutions to Assignment No 5 Digital Techniques Fall 2007

Logic Synthesis and Verification

Karnaugh Maps for Combinatorial Logic CS 64: Computer Organization and Design Logic Lecture #12

Review Getting the truth table

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

T02 Tutorial Slides for Week 6

Minimization techniques

Quine-McCluskey (Tabular) Minimization

MODULAR CIRCUITS CHAPTER 7

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

ELEC Digital Logic Circuits Fall 2014 Logic Minimization (Chapter 3)

REPRESENTATION AND MINIMIZATION OF BOOLEAN FUNCTIONS. Part II Minimization of Boolean Functions.

Minimierung. Wintersemester 2018/19. Folien basierend auf Material von F. Vahid und S. Werner Vorlesender: Dr. Ing.

Chapter 2. Digital Logic Basics

Boolean Algebra and Logic Design (Class 2.2 1/24/2013) CSE 2441 Introduction to Digital Logic Spring 2013 Instructor Bill Carroll, Professor of CSE

Combinational Logic Fundamentals

Combinational Logic Circuits Part II -Theoretical Foundations

Combinatorial Logic Design Principles

Binary logic consists of binary variables and logical operations. The variables are

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 2

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

14:332:231 DIGITAL LOGIC DESIGN. Combinational Circuit Synthesis

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Philadelphia University Student Name: Student Number:

Digital Logic Circuits - Switching Algebra - Combinational Circuits -

Chapter 2 Combinational Logic Circuits

Multilevel Logic Synthesis Algebraic Methods

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

ELEC Digital Logic Circuits Fall 2015 Logic Minimization (Chapter 3)

Lecture (02) NAND and NOR Gates

Slides for Lecture 16

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

CMSC 313 Preview Slides

Combinational Logic. Review of Combinational Logic 1

for Digital Systems Simplification of logic functions Tajana Simunic Rosing Sources: TSR, Katz, Boriello & Vahid

CPE100: Digital Logic Design I

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

CHAPTER 3 BOOLEAN ALGEBRA

Standard Expression Forms

Transcription:

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

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

4-input K-map A B C D AB CD 3

4-input K-map A B C D AB CD 4

4-input K-map Identify adjacent cells containing s What happens when we combine these cells? CD AB 5

Boolean Expression K-Map Variable x i and its compliment x i Product term P (Πx i * e.g. b c ) Two half planes Rx i, and Rx i Intersect of Rx i * for all i in P e.g. Rb intersect Rc Each minterm One element cell Two minterms are adjacent iff they differ by one and The two cells are only one variable, eg: neighbors abc d, abc d Each minterm has n adjacent minterms Each cell has n neighbors 6

Procedure for finding the minimal function via K-maps (layman terms). Convert truth table to K-map 2. Group adjacent ones: In doing so include the largest number of adjacent ones (Prime Implicants) CD AB 3. Create new groups to cover all ones in the map: create a new group only to include at least once cell (of value ) 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) 7

Reading the reduced K-map CD AB = AC + ABD + ABC + BD 8

Definitions: implicant, prime implicant, essential prime implicant 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. 9

Definition: Prime Implicant. 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? CD AB A. es B. No

Definition: Prime Implicant. 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? CD AB A. es B. No

Definition: Prime Implicant. 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. CD AB Q: How about this one? Is it a prime implicant? A. es B. No 2

Definition: Prime Implicant. 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. CD AB Q: Is the red group a prime implicant? A. es B. No: Because it is covered by a larger group 3

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. AB CD Q: Is the blue group an essential prime? A. es B. No 4

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. AB CD Q: Is the blue group an essential prime? A. es B. No 5

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

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

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

K-maps with Don t Cares A B C D AB CD 9

K-maps with Don t Cares A B C D AB CD 2

K-maps with Don t Cares A B C D AB CD = A + BD + C 2

Reducing Canonical expressions Given F(a,b,c,d) = Σm (,, 2, 8, 4) D(a,b,c,d) = Σm (9, ). Draw K-map ab cd 22

Reducing Canonical Expressions Given F(a,b,c,d) = Σm (,, 2, 8, 4) D(a,b,c,d) = Σm (9, ). Draw K-map ab cd 4 2 8 5 3 9 3 7 5 2 6 4 23

Reducing Canonical Expressions Given F(a,b,c,d) = Σm (,, 2, 8, 4) D(a,b,c,d) = Σm (9, ). Draw K-map ab cd 4 2 8 5 3 9 3 7 5 2 6 4 24

. Draw K-map 2. Identify Prime implicants 3. Identify Essential Primes Reducing Canonical Expressions ab cd 4 2 8 5 3 9 3 7 5 2 6 4 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) 25

Reducing Canonical Expressions. Prime implicants: Σm (,, 8, 9), Σm (, 2, 8, ), Σm (, 4) 2. Essential Primes: Σm (,, 8, 9), Σm (, 2, 8, ), Σm (, 4) ab cd 4 2 8 5 3 9 3 7 5 2 6 4 PI Q: Do the E-primes cover the entire on set? A. es B. No 26

Reducing Canonical Expressions. Prime implicants: Σm (,, 8, 9), Σm (, 2, 8, ), Σm (, 4) 2. Essential Primes: Σm (,, 8, 9), Σm (, 2, 8, ), Σm (, 4) 3. Min exp: Σ (Essential Primes)=Σm (,, 8, 9) + Σm (, 2, 8, ) + Σm (, 4) f(a,b,c,d) =? ab cd 4 2 8 5 3 9 3 7 5 2 6 4 PI Q: Do the E-primes cover the entire on set? A. es B. No 27

Reducing Canonical Expressions. Prime implicants: Σm (,, 8, 9), Σm (, 2, 8, ), Σm (, 4) 2. Essential Primes: Σm (,, 8, 9), Σm (, 2, 8, ), Σm (, 4) 3. Min exp: Σ (Essential Primes)=Σm (,, 8, 9) + Σm (, 2, 8, ) + Σm (, 4) f(a,b,c,d) = b c + b d + acd ab cd 4 2 8 5 3 9 3 7 5 2 6 4 PI Q: Do the E-primes cover the entire on set? A. es B. No 28

Another example Given F(a,b,c,d) = Σm (, 3, 4, 4, 5) D(a,b,c,d) = Σm (,, 3).Draw the K-Map ab cd 29

Another example Given F(a,b,c,d) = Σm (, 3, 4, 4, 5) D(a,b,c,d) = Σm (,, 3) ab cd 4 2 8 5 3 9 3 7 5 2 6 4 3

Reducing Canonical Expressions. Prime implicants: Σm (, 4), Σm (, ), Σm (, 3), Σm (3, ), Σm (4, 5), Σm (, 5), Σm (3, 5) 2. Essential Primes: Σm (, 4), Σm (4, 5) ab cd 4 2 8 5 3 9 3 7 5 2 6 4 3

Reducing Canonical Expressions. Prime implicants: Σm (, 4), Σm (, ), Σm (, 3), Σm (3, ), Σm (4, 5), Σm (, 5), Σm (3, 5) 2.Essential Primes: Σm (, 4), Σm (4, 5) 3.Min exp: Σm (, 4), Σm (4, 5), (Σm (3, ) or Σm (,3) ) f(a,b,c,d) = a c d + abc+ b cd (or a b d) ab cd 4 2 8 5 3 9 3 7 5 2 6 4 32

Reading [Harris] Chapter 2, 2.7 33