Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Similar documents
Chapter 3 Combinational Logic Design

Chapter 2 Combinational Logic Circuits

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Chap 2. Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

EEE130 Digital Electronics I Lecture #4

Logic Gate Level. Part 2

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

Gate-Level Minimization

Optimizations and Tradeoffs. Combinational Logic Optimization

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MINI TERMS AND MAX TERMS

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Karnaugh Map & Boolean Expression Simplification

Unit 2 Session - 6 Combinational Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

CHAPTER 3 BOOLEAN ALGEBRA

This form sometimes used in logic circuit, example:

Multilevel Logic Synthesis Algebraic Methods

UNIT 5 KARNAUGH MAPS Spring 2011

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

Chapter 2 Combinational Logic Circuits

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

Karnaugh Maps Objectives

CSE 140 Midterm I - Solution

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Systems I: Computer Organization and Architecture

Signals and Systems Digital Logic System

Chapter 7 Logic Circuits

Lecture 2 Review on Digital Logic (Part 1)

Digital Logic Design ABC. Representing Logic Operations. Dr. Kenneth Wong. Determining output level from a diagram. Laws of Boolean Algebra

MC9211 Computer Organization

Chapter 3. Boolean Algebra. (continued)

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Advanced Digital Design with the Verilog HDL, Second Edition Michael D. Ciletti Prentice Hall, Pearson Education, 2011

Chapter 2 Combinational Logic Circuits

MODULAR CIRCUITS CHAPTER 7

Chapter 2: Switching Algebra and Logic Circuits

ELC224C. Karnaugh Maps

Lecture 7: Karnaugh Map, Don t Cares

Reduction of Logic Equations using Karnaugh Maps

CHAPTER 7. Exercises 17/ / /2 2 0

CHAPTER 5 KARNAUGH MAPS

Chapter 2 Boolean Algebra and Logic Gates

Combinational Logic. Review of Combinational Logic 1

Chapter 2 Combinational Logic Circuits

Number System conversions

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

ENG2410 Digital Design Combinational Logic Circuits

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

Digital Logic Design. Combinational Logic

CHAPTER III BOOLEAN ALGEBRA

Unit 2 Boolean Algebra

211: Computer Architecture Summer 2016

ENGR 303 Introduction to Logic Design Lecture 3. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

1. Expand each of the following functions into a canonical sum-of-products expression.

Unit 3 Session - 9 Data-Processing Circuits

Boolean Algebra and Logic Simplification

ENGG 1203 Tutorial - 2 Recall Lab 2 - e.g. 4 input XOR. Parity checking (for interest) Recall : Simplification methods. Recall : Time Delay

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Administrative Notes. Chapter 2 <9>

CS 226: Digital Logic Design

Lecture 4: More Boolean Algebra

CHAPTER III BOOLEAN ALGEBRA

ECE 238L Boolean Algebra - Part I

Boolean Algebra and Logic Design (Class 2.2 1/24/2013) CSE 2441 Introduction to Digital Logic Spring 2013 Instructor Bill Carroll, Professor of CSE

Minimization techniques

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

CprE 281: Digital Logic

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Lecture 3: Boolean Algebra

Midterm1 Review. Jan 24 Armita

CHAPTER 2 BOOLEAN ALGEBRA

UNIT 3 BOOLEAN ALGEBRA (CONT D)

Chapter 2 Combinational Logic Circuits

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Boolean Algebra & Logic Gates. By : Ali Mustafa

Combinational Logic Design

INTRO TO I & CT. (Boolean Algebra and Logic Simplification.) Lecture # By: Department of CS & IT.

CPE100: Digital Logic Design I

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

CHAPTER 7. Solutions for Exercises

Chapter 3 Combinational Logic Design

T02 Tutorial Slides for Week 6

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Karnaugh Maps (K-Maps)

Chapter 2: Boolean Algebra and Logic Gates

Fundamentals of Boolean Algebra

Combinational Logic. Course Instructor Mohammed Abdul kader

L2: Combinational Logic Design (Construction and Boolean Algebra)

COM111 Introduction to Computer Engineering (Fall ) NOTES 6 -- page 1 of 12

Boolean Algebra and logic gates

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

CSE 140: Components and Design Techniques for Digital Systems

Transcription:

Computer Organization I Lecture 13: Design of Combinational Logic Circuits

Overview The optimization of multiple-level circuits Mapping Technology Verification

Objectives To know how to optimize the multiple-level circuits To know how to map circuits with AND, OR, Inverters into circuits with NAND (NOR) gates To understand how to verify the circuits

Multiple-level optimization Multiple-level circuits are circuits that are not twolevel (with or without input and/or output inverters) Multiple-level circuits can have reduced gate input cost compared to two-level (SOP and POS) circuits eg G = ABC + ABD + E + ACF + ADF, after simplification G = A(B+F)(C+D) + E Multiple-level optimization is performed by applying transformations to circuits represented by equations while evaluating cost

Important Transformation Rules Factoring - finding a factored form from SOP or POS expression Decomposition - expression of a function as a set of new functions Substitution of G into F - expression function F as a function of G and some or all of its original variables Elimination - Inverse of substitution

Transformation Examples Algebraic Factoring F = ACD + ABC + ABC + ACD G = 16 Factoring: F = A ( CD + BC ) + A (BC + CD) Factoring again: F = ( AC + AC) (B + D) G = 10 Note: G is the Gate Input Cost without Inverters, it is equal to the number of AND inputs and the number of OR gate inputs

Transformation Examples Decomposition The simplified function: F = ( AC + AC) (B + D) The terms B + D and AC + AC can be defined as new functions E and H respectively, decomposing F: F = E H, E = B + D, and H = AC + AC G = 10 This series of transformations has reduced G from 16 to 10, a substantial savings The resulting circuit has three levels plus input inverters

Transformation Examples Elimination Beginning with a new set of functions: X = B + C Y = A + B Z = A X + C Y G = 10 Eliminating X and Y from Z: Z = A (B + C) + C (A + B) G = 10 Flattening (Converting to SOP expression): Z = AB + AC + AC + BC G = 12 This has increased the cost, but has provided an new SOP expression for two-level optimization

Transformation Examples Two-level Optimization The result of 2-level optimization is: Z = A B + C G = 4 This example illustrates that: Optimization can begin with any set of equations, not just with minterms or a truth table Increasing gate input count G temporarily during a series of transformations can result in a final solution with a smaller G

Extraction Beginning with two functions: E = ABD + ABD Transformation Examples H = BCD + BCD G = 16 Finding a common factor and defining it as a function: F = BD + BD We perform extraction by expressing E and H as the three functions: F = BD + BD, E = AF, H = CF G = 10 The reduced cost G results from the sharing of logic between the two output functions

Mapping Technologies Technology Mapping Mapping AND, OR, NOT To NAND gates Mapping AND, OR, NOT To NOR gates The mapping is accomplished by: Replacing AND and OR symbols, Pushing inverters through circuit fan-out points, and Canceling inverter pairs

1 Replace ANDs and ORs: Technology Mapping - NAND Mapping Algorithm 2 Repeat the following pair of actions until there is at most one inverter between : a A circuit input or driving NAND gate output, and b The attached NAND gate inputs

Technology Mapping - NAND Mapping Example A B C D E (a) F A B C D E 7 8 Y 5 X 1 3 (b) OI 6 2 4 9 F A B 5 7 Y X 5 6 C D F E (c) (d)

1 Replace ANDs and ORs: Technology Mapping - NOR Mapping Algorithm 2 Repeat the following pair of actions until there is at most one inverter between : a A circuit input or driving NOR gate output, and b The attached NOR gate inputs

Technology Mapping - NOR Mapping Example A B A B C D E (a) A B F C D E 1 X (b) 3 2 F C F D E (c)

Verification Verification - show that the final circuit designed implements the original specification Simple specifications are: truth tables Boolean equations To verify if the above result from formulation are the same with the original specification or not, it is critical that the formulation process be flawless for the verification to be valid!

Manual Logic Analysis Verification - Basic Verification Methods Find the truth table or Boolean equations for the final circuit Compare the final circuit truth table with the specified truth table, or Show that the Boolean equations for the final circuit are equal to the specified Boolean equations Simulation Simulate the final circuit and the specified truth table or equations using test input values that fully validate correctness The obvious test for a combinational circuit is application of all possible care input combinations from the specification

Verification Example - Manual Analysis BCD-to-Excess 3 Code Converter Find the SOP Boolean equations from the final circuit Find the truth table from these equations Compare to the formulation truth table Finding the Boolean Equations: T 1 = C + D = C + D A W W = A (T 1 B) = A + B T 1 X = (T 1 B) (B CD ) = B T 1 + B CD Y = C D+ C D = CD + CD B C X D Y Z

Input BCD A B C D Output Excess -3 WXYZ 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1 0 1 0 1 1 0 0 0 0 1 1 0 1 0 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 0 1 1 1 0 0 1 1 0 1 1 Verification Example - Manual Analysis Find the circuit truth table from the equations and compare to specification truth table: The tables match!

Summary Multiple Level Optimization Mapping Technology Verification Approach

Thank you Q & A