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

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
2 Casa 15m Perspectiva Lateral Izquierda.
1 A B C
Variations of the Turing Machine
AP STUDY SESSION 2.
1
Slide 1Fig 25-CO, p.762. Slide 2Fig 25-1, p.765 Slide 3Fig 25-2, p.765.
Slide 1Fig 39-CO, p Slide 2Fig 39-1, p.1246.
Select from the most commonly used minutes below.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
David Burdett May 11, 2004 Package Binding for WS CDL.
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
Create an Application Title 1Y - Youth Chapter 5.
CALENDAR.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt BlendsDigraphsShort.
CHAPTER 18 The Ankle and Lower Leg
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
The 5S numbers game..
Media-Monitoring Final Report April - May 2010 News.
Break Time Remaining 10:00.
Factoring Quadratics — ax² + bx + c Topic
Turing Machines.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
PP Test Review Sections 6-1 to 6-6
MM4A6c: Apply the law of sines and the law of cosines.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
Regression with Panel Data
K ONTRAK PERKULIAHAN I Made Gatot K, ST. MT 1. PENILAIAN Kehadiran min 75 % : 5 % Tugas: 20 % Diskusi / Presentasi: 20 % UTS: 25 % UAS: 30 % TOTAL: 100%
1 The Royal Doulton Company The Royal Doulton Company is an English company producing tableware and collectables, dating to Operating originally.
Operating Systems Operating Systems - Winter 2010 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
TESOL International Convention Presentation- ESL Instruction: Developing Your Skills to Become a Master Conductor by Beth Clifton Crumpler by.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Biology 2 Plant Kingdom Identification Test Review.
1..
Adding Up In Chunks.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Artificial Intelligence
Karnaugh Maps ECEn/CS 224.
Before Between After.
Slide R - 1 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Prentice Hall Active Learning Lecture Slides For use with Classroom Response.
Subtraction: Adding UP
: 3 00.
5 minutes.
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Speak Up for Safety Dr. Susan Strauss Harassment & Bullying Consultant November 9, 2012.
1 Titre de la diapositive SDMO Industries – Training Département MICS KERYS 09- MICS KERYS – WEBSITE.
Essential Cell Biology
Converting a Fraction to %
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Clock will move after 1 minute
famous photographer Ara Guler famous photographer ARA GULER.
PSSA Preparation.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 11 Simple Linear Regression.
Essential Cell Biology
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Copyright Tim Morris/St Stephen's School
1.step PMIT start + initial project data input Concept Concept.
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
CS 140 Lecture 4 Professor CK Cheng Tuesday 5/08/02.
CS 140 Lecture 4 Combinational Logic: K-Map Professor CK Cheng CSE Dept. UC San Diego 1.
CSE 140 Lecture 4 Combinational Logic: K-Map
Presentation transcript:

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

Example Given F =  m (3, 5), D =  m (0, 4) b c a Primes:  m (3),  m (4, 5) Essential Primes:  m (3),  m (4, 5) Min exp: f(a,b,c) = a’bc + ab’ 2

Boolean Expression K-Map Variable x i and its compliment x i ’  Two half planes Rx i, and Rx i ’ Product term P (  x i * e.g. b’c’)  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 only one variable, eg: abc’d, abc’d’  The two cells are neighbors Each minterm has n adjacent minterms  Each cell has n neighbors 3

ProcedureInput: Two sets of F R D 1)Draw K-map. 2)Expand all terms in F to their largest sizes (prime implicants). 3)Choose the essential prime implicants. 4)Try all combinations to find the minimal sum of products. (This is the most difficult step) 4

Example Given F =  m (0, 1, 2, 8, 14) D =  m (9, 10) 1. Draw K-map b c a d

2. Prime Implicants: Largest rectangles that intersect On Set but not Off Set that correspond to product terms.  m (0, 1, 8, 9),  m (0, 2, 8, 10),  m (10, 14) 3. Essential Primes: Prime implicants covering elements in F that are not covered by any other primes.  m (0, 1, 8, 9),  m (0, 2, 8, 10),  m (10, 14) 4. Min exp:  m (0, 1, 8, 9) +  m (0, 2, 8, 10) +  m (10, 14) f(a,b,c,d) = b’c’ + b’d’+ acd’ 6

Another example Given F =  m (0, 3, 4, 14, 15) D =  m (1, 11, 13) 1. Draw K-map b c a d

2. Prime Implicants: Largest rectangles that intersect On Set but not Off Set that correspond to product terms. E.g.  m (0, 4),  m (0, 1),  m (1, 3),  m (3, 11),  m (14, 15),  m (11, 15),  m (13, 15) 3. Essential Primes: Prime implicants covering elements in F that are not covered by any other primes. E.g.  m (0, 4),  m (14, 15) 4. Min exp:  m (0, 4),  m (14, 15), (  m (3, 11) or  m (1,3) ) f(a,b,c,d) = a’c’d’+ abc+ b’cd (or a’b’d) 8

Five variable K-map c d b e c d b e a Neighbors of m 5 are: minterms 1, 4, 7, 13, and 21 Neighbors of m 10 are: minterms 2, 8, 11, 14, and 26 9

Six variable K-map d e c f d e c d e c f d e c b a f f

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. Implicate: A sum term that has non-empty intersection with off-set R and does not intersect with on-set F. Prime Implicate: An implicate that is not covered by any other implicate. Essential Prime Implicate: A prime implicate that has an element in off-set R but this element is not covered by any other prime implicates. 11

Min product of sums Given F =  m (3, 5), D =  m (0, 4) b c a Prime Implicates:  M (0,1),  M (0,2,4,6),  M (6,7) Essential Primes Implicates:  M (0,1),  M (0,2,4,6),  M (6,7) Min exp: f(a,b,c) = (a+b)(c )(a’+b’) 12

Corresponding Circuit a b a’ b’ c f(a,b,c,d) 13

Quiz 14 Given F =  m (0, 6), D =  m (2, 7), 1.Fill the Karnaugh map. 2.Identify all prime implicates 3.Identify all essential primes. 4.Find a minimal expression in product of sums format.

Another min product of sums example Given R =  m (3, 11, 12, 13, 14) D =  m (4, 8, 10) K-map b c a d

Prime Implicates:  M (3,11),  M (12,13),  M(10,11),  M (4,12),  M (8,10,12,14) Essential Primes:  M (8,10,12,14),  M (3,11),  M(12,13) Exercise: Derive f(a,b,c,d) in minimal product of sums expression. 16

17 Summary Karnaugh Maps: Two dimensional truth table which mimics an n-variable cube with imaginary adjacency. Theme: Relation between Boolean algebra and Karnaugh maps. Key words: Primes, Essential Primes Goal: Minimal expression in the format of sum-of-products or product-of-sums.