ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 8 Minimization with Karnaugh.

Slides:



Advertisements
Similar presentations
Techniques for Combinational Logic Optimization
Advertisements

Prof. Sin-Min Lee Department of Computer Science
ECE 238L Computer Logic Design Spring 2010
Boolean Algebra and Reduction Techniques
Chapter 3 Simplification of Switching Functions. Karnaugh Maps (K-Map) A K-Map is a graphical representation of a logic function’s truth table.
Gate-level Minimization
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
ECE 301 – Digital Electronics Karnaugh Maps (Lecture #7) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 6 Dr. Shi Dept. of Electrical and Computer Engineering.
1 CS 20 Lecture 14 Karnaugh Maps Professor CK Cheng CSE Dept. UC San Diego.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
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.
Computer Engineering (Logic Circuits) (Karnaugh Map)
CS 151 Digital Systems Design Lecture 8 Minimization with Karnaugh Maps.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Simplifying Boolean Expressions Using K-Map Method
Lecture 3: Incompletely Specified Functions and K Maps CSE 140: Components and Design Techniques for Digital Systems Fall 2014 CK Cheng Dept. of Computer.
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
Lecture 4 Logic gates and truth tables Implementing logic functions
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
K-map Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Department of Computer Engineering
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
1 Digital Logic Design Week 5 Simplifying logic expressions.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
Gate-level Minimization
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
LOGIC GATES & BOOLEAN ALGEBRA
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
 Seattle Pacific University EE Logic System DesignKMaps-1 Two-Level Simplification All Boolean expressions can be represented in two- level forms.
CSE 140: Components and Design Techniques for Digital Systems Lecture 3: Incompletely Specified Functions and K Maps CK Cheng Dept. of Computer Science.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 4: Cost of Logic Circuits and Karnaugh Maps José Nelson Amaral.
Karnaugh Maps (K maps).
Chapter 4 OPTIMIZED IMPLEMENTATION OF LOGIC FUNCTIONS.
K-map Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 7 – Karnaugh Maps.
Karnaugh Map. Simplifying Digital Circuits Reconsider the 1-bit full adder. The carry bit is But we can implement the function with a much simpler circuit:
1 EENG 2710 Chapter 3 Simplification of Switching Functions.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
CHAPTER 3 Simplification of Boolean Functions
Lecture 3: Incompletely Specified Functions and K Maps
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Prof. Sin-Min Lee Department of Computer Science
Karnaugh Maps.
Optimized Implementation of Logic Function
Lecture 3: Incompletely Specified Functions and K Maps
Optimized Implementation of Logic Function
CSE 370 – Winter 2002 – Logic minimization - 1
ECE 331 – Digital System Design
ECE 331 – Digital System Design
Lecture 6 Logistics Last lecture Today’s lecture
Lecture 7 Logistics Last lecture Today HW2 due now Lab2 going on
ECE 331 – Digital System Design
Lecture 6 Karnaugh maps (K-maps) K-maps with “don’t cares”
Karnaugh map Karnaugh map allows viewing the function in a picture form Map is arranged such that two neighbors differ in only one variable It is easy.
Optimized Implementation of Logic Function
Overview Part 2 – Circuit Optimization
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Karnaugh Maps (K maps).
Karnaugh Maps (K-Maps)
Lecture 7 Logistics Last lecture Today HW2 due now Lab2 going on
Dept of Electronics Engineering
Lecture 3: Incompletely Specified Functions and K Maps
Circuit Simplification and
Presentation transcript:

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 8 Minimization with Karnaugh Maps

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Overview °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions °Easy conversion from truth table to K-map to minimized SOP representation. °Simple rules (steps) used to perform minimization °Leads to minimized SOP representation. Much faster and more more efficient than previous minimization techniques with Boolean algebra.

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 xyF xyF Karnaugh maps °Alternate way of representing Boolean function All rows of truth table represented with a square Each square represents a minterm °Easy to convert between truth table, K-map, and SOP Unoptimized form: number of 1’s in K-map equals number of minterms (products) in SOP Optimized form: reduced number of minterms 01 y x y x 0 1 x’y’ xy’xy x’y x y F = Σ(m 0,m 1 ) = x’y + x’y’

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Karnaugh Maps °A Karnaugh map is a graphical tool for assisting in the general simplification procedure. °Two variable maps. 0 A 10 1 B F=AB +A ’ B 0 A 11 1 B °Three variable maps. 0 A BC F=AB’C’ +A B C + ABC +A BC + A’B’C + A’BC’ F=AB + AB + AB AB C F

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Rules for K-Maps  We can reduce functions by circling 1’s in the K-map  Each circle represents minterm reduction  Following circling, we can deduce minimized and-or form. Rules to consider Ê Every cell containing a 1 must be included at least once. Ë The largest possible “power of 2 rectangle” must be enclosed. Ì The 1’s must be enclosed in the smallest possible number of rectangles. Example

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Karnaugh Maps °A Karnaugh map is a graphical tool for assisting in the general simplification procedure. °Two variable maps. 0 A 10 1 B F=AB +A ’ B 0 A 11 1 B F=A + B °Three variable maps. F=A + B C + BC 0 A BC F=AB + AB + AB F=AB’C’ +A B C + ABC +A BC + A’B’C + A’BC’

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Karnaugh maps °Numbering scheme based on Gray–code e.g., 00, 01, 11, 10 Only a single bit changes in code for adjacent map cells This is necessary to observe the variable transitions 0001 AB C C B A F(A,B,C) =  m(0,4,5,7) G(A,B,C) = 0011 C B A C B A A = AC + B’C’

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 More Karnaugh Map Examples °Examples g = b' a b c ab a b c ab f = a cout = ab + bc + ac f = a 1. Circle the largest groups possible. 2. Group dimensions must be a power of Remember what circling means!

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A ABCinSCout S = A’B’Cin + A’BCin’ + A’BCin + ABCin Cout = A’BCin + A B’Cin + ABCin’ + ABCin = A’BCin + ABCin + AB’Cin + ABCin + ABCin’ + ABCin = BCin + ACin + AB = (A’ + A)BCin + (B’ + B)ACin + (Cin’ + Cin)AB = 1·BCin + 1· ACin + 1· AB How to use a Karnaugh Map instead of the Algebraic simplification?

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for Cout Now we have to cover all the 1s in the Karnaugh Map using the largest rectangles and as few rectangles as we can. A B Cin

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 A B Cin Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for Cout Now we have to cover all the 1s in the Karnaugh Map using the largest rectangles and as few rectangles as we can. Cout = ACin

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 A B Cin Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for Cout Now we have to cover all the 1s in the Karnaugh Map using the largest rectangles and as few rectangles as we can. Cout = Acin + AB

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 A B Cin Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for Cout Now we have to cover all the 1s in the Karnaugh Map using the largest rectangles and as few rectangles as we can. Cout = ACin + AB + BCin

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 A B Cin Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for S S = A’BCin’

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 A B Cin Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for S S = A’BCin’ + A’B’Cin

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 A B Cin Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for S S = A’BCin’ + A’B’Cin + ABCin

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 A B Cin Application of Karnaugh Maps: The One-bit Adder Adder Cin Cout S B A Karnaugh Map for S S = A’BCin’ + A’B’Cin + ABCin + AB’Cin’ No Possible Reduction! Can you draw the circuit diagrams?

ENGIN112 L8: Minimization with Karnaugh Maps September 19, 2003 Summary °Karnaugh map allows us to represent functions with new notation °Representation allows for logic reduction. Implement same function with less logic °Each square represents one minterm °Each circle leads to one product term °Not all functions can be reduced °Each circle represents an application of: Distributive rule -- x(y + z) = xy + xz Complement rule – x + x’ = 1