UNIT 5 KARNAUGH MAPS Spring 2011

Similar documents
CHAPTER 5 KARNAUGH MAPS

Logic Design I (17.341) Fall Lecture Outline

Karnaugh Maps Objectives

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

ELC224C. Karnaugh Maps

Lecture 7: Karnaugh Map, Don t Cares

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

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

Unit 2 Session - 6 Combinational Logic Circuits

Optimizations and Tradeoffs. Combinational Logic Optimization

This form sometimes used in logic circuit, example:

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

DIGITAL ELECTRONICS & it0203 Semester 3

Gate-Level Minimization

CHAPTER III BOOLEAN ALGEBRA

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

CHAPTER III BOOLEAN ALGEBRA

Lecture 5. Karnaugh-Map

ENG2410 Digital Design Combinational Logic Circuits

Midterm1 Review. Jan 24 Armita

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

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

UNIT 3 BOOLEAN ALGEBRA (CONT D)

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

Chapter 2 Combinational Logic Circuits

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

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

Karnaugh Map & Boolean Expression Simplification

CHAPTER 3 BOOLEAN ALGEBRA

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

Digital Logic Design. Combinational Logic

211: Computer Architecture Summer 2016

Number System conversions

Chap 2. Combinational Logic Circuits

Chapter 3. Boolean Algebra. (continued)

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

MC9211 Computer Organization

Week-I. Combinational Logic & Circuits

Unit 6. Quine-McClusky Method. Unit 6 1

Minimization techniques

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

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

Chapter 2 Combinational Logic Circuits

Combinational Logic Fundamentals

Quine-McCluskey (Tabular) Minimization

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Karnaugh Maps (K-Maps)

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Unit 2 Boolean Algebra

Digital Circuit And Logic Design I. Lecture 4

Standard Expression Forms

Signals and Systems Digital Logic System

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Unit 2 Boolean Algebra

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

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

1. Expand each of the following functions into a canonical sum-of-products expression.

CHAPTER 7. Exercises 17/ / /2 2 0

Introduction to Digital Logic Missouri S&T University CPE 2210 Karnaugh Maps

Chapter 2 Combinational Logic Circuits

Chapter 4 Optimized Implementation of Logic Functions

CMSC 313 Lecture 19 Combinational Logic Components Programmable Logic Arrays Karnaugh Maps

Review for Test 1 : Ch1 5

Combinatorial Logic Design Principles

CSE 140: Components and Design Techniques for Digital Systems

Simplifying Logic Circuits with Karnaugh Maps

Administrative Notes. Chapter 2 <9>

CPE100: Digital Logic Design I

Fundamentals of Boolean Algebra

Chapter 2 Combinational Logic Circuits

CHAPTER 2 BOOLEAN ALGEBRA

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

Chapter-2 BOOLEAN ALGEBRA

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

Spiral 1 / Unit 5. Karnaugh Maps

T9: Covering. Prove true by: Method 1: Perfect induction Method 2: Using other theorems and axioms. Number Theorem. T9 B (B+C) = B Covering

Solutions to Assignment No 5 Digital Techniques Fall 2007

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Logic Design. Chapter 2: Introduction to Logic Circuits

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

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

Chapter 2 : Boolean Algebra and Logic Gates

Working with Combinational Logic. Design example: 2x2-bit multiplier

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2 Boolean Algebra and Logic Gates

Lecture 4: Four Input K-Maps

CPE100: Digital Logic Design I

ECE 238L Boolean Algebra - Part I

14:332:231 DIGITAL LOGIC DESIGN

Reduction of Logic Equations using Karnaugh Maps

Digital Logic Circuits - Switching Algebra - Combinational Circuits -

Digital Logic Design. Malik Najmus Siraj

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

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

EE 110 Practice Problems for Exam 1: Solutions, Fall 2008

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 2 Circuit Optimization

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

Chapter 2. Digital Logic Basics

Transcription:

UNIT 5 KRNUGH MPS Spring 2

Karnaugh Maps 2 Contents Minimum forms of switching functions Two- and three-variable Four-variable Determination of minimum expressions using essential prime implicants Five-variable Other forms of Other uses of Reading Unit 5

Recap: Logic Design 3 Design a combinational logic circuit starting with a word description of the desired circuit behavior Steps:. Translate the word description into a switching function (Unit 4) Truth table Boolean expression: SOP/POS derived from minterm/maxterm expansion (Unit 4) 2. Simplify the function Boolean algebra (Units 2&3) Karnaugh map (Unit 5) Quine-McCluskey (Unit 6) etc 3. Realize it using available logic gates Minterm & maxterm expansions

Difficulties in lgebraic Simplification 4 Problems: Difficult to apply in a systematic way Difficult to tell when you have arrived at a minimum solution Minimum SOP/POS. Minimum # of terms (i.e., # of gates) 2. Minimum # of literals (i.e., # of gate inputs) Solutions: systematic methods. Karnaugh map (K-map) (Unit 5) Especially useful for 3 or 4 variables Faster and easier than other methods 2. Quine-McCluskey (Unit 6) 3. etc.

5 Two- & Three-Variable Karnaugh Maps

Two-Variable Karnaugh Maps (/2) 6 Truth table = minterm expansion = Karnaugh map Each square of the K-map corresponds to a combination of values of inputs i.e., each square = a minterm = a row in truth table Truth table Karnaugh map m i B F 2 3 a a a 2 a 3 =, B= =, B= B 'B' 'B B' B Minterm =, B= =, B= B' B B ' m m 2 m m 3

7 Two-Variable Karnaugh Maps (2/2) e.g.,. Truth table 2. K-map 3. Simplification in K-map XY'+XY = X(Y'+Y) = X m i B F 2 3 B B One circle eliminates one variable F = 'B'+'B = '(B'+B) = '

Three-Variable Karnaugh Maps 8 Minterms in adjacent squares of K-map differ in only ONE bit Combine them, XY'+XY = X(Y'+Y) = X BC BC m m 4 is adjacent to Minterm m m 5 m 3 m 7 C B m 2 m 6

Example: F(, B, C) = Σ m(, 3, 5) 9 e.g., F(, B, C) = Σ m(, 3, 5) = Π M(, 2, 4, 6, 7). Truth table 2. K-map m i B C F 2 3 4 5 6 7 BC 4 3 5 7 2 F 3. Simplification in K-map F = 'B'C + 'BC + B'C = 'C + B'C Minimum SOP form 6

Product Terms in Karnaugh Maps e.g., BC BC BC C C C B B B B ('BC + BC + 'BC' + BC' = B) BC' C'

Example: f(a, b, c) = abc' + b'c + a' e.g., f(a, b, c) = abc' + b'c + a'. Mark s 2. Make circles (simplify) a bc a bc a b'c simplify c b a' abc' f = a' + b'c + bc' X + X = X Make the circle as large as possible

The Consensus Theorem in K-Map 2 Overlapped circles imply redundant terms e.g., the consensus theorem XY + X'Z + YZ = XY + X'Z (YZ is redundant) X X X YZ X YZ X'Z YZ (consensus term) Z simplify Z Y XY Y

3 ll Solutions re Shown in Karnaugh Maps ll possible minimum SOPs can be determined from K-map # of terms and # of literals e.g., F = Σ m(,, 2, 5, 6, 7) a bc Make each circle as large as possible Select as few circles as possible to cover all minterms a bc a bc simplify. F = a'b' + bc' + ac 2. F = a'c' + b'c + ab

Summary 4 Truth table = minterm expansion = Karnaugh map Simplification in pply XY'+XY = X(Y'+Y) = X and X + X = X Minimum SOP = (min # of terms, min # of literals) Steps: (djacent squares differ in only one bit). Mark s 2. Make circles Make each circle as large as possible (# of literals) Select as few circles as possible to cover all s (# of terms) lgebraic simplification also holds in Rule : combining terms: XY + XY' = X Rule B: eliminating terms: X + XY = X; XY + X'Z + YZ = XY + X'Z Rule C: eliminating literals: X + X'Y = X + Y Rule D: adding redundant terms: XY + X'Z = XY + X'Z + YZ; X = X + XY

5 Four-Variable Karnaugh Maps

6 Four-Variable Karnaugh Maps djacent squares differ in only one bit e.g., f(a, b, c, d) = acd + a'b + d' B CD cd ab 4 2 8 C 3 5 7 3 9 5 D a'b acd d' 2 6 4 B f = acd + a'b + d' = ac + a'b + d Make the circle as large as possible

Two More Examples 7 f = Σ m(,3,4,5,,2,3) ab cd f 2 = Σ m(,2,3,5,6,7,8,,,4,5) Four corner terms ab combined into b'd' cd f = bc' + a'b'd + ab'cd' f 2 = c + b'd' + a'bd

Karnaugh Maps with Don t Cares 8 Don t cares can be assigned with s or s fter assignment, the function becomes completely specified e.g., f(a, b, c, d) = Σ m(, 3, 5, 7, 9) + Σ d(6, 2, 3) ab cd X X X f = a'd + c'd = Σ m(, 3, 5, 7, 9, 3)

Minimum POS? 9 Minimum SOP = circle s of f Minimum POS = circle s of f' Find min. SOP of f', then complement it e.g., f = x'z' + wyz + w'y'z' + x'y wx yz f' = y'z + w'xy + wxz' By DeMorgan s law, f = (y'z + w'xy + wxz)' = (y + z')(w + x' + y')(w' + x' + z)

2 Prime Implicants

Prime Implicants (/2) 2 Implicant: a product term i.e., any single or any group of s in the K-map Prime implicant (PI): an implicant that cannot be covered by other implicants i.e., a circle that cannot be enlarged any more single is a PI if not adjacent to any other s Two adjacent s form a PI if not contained in a group of 4 s cd ab a'b'd' a'b'c'd' ac' ab'c' a'b'c a'c'd' abc' Not PI PI

Prime Implicants (2/2) 22 Cover: a set of prime implicants which covers all s minimum SOP contains only prime implicants (Why?) Minimum cover = (min # of PIs, min # of literals) Don t cares are treated just like s e.g., cd ab X PI: a'b'd, bc', ac, a'c'd, ab, b'cd Min SOP:. a'b'd + bc' + ac 2. a'c'd + ab + b'cd. is better X

Essential Prime Implicants 23 Essential prime implicant: If a minterm is covered by only one PI, the PI is essential Essential PI MUST be included in minimum SOP Find essential PI s = find the s circled only once e.g., f = CD + BD + B'C + C CD B CD B m 5 Essential m 2 m 4 f = BD + B'C + C

One More General Example 24 Find minimum cover:. Find all PI s 2. Find essential PI s 3. Find a minimum set of PI s to cover the remaining s CD B CD B 4 2 8 4 2 8 5 3 9 Essential 5 3 9 3 7 5 3 7 5 2 6 4 2 f = 'C' + 'B'D' + CD + 6 4 'BD BCD

Summary 25 Minimum SOP = minimum cover = a minimum set of PI s which cover all s Minimum cover = (min # of PIs, min # of literals) Steps:. Find all PI s 2. Find essential PI s 3. Find a minimum set of PI s to cover the remaining s Recap: steps of simplification in. Mark s 2. Make circles Make each circle as large as possible = find PI Select as few circles as possible to cover all s = find min cover

26 Flowchart B CD Chooses a uncovered Find all adjacent s & X s X 4 5 8 3 9 N re the chosen and its adjacent s & X s covered by a single term? X 7 X 5 6 Y That term is an essential prime implicant. Loop it. Note: ll essential PI s have been determined at this point ll uncovered s checked? Y Find a min. set of prime implicants which cover the remaining s on the map. N stop

27 Five-Variable Karnaugh Maps

Five-Variable Karnaugh Maps 28 e.g., / DE BC These terms do not combine 6 7 9 8 2 28 24 4 2 8 2 29 25 5 3 9 23 3 27 3 7 5 22 3 26 2 6 4 These 8 terms combine into BD' These 4 terms combine into CDE These 2 terms combine into B'DE'

djacency in 5-Variable Karnaugh Maps 29 4 in the same layer, one in the other layer DE BC /

3 Other Forms of 5-Variable K-Maps

Form 3 Two maps side-by-side DE BC DE BC = = F = D'E' + B'C'D' + BCE + 'BC'E' + CDE

Form 2 32 mirror image map B E D C F = D'E' + B'C'D' + BCE + 'BC'E' + CDE C

33 Other Uses of Karnaugh Maps Many operations that can be performed using a truth table or algebraically can be done using a Karnaugh Map (Unit 5.6)