Key Observation Adjacencies in the K-Map

Slides:



Advertisements
Similar presentations
Digital Logic Design Gate-Level Minimization
Advertisements

ECE C03 Lecture 31 Lecture 3 Two-Level Logic Minimization Algorithms Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Quine-McCluskey (Tabular) Minimization  Two step process utilizing tabular listings to:  Identify prime implicants (implicant tables)  Identify minimal.
Gate-level Minimization
بهينه سازي با روش Quine-McCluskey
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
بهينه سازي با نقشة کارنو
Chapter 3 Simplification of Switching Functions
CHAPTER 3 Digital Logic Structures
Give qualifications of instructors: DAP
Gate Logic: Two Level Canonical Forms
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
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.
4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When.
Design of Two-Level Multiple-Output Networks
CS 140 Lecture 6 Professor CK Cheng UC San Diego.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Introduction Gate-level minimization refers to the design task of finding an optimal gate-level implementation of Boolean functions describing a digital.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Chapter 2: Boolean Algebra and Logic Functions
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
1 Simplification of Boolean Functions:  An implementation of a Boolean Function requires the use of logic gates.  A smaller number of gates, with each.
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
Quine-McCluskey (Tabular) Minimization Two step process utilizing tabular listings to: Identify prime implicants (implicant tables) Identify minimal PI.
Two-Level Simplification Approaches Algebraic Simplification: - algorithm/systematic procedure is not always possible - No method for knowing when the.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
Chapter 3 Gate-Level Minimization
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
UM EECS 270 Spring 2011 – Taken from Dr.Karem Sakallah Logic Synthesis: From Specs to Circuits Implementation Styles –Random –Regular Optimization Criteria.
Two Level Networks. Two-Level Networks Slide 2 SOPs A function has, in general many SOPs Functions can be simplified using Boolean algebra Compare the.
Chapter 6 Quine-McCluskey Method Mei Yang ECG Logic Design 1.
2-1 Introduction Gate Logic: Two-Level Simplification Design Example: Two Bit Comparator Block Diagram and Truth Table A 4-Variable K-map for each of the.
ECE2030 Introduction to Computer Engineering Lecture 8: Quine-McCluskey Method Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 5: Quine-McCluskey Method José Nelson Amaral.
Gate-Level Minimization
1 ECE2030 Introduction to Computer Engineering Lecture 8: Quine-McCluskey Method Prof. Hsien-Hsin Sean Lee School of ECE Georgia Institute of Technology.
1 Quine-McCluskey Method. 2 Motivation Karnaugh maps are very effective for the minimization of expressions with up to 5 or 6 inputs. However they are.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
LOGIC GATES & BOOLEAN ALGEBRA
Unit 1 Minimization Techniques and Logic Gates. Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
ENG241 Digital Design Week #2 Combinational Logic Circuits.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
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
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).
State university of New York at New Paltz Electrical and Computer Engineering Department Logic Synthesis Optimization Lect10: Two-level Logic Minimization.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
©2010 Cengage Learning SLIDES FOR CHAPTER 6 QUINE-McCLUSKEY METHOD Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
Technical Seminar II Implementation of
CHAPTER 3 Simplification of Boolean Functions
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
Plotting functions not in canonical form
CS 352 Introduction to Logic Design
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Chapter 3 Gate-level Minimization.
Computer Architecture
Presentation transcript:

Key Observation Adjacencies in the K-Map 011 111 BC A 00 01 11 10 010 110 000 010 1 10 100 B 001 1 001 01 1 1 101 101 C C 000 100 A Any two adjacant cells in the K-map differ in exactly one variable. The uniting theorem can be applied when adjacent cells contain (function =1) to eliminat the changing variable.

Design Examples Two Bit Comparator Truth Table Block Diagram Design Steps: 1- Simplify to reduce cost (three 4-variable K-maps, one for each output) 2- Implement using a suitable design style (e.g. 2-level AND-OR, NAND-NAND, or multilevel techniques)

Design Examples Two Bit Comparator (continued) F1 = A' B' C' D' + A' B C' D + A B C D + A B' C D' F2 = A' B' D + A' C F3 = B C' D' + A C' + A B D' f1 = AC(BD+bd) + ac(bd+BD) = (AC+ac) (bd+BD) = (a c) (b d)

Design Examples Two-Bit Adder Truth Table Block Diagram

Design Example Two-Bit Adder (Continued) X = A C + B C D + A B D 00 01 11 10 1 C CD A D B K-map for X AB 00 01 11 10 1 C CD A D B K-map for Y AB 00 01 11 10 1 C CD A D B K-map for Z X = A C + B C D + A B D Z = B D' + B' D = B xor D Y = A' B' C + A B' C' + A' B C' D + A' B C D' + A B C' D' + A B C D

5-Variable K-Maps Constructed from two 4-variable K-Maps. A = 0 A = 1 100 101 111 110 B C ABC 000 001 011 010 00 01 11 10 D DE E 1 f = bCDE + Bd C 100 101 111 110 B ABC 000 001 011 010 00 01 11 10 D DE 1 E g = ABe + Bce + bE

ƒ(A,B,C,D,E) = C E + A B' E + B C' D' E' + A' C' D E' 5-Variable K-Maps Another View ƒ(A,B,C,D,E) = Sm(2,5,7,8,10,13,15,17,19,21,23,24,29 31) ƒ(A,B,C,D,E) = C E + A B' E + B C' D' E' + A' C' D E'

6-Variable K-Maps ƒ(A,B,C,D,E,F) = Sm(2,8,10,18,24, 26,34,37,42,45,50, 53,58,61)

6-Variable K-Maps ƒ(A,B,C,D,E,F) = Sm(2,8,10,18,24, 26,34,37,42,45,50, 53,58,61) = D' E F' + A D E' F + A' C D' F'

Definitions Implicant: Single 1 entry or any group of 1’s that can be combined together in a K-map to form a product term. (Dual): Single 0 entry or any group of 0’s that can be combined together in a K-map to form a sum term. Prime Implicant: an implicant that cannot be combined with another implicant to eliminate a term Essential Prime Implicant: a prime implicant that contains a 1 entry not covered by any other implicant. Example C CD 6 Prime Implicants: AB 00 01 11 10 A' B C’ , C D, A‘ D , B C' D’ , A C , AB D' 00 1 1 01 1 1 1 B essential 11 1 1 1 A Minimum cover = A’ D + A C + B C ‘ D ’ 10 1 1 D

Definitions Implicant: Single 1 entry or any group of 1’s that can be combined together in a K-map to form a product term. (Dual): Single 0 entry or any group of 0’s that can be combined together in a K-map to form a sum term. Prime Implicant: an implicant that cannot be combined with another implicant to eliminate a term Essential Prime Implicant: a prime implicant that contains a 1 entry not covered by any other implicant. Example C CD AB 00 01 11 10 00 1 1 01 1 1 1 B 11 1 1 1 A 10 1 1 D

Illustrating the Definitions Prime Implicants: B D, C D, A C, B' C essential Essential primes form the minimum cover 5 Prime Implicants: B D, A B C', A C D, A' B C, A' C' D essential Essential implicants form minimum cover

Try the other axis Illustrating the Definitions Prime Implicants: CD Prime Implicants: 00 01 11 10 AB A D’, AB, A C, BD 00 01 1 1 essential B 11 1 1 1 1 Essential primes form the minimum cover A 10 1 1 1 D Try the other axis 5 Prime Implicants: B D, A B C', A C D, A' B C, A' C' D essential Essential implicants form minimum cover

Quine-McCluskey (Tabular) Method systematically finds all prime implicants Example: Simplify ƒ(A,B,C,D) = Sm(4,5,6,8,9,10,13) + Sd(0,7,15) Implication Table Column I 0000 0100 1000 0101 0110 1001 1010 0111 1101 1111 Step 1: List minterms and don’t cares using their binary representation, and group according to number of 1’s Principle: Combine terms in adjacent groups which differ in a single variable, and eliminate the changing variable. Remarks: Only terms in adjacent groups have to be compared with one another. Terms in non-adjacent groups differ in more than one variable. Thus can not be combined

Q & M Method ƒ(A,B,C,D) = Sm(4,5,6,8,9,10,13) + Sd(0,7,15) Step 2: Compare elements of a group with k 1's against those with k+1 1's. If they differ by one bit, eliminate changing variable and place reduced term in next column. E.g., 0000 vs. 0100 yields 0-00 0000 vs. 1000 yields -000 Implication Table Column I Column II 0000 ¦ 0-00 -000 0100 ¦ 1000 ¦ 010- 01-0 0101 ¦ 100- 0110 ¦ 10-0 1001 ¦ 1010 ¦ 01-1 -101 0111 ¦ 011- 1101 ¦ 1-01 1111 ¦ -111 11-1 When a term is used in a combination, mark that term with a check. If cannot be combined, mark term with a star. These are the prime implicants.

Q & M Method Step 2 Continues: Compare elements of a group in Col. II with k 1's against those with k+1 1's. If they differ by one bit, eliminate changing variable and place reduced term in next column. E.g., 010- vs. 011- yields 01- - -101 vs. -111 yields -1-1 Implication Table Column I Column II Column III 0000 ¦ 0-00 * 01-- * -000 * 0100 ¦ -1-1 * 1000 ¦ 010- ¦ 01-0 ¦ 0101 ¦ 100- * 0110 ¦ 10-0 * 1001 ¦ 1010 ¦ 01-1 ¦ -101 ¦ 0111 ¦ 011- ¦ 1101 ¦ 1-01 * 1111 ¦ -111 ¦ 11-1 ¦

Q & M - Prime Implicant Chart x x x x 5,7,13,15 (-1-1) 4,5,6,7(01--) 9,13(1-01) 8,10(10-0) 8,9(10-0) 0,8(-000) 0,4(0-00) 5,7,13,15 (-1-1) 4,5,6,7(01--) 9,13(1-01) 8,10(10-0) 8,9(10-0) 0,8(-000) 0,4(0-00) x x x x x x x x x x x x x x 4 5 6 8 9 10 13 4 5 6 8 9 10 13 rows = prime implicants columns = minterms place an "X" if minterm is covered by the prime implicant If column has a single X, than the implicant associated with that row is essential. It must appear in minimum cover

Review Gate Logic NOT AND OR Description If X = 0 then ' = 1 = 1 then ' = 0 T ruth T able Switches X 1 X 1 T rue NOT X False X Description Truth Table Switches Z = 1 if X and Y X Y Z false are both 1 AND 1 X • Y 1 true 1 1 1 X Y Description Z = 1 if X or Y (or both) are 1 T ruth T able Switches X 1 Y 1 Z 1 False X + Y OR T rue X Y

Example : Logic circuit & its Switch realization s = a (d+w)(c’+ e’) c e d w a s Gate realization a e’ c’ d w 1 s Switch realization

Logic Functions: NAND NAND AND Description Z = 1 if X is 0 or Y T ruth T able Switches X 1 Y 1 Z 1 T rue NAND X • Y False X Y Description Truth Table Switches Z = 1 if X and Y X Y Z false AND are both 1 1 X • Y 1 true 1 1 1 X Y Note that switch circuit of the NAND gate is the complement of the switch circuit for the AND gate.

Logic Functions: NAND, NOR, XOR, XNOR Description Z = 1 if both X and Y are 0 T ruth T able Switches NOR X 1 Y 1 Z 1 T rue X + Y False X Y Description Z = 1 if X or Y (or both) are 1 T ruth T able Switches X 1 Y 1 Z 1 False OR X + Y T rue X Y Note that switch circuit of the NOR gate is the complement of the switch circuit for the OR gate.