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

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

Gate Level Minimization Map Method

Chapter 3. Gate-Level Minimization. Outlines

Gate-Level Minimization

Simplification of Boolean Functions

Contents. Chapter 3 Combinational Circuits Page 1 of 34

A B AB CD Objectives:

Gate-Level Minimization. section instructor: Ufuk Çelikcan

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

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

Chapter 2. Boolean Expressions:

Chapter 2: Combinational Systems

Gate Level Minimization

Chapter 2 Combinational Logic Circuits

Digital Logic Design. Outline

Experiment 4 Boolean Functions Implementation

1. Mark the correct statement(s)

Gate-Level Minimization

ELCT201: DIGITAL LOGIC DESIGN

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Digital Logic. Copyright By NODIA & COMPANY

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

Chapter 2 Combinational

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.

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

Standard Forms of Expression. Minterms and Maxterms

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


2.1 Binary Logic and Gates

Gate-Level Minimization

Gate-Level Minimization

Digital Logic Lecture 7 Gate Level Minimization

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

TWO-LEVEL COMBINATIONAL LOGIC

Experiment 3: Logic Simplification

Review: Standard forms of expressions

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

QUESTION BANK FOR TEST

Combinational Logic Circuits

LOGIC CIRCUITS. Kirti P_Didital Design 1

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

ece5745-pla-notes.txt

Code No: R Set No. 1

Combinational Logic Circuits Part III -Theoretical Foundations

Code No: 07A3EC03 Set No. 1

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

CS February 17

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

CS8803: Advanced Digital Design for Embedded Hardware

ELCT201: DIGITAL LOGIC DESIGN

1. Fill in the entries in the truth table below to specify the logic function described by the expression, AB AC A B C Z

Chapter 3 Simplification of Boolean functions

Outcomes. Unit 9. Logic Function Synthesis KARNAUGH MAPS. Implementing Combinational Functions with Karnaugh Maps

COMBINATIONAL LOGIC CIRCUITS

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

UNIT II. Circuit minimization

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:

Computer Engineering Chapter 3 Boolean Algebra

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

Specifying logic functions

CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN I YEAR/II SEM PART-B UNIT-I BOOLEAN ALGEBRA AND LOGIC GATES.

Simplification of Boolean Functions

Combinational Logic & Circuits

University of Technology

Switching Circuits & Logic Design

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

Karnaugh Maps. Kiril Solovey. Tel-Aviv University, Israel. April 8, Kiril Solovey (TAU) Karnaugh Maps April 8, / 22

Lecture (05) Boolean Algebra and Logic Gates

Code No: R Set No. 1

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

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

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals.

ICS 252 Introduction to Computer Design

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

Module -7. Karnaugh Maps

Computer Organization

Combinational Logic with MSI and LSI

Unit-IV Boolean Algebra

/90 TOTAL. 1(a) 8pts. fiv(a,b) is called the function.

GATE Exercises on Boolean Logic

(Refer Slide Time 5:19)

S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 2016/2017

Boolean Algebra and Logic Gates

Chapter 2 Boolean algebra and Logic Gates

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN


Code No: R Set No. 1

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

Lecture 22: Implementing Combinational Logic

CMPE223/CMSE222 Digital Logic

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

2.6 BOOLEAN FUNCTIONS

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

Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

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

UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

Combinational Logic Circuits

SWITCHING THEORY AND LOGIC CIRCUITS

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

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

Boolean Analysis of Logic Circuits

Transcription:

Principles Of Digital Design Chapter 4 Simplification of Boolean Functions Karnaugh Maps Don t Care Conditions Technology Mapping Optimization, Conversions, Decomposing, Retiming

Boolean Cubes for n =, 2, 3, and 4 n = n = 2 n = 3 n = 4 Copyright 24-25 by Daniel D. Gajski 2

Boolean Functions and Boolean Cubes Each Boolean n-cube represents a Boolean function of n variables Each vertex represents a minterm Each m-subcube represents 2 m minterms, m < n, with the same n m literals Each m-subcube of -minterm represent a product of n m literals = l l 2 l n m (x n m + x n m + 2 x n + x n m + x n m + 2 x n + + x n m + x n m + 2 x n ) = l l 2 l n m For any Boolean function a prime implicant is a subcube not contained in any other prime implicant As essential prime implicant is a subcube that contains a - minterm that is not included in any other prime implicant Copyright 24-25 by Daniel D. Gajski 3

Representation of Carry and Sum Functions with Boolean Cubes c i x i y i c i + s i Truth Table Carry Function c i + Sum Function s i Copyright 24-25 by Daniel D. Gajski 4

Map Representation (Karnaugh) maps define Boolean functions Map representation is equivalent to truth tables, Boolean expressions and Boolean cube representation Map aid in visually identifying prime implicants and essential prime implicants in each Boolean function Maps are used for manual optimization of Boolean functions Copyright 24-25 by Daniel D. Gajski 5

Boolean Subcubes and Corresponding Karnaugh Maps for n =, 2, 3, and 4 x y x m m n = m 2 m 3 n = 2 xy zw yz x m m m 3 m 2 m m m 3 m 2 m 4 m 5 m 7 m 6 m 4 m 5 m 7 m 6 m 2 m 3 m 5 m 4 n = 3 m m 9 m m n = 4 Copyright 24-25 by Daniel D. Gajski 6

2 variable variable Map x y x y x y x y Subcube x Subcube y xy 2 xy 3 2 3 Subcube x Map Organization Example of -subcubes Example: x y AND OR XOR Truth Table x y x y x y 2 3 2 3 2 3 Copyright 24-25 by Daniel D. Gajski AND 7 OR XOR

Three variable Map x yz x y z 3 2 x y z x yz x yz xy z 4 5 7 6 xy z xyz xyz Map Organization x yz 3 2 Subcube z 4 5 7 6 Subcube z Subcube x Example of 2-subcubes x yz 3 2 Subcube x y Subcube yz 4 5 7 6 Subcube xz Example of -subcubes Copyright 24-25 by Daniel D. Gajski

Map Representation of Carry and Sum Functions c i x i y i c i + s i c i x i y i 4 5 3 2 Carry Function c i + 7 6 x i y i c i 3 2 4 5 Sum Function s i 7 6 Truth Table Copyright 24-25 by Daniel D. Gajski 9

Four variable Map zw xy 3 2 x y z w x y z w x y zw x y zw 4 5 7 6 x yz w x yz w x yzw x yzw 2 3 5 4 xyz w xyz w xyzw xyzw 9 xy z w xy z w xy zw xy zw Map Organization zw zw xy xy 3 2 Subcube y w 3 2 Subcube x 4 5 7 6 Subcube x y 4 5 7 6 Subcube w 2 3 5 4 Subcube xz 2 3 5 4 9 9 Copyright 24-25 by Daniel D. Gajski Example of 2-subcubes Example of 3-subcubes

Representation of Greater-than than and Less-than Functions in Maps x x y y x x y y Greater Less Equal Than Than Truth Table y y x x 3 2 4 5 7 6 2 3 5 4 9 Greater-than Function 3 2 4 5 7 6 2 3 5 4 9 G = x y + x y y + x x y L = x y + x x y + x y y Less-than Function Copyright 24-25 by Daniel D. Gajski

Five variable variable Map xy zw v = v = 3 2 6 7 9 x y z w v x y z wv x y zwv x y zw v x y z w v x y z wv x y zwv x y zw v 4 5 7 6 2 2 23 22 x yz w v x yz wv x yzwv x yzw v x yz w v x yz wv x yzwv x yzw v 2 3 5 4 2 29 3 3 xyz w v xyz wv xyzwv xyzw v xyz w v xyz wv xyzwv xyzw v 9 24 25 27 26 xy z w v xy z wv xy zwv xy zw v xy z w v xy z wv xy zwv xy zw v Map Organization xy zw v = v = 3 2 6 7 9 x 4 5 7 6 2 2 23 22 vw 2 3 5 4 2 29 3 3 9 24 25 27 26 xz zw Copyright 24-25 by Daniel D. Gajski 2 Example of 3-subsubes and 4-subcubes

Six variable Map xy zw v = v = xy zw v = v = m 3 2 m m 3 m 2 6 7 9 m 6 m 7 m 9 m 3 2 6 7 9 m 4 4 5 7 6 m 5 m 7 m 6 2 2 23 22 m 2 m 2 m 23 m 22 4 5 7 6 2 2 23 22 u = 2 3 5 4 m 2 m 3 m 5 m 4 9 m m 9 m m 2 29 3 3 m 2 m 29 m 3 m 3 24 25 27 26 m 24 m 25 m 27 m 26 u = 2 3 5 4 9 2 29 3 3 24 25 27 26 x v 32 33 35 34 m 32 m 33 m 35 m 34 4 49 5 5 m 4 m 49 m 5 m 5 32 33 35 34 4 49 5 5 u = 36 37 39 3 m 36 m 37 m 39 m 3 44 45 47 46 m 44 m 45 m 47 m 46 52 53 55 54 m 42 m 53 m 55 m 54 6 6 63 62 m 6 m 6 m 63 m 62 u = 36 37 39 3 44 45 47 46 52 53 55 54 6 6 63 62 xz 4 4 43 42 m 4 m 4 m 43 m 42 56 57 59 5 m 56 m 57 m 59 m 5 4 4 43 42 56 57 59 5 Map Organization z w Example of 4-subcubes Copyright 24-25 by Daniel D. Gajski 3

Boolean Simplification with Map Method Truth table, canonical form or standard form Generate map Determine prime implicants Select essential prime implicants Find minimal cover Standard form Copyright 24-25 by Daniel D. Gajski 4

Boolean Simplification with Map Method Example: Problem: xy Maps method Using the map method, simplify the Boolean function zw F = w y z + wz + xyz + w y 3 2 xy zw 3 2 4 5 7 6 4 5 7 6 2 3 5 4 2 3 5 4 9 9 Map Organization Prime Implicants in the Map Copyright 24-25 by Daniel D. Gajski PI List: w z, wz,, yz, w y EPI List: w z, wz Cover List: () w z, wz,, yz (2) w z, wz, w y 5

Selection of Prime Implicants Example: Problem: Selection of prime implicants Simplify the Boolean function F = w x yz + w xy + wxz + wx y + w x y z xy zw 3 2 4 5 7 6 2 3 5 4 9 PI List: w x z, w xy, wxz, wx y, x y z, wy z,, xyz, w yz EPI List: empty Cover List: () w x z, w xy, wxz, wx y (2) x y z, wy z,, xyz, w yz Copyright 24-25 by Daniel D. Gajski 6

Don t Care Conditions Completely specified functions have a value assigned for every minterm Incompletely specified functions do not have values assigned for some minterms which are called don t care minterms (d minterms) or don t care conditions Don t care minterms can be assigned any value during simplifications in order to simplify Boolean expressions Copyright 24-25 by Daniel D. Gajski 7

Don t Care Conditions Example: Problem: Don t care conditions Derive Boolean expressions for the 9 s s complement of a BCD digit x 3 x 2 x x x 3 x 2 x x Digits Nine s Complements Decimal BCD BCD Decimal x 3 x 2 x x x 3 x 2 x x 9 2 3 7 6 4 5 6 7 5 4 3 2 9 Nine s Complement Table x 3 x 2 x x 3 2 4 5 7 6 2 3 5 4 X X X X 9 4 5 9 X X 3 7 2 6 2 3 5 4 y 3 = x 3 x 2 x y 2 = x 2 x x x x 3 x 2 X X X X X X 4 X 2 X 3 5 7 6 3 9 3 4 5 7 9 X X 2 5 4 2 6 2 3 5 4 X X X X X X X X Copyright 24-25 by Daniel D. Gajski y = x y = x Map Representation

Technology Mapping for Gate Arrays Gate arrays contain only one type of m-input gate (such as 3-input NOR, 3-input NAND) Technology mapping is a transformation of Boolean expressions into a logic schematic containing only this type of gate Technology mapping consist of three tasks Conversion replaces each operator with an operator representing the gate function given in the gate array Optimization eliminates unnecessary inverters Decomposition replaces a n-input gate with an m-input gate available in the gate array Copyright 24-25 by Daniel D. Gajski 9

Conversion and Optimization Rule : Rule 2: Rule 3: Rule 4: Conversion Rules Rule 5: Conversion Procedure: Optimization Rules Replace AND and OR gates with NAND or NOR gates by using Rules 4, and eliminate double inverters whenever possible Copyright 24-25 by Daniel D. Gajski 2

Translation of Standard Terms to NAND and NOR Schematics Form Type Standard Form Implementation NAND Implementation NOR Implementation Sum of products Product of sums Copyright 24-25 by Daniel D. Gajski 2

Conversion to NAND (NOR) Gates Example: Problem: Conversion to NAND (NOR) gates Derive the NAND and NOR implementations of the carry function x i 2.4 x i.4 x i y i c i 3 2 y i c i 2.4 2.4 2. c i + y i.4. c i + c i.4 4 5 7 6 NAND Implementation Map Definition Carry Function c i + c i + = x i y i + x i c i + y i c i c i + = (x i + y i )(x i + c i )(y i + c i ) Standard Forms x i y i 2.4 2.4 2. x i.4 c i + y i.4. c i + c i 2.4 c i.4 NOR Implementation Copyright 24-25 by Daniel D. Gajski 22

Decomposition of input AND Gate into 3 input 3 AND Gates 2.4 2.4 2.4 2.4 2.4 2.4 Level Number Number of Inputs Number of Gates [ / 3] = 3 2.4 2.4 2 3 3 + ( 3([ / 3])) = 4 + (4 3([4 / 3])) = 2 [4 / 3] = [2 / 3] = Input and Gate Computation on Each Level 2.4 2.4 One Possible Decomposition Alternative Decomposition Copyright 24-25 by Daniel D. Gajski 23

Technology Mapping for Gate Arrays Example: Technology mapping for gate arrays Problem: Implement the sum function using 3 input 3 NAND gates c i x i y i c i x i y i s i s i x i y i c i 3 2 4 5 7 6 AND OR Implementation Conversion to NAND Network c i x i y i c i x i y i Map Definition Sum Function s i s i s i Copyright 24-25 by Daniel D. Gajski OR Gate Decomposition 24 Optimized NAND Network

Design Retiming g 3 g 2 Example: Design retiming p 2 g Problem: Implement 4 bit 4 carry-look look-ahead function c 4 = g 3 + g 2 + p 2 g + p 2 p g + p 2 p p c NAND gates using 3 input3 NAND p p c p 2 g p 2 p c 4 AND-OR Implementation g 3 g 3 g 2 g 2 p 2 g p 2 g p p p 2 g p 2 c 4 p p p 2 g p 2 c 4 c p c p Decomposition of AND-OR Implementation Performance Optimized Decomposition g 3 g 3 g 2. g 2.. p 2 g. p 2 g. p p p 2 g p 2.... c 4 p p p 2 g p 2.... c 4 c p. c p. NAND Implementation of Above Delay =.2ns Copyright 24-25 by Daniel D. Gajski 25 Performance Optimized NAND Implementation Delay = 6.4ns

Technology Mapping Procedure for Gate Arrays Start Decompose Convert Eliminate invertors I/O delay OK? no yes Done Retime Copyright 24-25 by Daniel D. Gajski 26

Technology Mapping for Custom Libraries Libraries contain gates with different functions and different delays Technology mapping means covering schematic with library gates Minimize delay on critical paths Minimize cost on non-critical paths Copyright 24-25 by Daniel D. Gajski 27

Technology Mapping for Custom Libraries Example: Technology mapping for custom libraries Problem: Convert the expression w z + z(w + y) y into a logic schematic using any of the gates Convert the expression into a logic schematic using any of the gates defined in the digital logic gates, multiple-input input gates, and complex gates libraries y 2.4 2.4 y.4 w z 2.4 2.4 F w z 2. F AND OR Implementation (Delay = 7.2ns, Cost = 2) Alternative A (Delay = 5.4ns, Cost = 2) y w z.4.4.4.4 F y w z 2..4.4 F NAND Implementation (Delay =5.2ns, Cost = 22) Alternative B (Delay = 3.ns, Cost = 2) y w z.4 B.4.4 A.4 F y w z 2..4.4 F Copyright 24-25 by Daniel D. Gajski Two Possible Conversions 2 Cost Optimized Alternative B (Delay = 3.ns, Cost = )

Conversion Procedure for Custom Libraries Start Convert to NAND schematic Select a path Select gate Select a library component Record replacement gain no no no All paths considered? Recompute Delay Select maximum gain replacement yes All gates considered? yes All components considered? yes Done Copyright 24-25 by Daniel D. Gajski 29

Chapter Summary Simplification of Boolean functions by Map method (visual) Technology mapping for gate arrays Decomposition Conversion Optimization Retiming Technology mapping for custom libraries by schematic covering with complex gates with Time optimization on circuit paths Cost optimization on non-critical paths Copyright 24-25 by Daniel D. Gajski 3