Chapter 3. Gate-Level Minimization. Outlines

Similar documents
Gate Level Minimization Map Method

Gate-Level Minimization

Gate-Level Minimization

Gate-Level Minimization

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2. Boolean Expressions:

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


QUESTION BANK FOR TEST

ELCT201: DIGITAL LOGIC DESIGN

Gate Level Minimization

A B AB CD Objectives:

CS8803: Advanced Digital Design for Embedded Hardware

Gate-Level Minimization

Experiment 3: Logic Simplification

Simplification of Boolean Functions

Chapter 2 Combinational Logic Circuits

Digital Logic Design. Outline

Code No: R Set No. 1

Gate-Level Minimization. section instructor: Ufuk Çelikcan

DIGITAL CIRCUIT LOGIC UNIT 7: MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

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

Combinational Logic Circuits

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

UNIT II. Circuit minimization

Experiment 4 Boolean Functions Implementation

Specifying logic functions

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

Chapter 2 Combinational

2.1 Binary Logic and Gates

Simplification of Boolean Functions

IT 201 Digital System Design Module II Notes

Combinational Logic Circuits

Code No: R Set No. 1

Code No: R Set No. 1

CMPE223/CMSE222 Digital Logic

Chapter 2: Combinational Systems

Chapter 2 Boolean algebra and Logic Gates

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

Incompletely Specified Functions with Don t Cares 2-Level Transformation Review Boolean Cube Karnaugh-Map Representation and Methods Examples

Code No: 07A3EC03 Set No. 1

University of Technology

2008 The McGraw-Hill Companies, Inc. All rights reserved.

Digital Logic Lecture 7 Gate Level Minimization

ECE380 Digital Logic

CprE 281: Digital Logic

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

Combinational Logic Circuits Part III -Theoretical Foundations

DKT 122/3 DIGITAL SYSTEM 1

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

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

2.6 BOOLEAN FUNCTIONS

Chapter 2 Combinational Logic Circuits

Ch. 5 : Boolean Algebra &

Combinational Logic & Circuits

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

1. Mark the correct statement(s)

Dr. S. Shirani COE2DI4 Midterm Test #1 Oct. 14, 2010

SWITCHING THEORY AND LOGIC CIRCUITS


Combinational Circuits Digital Logic (Materials taken primarily from:

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

Unit-IV Boolean Algebra

Boolean Algebra and Logic Gates

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

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

Summary. Boolean Addition

Standard Forms of Expression. Minterms and Maxterms

Chapter 3 Simplification of Boolean functions

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

CENG 241 Digital Design 1

Lecture 4: Implementation AND, OR, NOT Gates and Complement

Chapter 3. Boolean Algebra and Digital Logic

Last Name Student Number. Last Name Student Number

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

Chapter 4. Combinational Logic. Dr. Abu-Arqoub

ENGIN 112 Intro to Electrical and Computer Engineering

A graphical method of simplifying logic

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

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

Switching Circuits & Logic Design

EE 8351 Digital Logic Circuits Ms.J.Jayaudhaya, ASP/EEE

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

Variable, Complement, and Literal are terms used in Boolean Algebra.

Module -7. Karnaugh Maps

X Y Z F=X+Y+Z

Review: Standard forms of expressions

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

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

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

Presented By :- Alok Kumar Lecturer in ECE C.R.Polytechnic, Rohtak

Chapter 6. Logic Design Optimization Chapter 6

Final Examination (Open Katz, asynchronous & test notes only, Calculators OK, 3 hours)

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

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

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

SEE1223: Digital Electronics

Transcription:

Chapter 3 Gate-Level Minimization Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 2

3. Introduction Why do we need logic minimization? Minimize the number of gates used (gate count) Minimize the total delay (critical path delay) in order to improve speed Satisfy design constrains such as max fanins and fanouts Remove undesired circuit behavior such as hazard and race 3 Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 4

THE MAP METHOD The map method is also known as the Karnaugh map or K-map The map method provides a simple straightforward procedure for minimizing Boolean function. The simplified expressions produced by the map are always in one of the two standard forms: Sum of Products (SOP) Product of Sums (POS) 5 Two Variable Map 6

Two Variable Map 7 K-map three variable (/3) 8

K-map three variable (2/3) Example 3- F (x, y, z) = Σ(2,3,4,5) F = x y + xy m3 + m2 = x yz + x yz = x y (z + z) = x y m4 + m5 = xy z + xy z = xy (z + z) = xy 9 K-map three variable (3/3) Example 3-3 Example 3-2 F( x, y, z) = (,2,4,5,6) = z' + xy' F( x, y, z) = (3,4,6,7) = yz + xz'

Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) K-map four variable 2

K-map four variable Example 3-6 F( A, B, C, D) = (,,2,6,8,9,) = B' C' + A' CD' + B' D' 3 K-map five variable 4

K-map five variable F = A' B' E' + BD' E + ACE 5 Implicates (cubes) Terminologies A group of minterms that form cube Prime implicates (cubes) a term obtained by combining the maximum possible number of adjacent squares in the map Essential Implicates (cubes) Implicates contains minterms that are not included by other implicates Cover All the s are included by the selected implicates 6

Prime Implicates-Procedure Circle all prime implicates on the k-map Identify and select all essential prime implicates Select a minimum subset of the remaining prime Implicates to complete the cover 7 F( A, B, C, D) Prime Implicates = (,2,3,5,7,8,9,,,3,5) CD + AD CD + AB' F = BD + B' D' + B' C + AD B' C + AB' 8

Five Variable Map Variable A distinguishes between the two maps 9 Five Variable Map F( A, B, C, D, E) = (,2,4,6,9,3,2,23,25,29,3) F=A B E +BD E+ACE 2

Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 2 Product of Sums Simplification (/2) The complement of a function is represented in the map by the squares not marked by s We obtain a simplified expression of the complement of the function Example 3-8 F( A, B, C, D) = (,,2,5,8,9,) =B D +B C +A C D (sum of products) =(A +B )(C +D )(B +D) (product of sums) 22

Product of Sums Simplification (2/2) 23 Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 24

Don t Care Conditions An X inside a square in the map indicates that we don't care whether the value of or is assigned to F for the particular minterm Example 3-9 F( w, x, y, z) = d( w, x, y, z) = (,3,7,,5) (,2,5) 25 Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 26

NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with AND and OR gate NAND gate NOT operation (Inverter) AND operation (AND gate) OR operation (OR gate) NOR operation (NOR gate) NOR gate NOT operation (Inverter) AND operation (AND gate) OR operation (OR gate) NAND operation (NAND gate) 27 NAND Circuits Logic operations with NAND gate 28

NAND Circuits 29 Two level implementation It implements can be easily converted to a sum of products form by using DeMorgan s theorem F=((AB) (CD) ) =AB+CD 3

NAND Implementation (/2) Example 3- F (x, y, z) = Σ(,2,3,4,5,7) F = xy + x y + z 3 NAND Implementation (2/2) The procedure for obtaining the logic diagram from a Boolean function is as follows:. Simplify the function and express it in sum of products. 2. Draw a NAND gate for each product term of the expression that has at least two literals. The inputs to each NAND gate are the literals of the term. This constitutes a group of first-level gates. 3. Draw a single gate using the AND-inverter or the inverter- OR graphic symbol in the second level, with inputs coming from outputs of first level gates. 4. A term with a single literal requires an inverter in the first level. However, if the single literal is complemented, it can be connected directly to an input of the second level NAND gate. 32

Multilevel NAND Circuits The general procedure for converting a multilevel AND-OR diagram into an all-nand diagram using mixed notation is as follows: Convert all AND gates to NAND gates with ANDinvert graphic symbols Convert all OR gates to NAND gates with invert- OR graphic symbols Check all the bubbles in the diagram 33 Multilevel NAND Circuits EXAMPLE:F=A(CD + B) + BC 34

NOR Circuit Logic Operations with NOR Gates 35 NOR Circuit 36

NOR Implementation Example:F=(A+B)(C+D)E 37 Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 38

Other Two-Level Implementations Some NAND or NOR gates (but not all) allow the possibility of a wire connection between the outputs of two gates to provide a specific logic function. This type of logic is called wired logic. 39 Nondegenerate forms The eight nondegenerate forms are as follows: AND-OR NAND-NAND NOR-OR OR-NAND OR-AND NOR-NOR NAND-AND AND-NOR 4

AND-OR-INVERT Implementation 4 OR-AND-INVERT Implementation 42

OR-AND-INVERT Implementation 43 Other Two-level Implementations Ex. Example 3- F = x y + xy + z F = (x y + xy + z) 44

Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 45 Exclusive-OR Function The exclusive-or (XOR), denoted by the symbol Logic operation X Y = XY + X Y It is equal to if only x is equal to or if only y is equal to, but not when both are equal to Truth table & K-map: 46

Exclusive-OR Function Truth table & K-map: A B C F 47 Exclusive-OR Implementations 48

Exclusive-NOR Function The exclusive-nor (XNOR), denoted by the symbol Logic operation X y = xy + x y It is equal to if both x and y are equal to or if both are equal to 49 Exclusive-NOR Function Truth table & K-map: A B C F 5

Odd Function The multiple-variable exclusive-or operation is defined as an odd function A B C F 5 Parity Generation and Checking Exclusive-OR functions are very useful in system requiring error-detection and correction codes The circuit that generates the parity bit in the transmitter is called a parity generator The circuit that checks the parity in the receiver is called a parity checker 52

Parity Generation and Checking Example: 3-bit message to be transmitted together with an even parity bit P=x y z 53 Parity Generation and Checking Example: 3-bit message to be transmitted together with an even parity bit P=x y z 54

Introduction The Map Method Four-Variable Map Five-Variable Map Outlines Product of Sums Simplification Don t-care Conditions NAND and NOR Implementation Other Two-Level Implementations Exclusive-OR Function Hardware Description Language (HDL) 55 Hardware Description Language (HDL) A Hardware Description Language (HDL) is a high-level programming language with special constructs used to model the function of hardware logic circuits The special language constructs provide you the ability to : Describe The Connectivity Of The Circuit Describe The Functionality Of A Circuit Describe A Circuit At Various Levels Of Abstraction Describe The Timing Of A Circuit Express Concurrency 56

Hardware Description Language (HDL) HDLs share several features in common: Typically, an HDL contains some high-level programming language constructs, along with constructs to describe the connectivity of the hardware design An HDL allows you to describe the design at various levels of abstraction using structural or behavioral constructs An HDL allows you to describe the functionality of the hardware, along with its timing constraints Concurrency, which is the ability to perform multiple tasks at the same time. Typically, programming languages are not concurrent, but in hardware a number of operations happen at the same time. Thus, an HDL must be concurrent. 57 HDL Example HDL Example 3- //Description of simple circuit Fig. 3-37 module smpl_circuit (A, B, C, x, y); input A, B, C; output x, y; wire e; and g (e, A, B); not g2 (y, C); or g3 (x, e, y); endmodule 58