CS2100 Computer Organisation

Slides:



Advertisements
Similar presentations
Based on slides by: Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 8 – Systematic Simplification.
Advertisements

ELEC Digital Logic Circuits Fall 2008 Logic Minimization (Chapter 3) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and.
CS2100 Computer Organisation K-maps: Finding PIs and EPIs (AY2014/5) Semester 2.
Gate-level Minimization
بهينه سازي با روش Quine-McCluskey
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.
ECE 301 – Digital Electronics Karnaugh Maps and Determining a Minimal Cover (Lecture #8) The slides included herein were taken from the materials accompanying.
CS 140 Lecture 5 Professor CK Cheng CSE Dept. UC San Diego 1.
Simplifying Boolean Expressions Using K-Map Method
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.
Chapter 3 The Karnaugh Map. These K-maps are described by the location. Next, each square will be 1 or 0 depending on the value of the function. ABfm.
Optimization Algorithm
CS2100 Computer Organisation
CS1104: Computer Organisation comp. nus. edu
5 Variable K-Map.
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.
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.
Converting to Minterms Form
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.
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.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Chapter 3 The Karnaugh Map
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
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Prof. Hsien-Hsin Sean Lee
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).
Lecture 4: Four Input K-Maps CSE 140: Components and Design Techniques for Digital Systems CK Cheng Dept. of Computer Science and Engineering University.
State university of New York at New Paltz Electrical and Computer Engineering Department Logic Synthesis Optimization Lect10: Two-level Logic Minimization.
CEC 220 Digital Circuit Design Implicants Wed, Sept. 23 CEC 220 Digital Circuit Design Slide 1 of 10.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
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.
CHAPTER 6 Quine-McCluskey Method
Lecture 6 Quine-McCluskey Method
5 Variable K-Map.
Computer Organisation
Lecture #6 EGR 277 – Digital Logic
Plotting functions not in canonical form
ECE 331 – Digital System Design
ECE 331 – Digital System Design
Digital Logic & Design Dr. Waseem Ikram Lecture 12.
EECS 465: Digital Systems Lecture Notes # 2
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Optimization Algorithm
Karnaugh Maps Introduction Venn Diagrams 2-variable K-maps
Chapter 3 Gate-level Minimization.
Function Minimization Algorithms
COE 202: Digital Logic Design Combinational Logic Part 3
Overview Part 2 – Circuit Optimization
CSE 140 Lecture 4 Combinational Logic: K-Map
ECE 331 – Digital System Design
Presentation transcript:

CS2100 Computer Organisation http://www.comp.nus.edu.sg/~cs2100/ Quine-McCluskey (AY2015/6 Semester 1)

Quine-McCluskey A tabulation method similar in concept to K-map Applicable for functions with any number of variables K-map is useful for functions with at most 5 or 6 variables Tedious on paper, but can be automated (programmed) Non-examinable But knowing it may enhance your understanding of K-maps CS2100 Quine-McCluskey

PIs AND EPIs To find the simplest (minimal) SOP expression from a K-map, you need to obtain: Minimum number of literals per product term; and Minimum number of product terms. Achieved through K-map using Bigger groupings of minterms (prime implicants) where possible; and No redundant groupings (look for essential prime implicants) CS2100 Quine-McCluskey

EXAMPLE: F(A,B,C,D) = Sm(2,3,4,5,7,8,10,13,15) Step 1: List out all minterms in groups with same number of 1s in their binary codes. 1 C A 00 01 11 10 00 01 11 10 B CD AB D 1st column 2: 0010 4: 0100 8: 1000 ------------ 3: 0011 5: 0101 10: 1010 7: 0111 13: 1101 15: 1111 Codes with one 1 Codes with two 1s Codes with three 1s Codes with four 1s CS2100 Quine-McCluskey

EXAMPLE: F(A,B,C,D) = Sm(2,3,4,5,7,8,10,13,15) Step 2: Combine codes that differ by 1 bit into bigger group, write the combined code in next column. 1 C A 00 01 11 10 00 01 11 10 B CD AB D 1st column 2: 0010 4: 0100 8: 1000 ------------ 3: 0011 5: 0101 10: 1010 7: 0111 13: 1101 15: 1111 2nd column   2,3: 001- Codes with one 1  2,10: -010  4,5: 010- 8,10: 10-0 ------------------   3,7: 0-11    Codes with two 1s 5,7: 01-1   5,13: -101 ------------------    7,15: -111   Codes with three 1s 13,15: 11-1   CS2100 Quine-McCluskey

EXAMPLE: F(A,B,C,D) = Sm(2,3,4,5,7,8,10,13,15) Step 3: Repeat step 2 – Combine codes that differ by 1 bit into bigger group, write the combined code in next column. 1 C A 00 01 11 10 00 01 11 10 B CD AB D 1st column 2: 0010 4: 0100 8: 1000 ------------ 3: 0011 5: 0101 10: 1010 7: 0111 13: 1101 15: 1111 2nd column 2,3: 001- 2,10: -010 4,5: 010- 8,10: 10-0 ---------------- 3,7: 0-11 5,7: 01-1 5,13: -101 7,15: -111 13,15: 11-1 3rd column  5,7,13,15: -1-1  5,7,13,15: -1-1       We have completed Phase 1: Identifying all the Prime Implicants (PIs)!      CS2100 Quine-McCluskey

EXAMPLE: F(A,B,C,D) = Sm(2,3,4,5,7,8,10,13,15) Phase 2: Identify the Essential Prime Implicants (EPIs) Draw the PI chart 1 C A 00 01 11 10 00 01 11 10 B CD AB D 2 3 4 5 7 8 10 13 15 2,3: 001- (A'.B'.C)  2,10: -101 (B.C'.D) 4,5: 010- (A'.B.C') 8,10: 10-0 (A.B'.D') 3,7: 0-11 (A'.C.D) 5,7,13,15: -1-1 (B.D) EPI EPI EPI Where are the EPIs? Look for columns containing a single tick. EPIs are: A'.B.C', A.B'.D', and B.D But we are not done yet. There are still minterms not covered by the EPIs! CS2100 Quine-McCluskey

EXAMPLE: F(A,B,C,D) = Sm(2,3,4,5,7,8,10,13,15) Phase 2: After identifying the EPIs Draw the reduced PI chart if there are minterms not covered 1 C A 00 01 11 10 00 01 11 10 B CD AB D 2 3 4 5 7 8 10 13 15 2,3: 001- (A'.B'.C)  2,10: -101 (B.C'.D) 4,5: 010- (A'.B.C') 8,10: 10-0 (A.B'.D') 3,7: 0-11 (A'.C.D) 5,7,13,15: -1-1 (B.D) EPI EPI EPI Answer: B.D + A'.B.C' + A.B'.D' + A'.B'.C 1. Find out what are the minterms covered by the EPIs. 2. Remove the EPIs and minterms they cover from the chart  reduced PI chart. 3. Find the minimum number of remaining PIs to cover the remaining minterms. CS2100 Quine-McCluskey

END CS2100 Quine-McCluskey