Slides for Lecture 15

Similar documents
Slide Set 5. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

T02 Tutorial Slides for Week 2

ECE380 Digital Logic

CMPE223/CMSE222 Digital Logic

Combinational Logic Circuits

Combinational Logic Circuits Part III -Theoretical Foundations

ELCT201: DIGITAL LOGIC DESIGN

ENEL 353: Digital Circuits Midterm Examination

Karnaugh Map (K-Map) Karnaugh Map. Karnaugh Map Examples. Ch. 2.4 Ch. 2.5 Simplification using K-map

(Refer Slide Time 6:48)

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2. Boolean Expressions:

Chapter 3. Gate-Level Minimization. Outlines

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational

Graduate Institute of Electronics Engineering, NTU. CH5 Karnaugh Maps. Lecturer: 吳安宇教授 Date:2006/10/20 ACCESS IC LAB

Slide Set 10. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

A B AB CD Objectives:

Specifying logic functions

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

Slide Set 1. for ENEL 339 Fall 2014 Lecture Section 02. Steve Norman, PhD, PEng

DIGITAL CIRCUIT LOGIC UNIT 5: KARNAUGH MAPS (K-MAPS)

Gate Level Minimization Map Method

Chapter 2 Combinational Logic Circuits


3.4 QUINE MCCLUSKEY METHOD 73. f(a, B, C, D, E)¼AC ĒþB CD þ BCDþĀBD.

UNIT II. Circuit minimization

Digital Circuits ECS 371

Contents Slide Set 9. Final Notes on Textbook Chapter 7. Outline of Slide Set 9. More about skipped sections in Chapter 7. Outline of Slide Set 9

Slide Set 8. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

Slide Set 9. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

QUESTION BANK FOR TEST

Slide Set 2. for ENCM 335 in Fall Steve Norman, PhD, PEng

Module -7. Karnaugh Maps

Experiment 4 Boolean Functions Implementation

Simplification of Boolean Functions

Slide Set 3. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

ENGIN 112 Intro to Electrical and Computer Engineering

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

University of Technology

(Refer Slide Time 3:31)

Digital Logic Lecture 7 Gate Level Minimization

Quine-McCluskey Algorithm

Switching Circuits & Logic Design

CprE 281: Digital Logic

SEE1223: Digital Electronics

Contents. Slide Set 2. Outline of Slide Set 2. More about Pseudoinstructions. Avoid using pseudoinstructions in ENCM 369 labs

CSCI 220: Computer Architecture I Instructor: Pranava K. Jha. Simplification of Boolean Functions using a Karnaugh Map

EECS 140/141 Introduction to Digital Logic Design Fall Semester 2016 Exam #1 Date: 3 October 2016

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Synthesis 1. 1 Figures in this chapter taken from S. H. Gerez, Algorithms for VLSI Design Automation, Wiley, Typeset by FoilTEX 1

Slides for Lecture 15

Introduction to Computer Architecture

Summary. Boolean Addition

2.6 BOOLEAN FUNCTIONS

Gate-Level Minimization

CS8803: Advanced Digital Design for Embedded Hardware

MUX using Tri-State Buffers. Chapter 2 - Part 2 1

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

Slide Set 1. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Boolean Function Simplification

ECE 5745 Complex Digital ASIC Design Topic 12: Synthesis Algorithms

Optimized Implementation of Logic Functions

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

Gate-Level Minimization

Supplement to. Logic and Computer Design Fundamentals 4th Edition 1

Slide Set 1. for ENCM 339 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

DKT 122/3 DIGITAL SYSTEM 1

Slide Set 5. for ENCM 369 Winter 2014 Lecture Section 01. Steve Norman, PhD, PEng

2.1 Binary Logic and Gates

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

4 KARNAUGH MAP MINIMIZATION

Austin Herring Recitation 002 ECE 200 Project December 4, 2013

Slide Set 4. for ENCM 335 in Fall Steve Norman, PhD, PEng

(Refer Slide Time: 1:43)

Literal Cost F = BD + A B C + A C D F = BD + A B C + A BD + AB C F = (A + B)(A + D)(B + C + D )( B + C + D) L = 10

Gate Level Minimization

To write Boolean functions in their standard Min and Max terms format. To simplify Boolean expressions using Karnaugh Map.

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Digital Design. Chapter 4. Principles Of. Simplification of Boolean Functions

Combinational Logic Circuits

Chapter 2: Combinational Systems

IT 201 Digital System Design Module II Notes

Slide Set 4. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

Starting Boolean Algebra

Ch. 5 : Boolean Algebra &

ENEL Digital Circuits Midterm Examination

Contents. Slide Set 1. About these slides. Outline of Slide Set 1. Typographical conventions: Italics. Typographical conventions. About these slides

Switching Theory And Logic Design UNIT-II GATE LEVEL MINIMIZATION

Slide Set 5. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

Chapter 2 Part 5 Combinational Logic Circuits

Gate-Level Minimization

Slide Set 4. for ENCM 339 Fall 2017 Section 01. Steve Norman, PhD, PEng

Chapter 3. Boolean Algebra and Digital Logic

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

ENCM 501 Winter 2015 Tutorial for Week 5

Digital Logic Design (CEN-120) (3+1)

Combinational Circuits Digital Logic (Materials taken primarily from:

(Refer Slide Time: 02.06)

Transcription:

Slides for Lecture 5 ENEL 353: Digital Circuits Fall 203 Term Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary October, 203

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 2/20 Previous Lecture Continued presentation of K-map preliminaries: more about K-map layout relationships between minterms and K-map cells adjacency and using adjacency for simplification introduction to grouping cells into 2-cell, 4-cell, or 8-cell rectangles

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 3/20 Today s Lecture K-map terminology: implicant, prime implicant, distinguished -cell, essential prime implicant. Using K-maps to find minimal SOP expressions for functions. Related reading in Harris & Harris: Section 2.7, up to the end of Section 2.7.2.

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 4/20 Rectangles of three, six, or nine -cells are not helpful A rectangle of 2, 4, or 8 -cells corresponds to a single product in an SOP expression. A rectangle of 3, 6, or 9 -cells does not correspond to a single product in an SOP expression, and is therefore not helpful in minimization of logic functions.

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 5/20 An imprecise description of K-map minimization methods Cover all the -cells, and only the -cells. Use as few single-cell, 2-cell, 4-cell, and 8-cell rectangles as possible. Make the rectangles as large as possible. canonical SOP not quite minimal minimal SOP (far from minimal!)

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 6/20 Lead-up to an important definition: Implicant X implies Y, means, Whenever X is true, then Y must also be true. Example: The fact that Joe is in the ICT Building implies that Joe is on the U of C campus. Let s look at a typical SOP expression: F = Ā BC + ĀB C + AC Because of the way OR is defined, Ā BC = implies F =. Similarly, ĀB C = implies F =, and AC = implies F =. The products Ā BC, ĀB C, and AC are said to be implicants of F.

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 7/20 Important definition: Implicant For a given logic function F, the implicants of F are all of the products from all of the valid SOP expressions for F. For example, here is an exhaustive list of valid SOP expressions for the two-input NAND function: F = Ā B + ĀB + A B = Ā + S B = ĀB + B = Ā + B So what are all the implicants of this particular F?

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 8/20 Implicants and K-maps From a K-map for a function F, the implicants of F correspond to all of the individual -cells; all rectangles composed of 2, 4, or 8 -cells. (That s for functions of up to four variables things get more complicated with functions of five or six variables.) Example : Let s use a K-map to find all the implicants of NAND (A,B). Example 2: Let s work with an example 4-variable K-map, and find a few implicants and SOP expressions.

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 9/20 Important definition: Prime implicant A prime implicant is an implicant that is not fully contained by any other implicant. Example: If ABC and AB C are both implicants of F, they cannot be prime implicants, because they are fully contained by AB. In a K-map, a prime implicant is a rectangle that cannot be doubled in size without collecting one or more 0-cells.

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 0/20 Illustration of prime and non-prime implicants Examples, for a 3-variable function and a 4-variable function... non-prime implicants prime implicants

ENEL 353 F3 Section 02 Slides for Lecture 5 slide /20 Illustration of prime and non-prime implicants, continued A B C D C 00 0 A 00 0 0 D The circled implicant is a prime implicant because it can t be doubled in size without collecting a 0-cell. What is the product for the circled implicant? 0 B What are all the other prime implicants?

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 2/20 The prime implicant theorem The theorem says: The products in a minimal SOP expression must all be prime implicants. Sketch of proof: Suppose an SOP expression for F includes non-prime implicant X. Replace X with a prime implicant that fully contains X. The resulting new SOP expression is valid for F and is simpler than the original SOP expression, so the original expression could not have been minimal. Practical consequence: When you use a K-map to look for a minimal SOP expression, you should totally ignore non-prime implicants.

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 3/20 What the prime implicant theorem does not say This is not generally true: An SOP expression for F in which the products are prime implicants is a minimal SOP expression for F. Example: Let s study this K-map... A B C 00 0 A 0 0 C B

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 4/20 Important definitions: Distinguished -cell and essential prime implicant A distinguished -cell of function F is a -cell that is covered by exactly one prime implicant of F. An essential prime implicant of F is a prime implicant that covers at least one distinguished -cell of F. A B C 00 0 A 0 Let s study this K-map some more... 0 C B

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 5/20 Distinguished -cells, essential prime implicants, and this year s textbook Harris and Harris do not provide definitions of distinguished -cell or essential prime implicant. However, both concepts are useful for efficient discovery of minimal SOP expressions from K-maps, so in ENEL 353 you must know exactly what these terms mean. (Many other textbooks define distinguished -cell and essential prime implicant exactly as done on the previous slide.)

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 6/20 Essential prime implicants and minimal SOP expressions Fact: If the essential prime implicants of F cover all of its -cells, the OR of the essential prime implicants is a unique minimal SOP expression for F. Sketch of proof: The minimal SOP expression must be a sum of prime implicants. If an essential prime implicant is not used in a sum of prime implicants, at least one -cell is not covered, so no essential prime implicant can be left out. Important consequence: Finally, for at least some functions, we have a way to be certain that an SOP expression is a minimal SOP expression!

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 7/20 Review of an earlier example A B C D C 00 0 0 A 00 0 0 D Which prime implicants are essential prime implicants? Can we use the essential prime implicants to make a minimal SOP expression? B

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 8/20 Using only essential prime implicants may fail to cover all the -cells Unfortunately, when looking for minimal SOP expressions, we can t always declare victory after we find all the essential prime implicants. Let s look at this example... A B C D 00 A 00 0 0 0 D C 0 B

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 9/20 A note about non-essential prime implicants We ve just seen that prime implicants in a K-map can be divided into those that are essential prime implicants and those that are not essential prime implicants. To call a prime implicant non-essential does not mean that it is useless or unimportant! Here is the correct distinction... essential PI: contains a distinguished -cell, must appear in a minimal SOP expression non-essential PI: does not contain a distinguished -cell, might or might not be needed in a minimal SOP expression

ENEL 353 F3 Section 02 Slides for Lecture 5 slide 20/20 Upcoming topics Finding minimal SOP expressions when essential prime implicants do not cover all the -cells. (Not covered in detail in Harris & Harris.) Don t-cares, X-cells, and SOP minimization. (Related reading in Harris & Harris: Section 2.7.3.)