©2010 Cengage Learning SLIDES FOR CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES This chapter in the book includes: Objectives Study Guide 7.1Multi-Level.

Slides:



Advertisements
Similar presentations
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Advertisements

Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
Boolean Algebra and Reduction Techniques
Boolean Algebra and Combinational Logic
MULTI-LEVEL GATE NETWORKS
Give qualifications of instructors: DAP
Example: Given a 4-bit input combination N=N 3 N 2 N 1 N 0, this function produces a 1 output for N=1,2,3,5,7,11,13, and 0 otherwise.  According to the.
ECE 331 – Digital System Design Multi-level Logic Circuits and NAND-NAND and NOR-NOR Circuits (Lecture #8) The slides included herein were taken from the.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Unit 8 Combinational Circuit Design and Simulation Using Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science.
Digital Fundamentals with PLD Programming Floyd Chapter 4
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
2.7 NAND and NOR logic networks
Digital Logic Design Adil Waheed. BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION AND gate F = A.B OR gate F = A + B NOT gate F = A NAND gate F = A.B NOR gate.
Boolean Algebra and Logic Simplification
Unit 7 Multi-Level Gate Circuits / NAND and NOR Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Unit 7 Multi-Level Gate Circuits / NAND and NOR Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
©2010 Cengage Learning CHAPTER 2 BOOLEAN ALGEBRA 2.1Introduction 2.2Basic Operations 2.3Boolean Expressions and Truth Tables 2.4Basic Theorems 2.5Commutative,
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
KU College of Engineering Elec 204: Digital Systems Design
Department of Computer Engineering
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. K-Map (1)  Karnaugh Mapping is used to minimize the number of logic gates that are required in a digital circuit.
ECE 331 – Digital System Design NAND and NOR Circuits, Multi-level Logic Circuits, and Multiple-output Logic Circuits (Lecture #9) The slides included.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
Unit 7 Multi-Level Gate Circuits Nand and Nor Gates Fundamentals of Logic Design Roth and Kinny.
Gate-level Minimization
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions
ETE 204 – Digital Electronics
Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with.
Multi-Level Gate Networks NAND and NOR Gates
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
1 K-Maps, Multi-level Circuits, Time Response Today: Reminder: Test #1, Thu 7-9pm K-map example, espressoFirst Hour: K-map example, espresso –Section 2.3.
ECE 3110: Introduction to Digital Systems
CS 121 Digital Logic Design Gate-Level Minimization Chapter 3.
Lecture 09 NAND and XOR Implementations. Overview °Developing NAND circuits °Two-level implementations Convert from AND/OR to NAND (again!) °Multi-level.
Digital Integrated Circuit Design Laboratory Department of Computer Science and Information Engineering National Cheng Kung University Experiment on digital.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Pp244 In Sum-of-Products (SOP) form, basic.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions ECE 301 – Digital Electronics.
Boolean Algebra and Reduction Techniques
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
THE K-MAP.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
CEC 220 Digital Circuit Design NAND/NOR Multi-Level Circuits
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
Lecture 07 Digital logic By Amr Al-Awamry. 4 variables K-Map.
©2010 Cengage Learning SLIDES FOR CHAPTER 8 COMBINATIONAL CIRCUIT DESIGN AND SIMULATION USING GATES Click the mouse to move to the next page. Use the ESC.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Digital Systems Design 1 Signal Expressions Multiply out: F = ((X + Y)  Z) + (X  Y  Z) = (X  Z) + (Y  Z) + (X  Y  Z)
©2010 Cengage Learning SLIDES FOR CHAPTER 8 COMBINATIONAL CIRCUIT DESIGN AND SIMULATION USING GATES Click the mouse to move to the next page. Use the ESC.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
SLIDES FOR CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES
Lecture 7 Multi-Level Gate Networks
MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
CHAPTER 3 Simplification of Boolean Functions
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Lecture #6 EGR 277 – Digital Logic
Digital Fundamentals Floyd Chapter 5 Tenth Edition
BASIC & COMBINATIONAL LOGIC CIRCUIT
CH7 Multilevel Gate Network
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Chapter 5 Combinational Logic Analysis
Laws & Rules of Boolean Algebra
Presentation transcript:

©2010 Cengage Learning SLIDES FOR CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES This chapter in the book includes: Objectives Study Guide 7.1Multi-Level Gate Circuits 7.2NAND and NOR Gates 7.3Design of Two-Level Circuits Using NAND and NOR Gates 7.4Design of Multi-Level NAND and NOR Gate Circuits 7.5Circuit Conversion Using Alternative Gate Symbols 7.6Design of Two-Level, Multiple-Output Circuits 7.7Multiple-Output NAND and NOR Circuits Problems

©2010 Cengage Learning In this unit, we will use the following terminology: 1.AND-OR circuit means a two-level circuit composed of a level of AND gates followed by an OR gate at the output. Sum-of-products(SOP): AB’+ACD+ABC’…… 2.OR-AND circuit means a two-level circuit composed of a level of OR gates followed by an AND gate at the output. Product-of-sums(POS): (A+B’)(A+C+D)(A+B+C’)…… 3.OR-AND-OR circuit means a three-level circuit composed of a level of OR gates followed by a level of AND gates followed by an OR gate at the output. 4.Circuit of AND and OR gates implies no particular ordering of the gates; the output gate may be either AND or OR. Multi-Level Gate Circuits

©2010 Cengage Learning Multi-Level Gate Circuits What’s the concerned issues from a logic designers: 1.Number of gates 2.Gate inputs 3.Level of a circuit a. Cascaded circuit will increase the gate-delay b. and also the cost. c. gate-delay will slow down the operation of a digital system

©2010 Cengage Learning Tree Diagrams Each node on a tree diagram represents a gate, and the number of gate inputs is written beside each node.

©2010 Cengage Learning 4 level, 6 gates, 13 gate inputs

©2010 Cengage Learning 3 level, 6 gates, 19 gate inputs

©2010 Cengage Learning Example Find a circuit of AND and OR gates to realize Consider solutions with two levels of gates and three levels of gates. Try to minimize the number of gates and the total number of gate inputs. Assume that all variables and their complements are available as inputs. First, simplify f by using a Karnaugh map. f (a, b, c, d) = Ʃ m(1, 5, 6, 10, 13, 14)

©2010 Cengage Learning Karnaugh map

©2010 Cengage Learning Figure 7-4 This leads directly to a two-level AND-OR gate circuit.

©2010 Cengage Learning Factoring yields f = c′d(a ′ + b) + cd ′ (a + b)

©2010 Cengage Learning Both of these solutions have an OR gate at the output. A solution with an AND gate at the output might have fewer gates or gate inputs. A two-level OR-AND circuit corresponds to a product-of-sums expression for the function. This can be obtained from the 0′s on the Karnaugh map as follows: Equation (7-4) leads directly to a two-level OR-AND circuit. f ′ = c′d + ab′c′ + cd + a′b′c(7-3) f = (c + d)(a ′ + b + c)(c ′ + d ′ )(a + b + c ′ )(7-4) A solution with an AND gate at the output 要直接從 SOP 轉 POS, 可以取函數之補數, 再以 DeMorgan’s Laws 轉成 POS 來獲得.

©2010 Cengage Learning A solution with an AND gate at the output

©2010 Cengage Learning To get a three-level circuit with an AND gate output, we partially multiply out Equation (7-4) using (X + Y)(X + Z) = X + Y Z: Equation (7-5) would require four levels of gates to realize; however, if we multiply out d′(a + b) and d(a ′ + b), we get which leads directly to a three-level AND-OR-AND circuit. f = [c + d(a ′ + b)][c ′ + d ′ (a + b)](7-5) f = (c + a ′ d + bd)(c ′ + ad ′ + bd ′ )(7-6) f = (c + d)(a ′ + b + c)(c ′ + d ′ )(a + b + c ′ )(7-4)

©2010 Cengage Learning

AND gate output OR gate output

©2010 Cengage Learning For this particular example, the best two-level solution had an AND gate at the output, and the best three-level solution had an OR gate at the output. In general, to be sure of obtaining a minimum solution, one must find both the circuit with the AND-gate output and the one with the OR-gate output. Figure 7-6 Figure 7-5

©2010 Cengage Learning 7.2 NAND gates and NOR gates In this section we will define NAND and NOR gates. Logic designer frequently use NAND and NOR gates because they are faster and use fewer components than AND or OR gates.

©2010 Cengage Learning Toshiba announced NAND flash at the 1987 International Electron Devices Meeting. It has reduced erase and write times, and requires less chip area per cell, thus allowing greater storage density and lower cost per bit than NOR flash; it also has up to ten times the endurance of NOR flash. A USB memory

©2010 Cengage Learning Figure 7-8: NAND Gates NAND gates Figure 7-8(a) shows a three-input NAND gate. The small circle (or “bubble”) at the gate output indicates inversion, so the NAND gate is equivalent to an AND gate followed by an inverter, as shown in Figure 7-8(b). The gate output is F = (ABC)′ = A′ + B′ + C′

©2010 Cengage Learning Figure 7-9: NOR Gates NOR gates Figure 7-9(a) shows a three-input NOR gate. The small circle at the gate output indicates inversion, so the NOR gate is equivalent to an OR gate followed by an inverter. The gate output is F = (A + B + C)′ = A′B′C′

©2010 Cengage Learning Section 7.2 (p. 196) Functionally Complete Set of Gates AND and NOT are a functionally complete set of gates because OR can also be realized using AND and NOT: AND 和 NOT 可以用來實現 OR 之功能

©2010 Cengage Learning Figure 7-10: NAND Gate Realization of NOT, AND, and OR NAND Gates Similarly, any function can be realized using only NAND gates (Similarly, any function can be realized using only NOR gates) NAND 可以用來實現 NOT , OR 和 AND 之功能, logic designer prefer this.

©2010 Cengage Learning Design of Two-Level NAND-Gate Circuits Section 7.3 (p. 197) A two-level circuit composed of AND and OR gates is easily converted to a circuit composed of NAND gates or NORE gates using F = (F′)′ and then applying DeMorgan′s laws: (X 1 + X 2 + … + X n )′ = X 1 ′ X 2 ′…X n ′(7-11) (X 1 X 2 …X n )′ = X 1 ′ + X 2 ′ + … + X n ′(7-12)

©2010 Cengage Learning Design of Two-Level NAND-Gate Circuits Section 7.3 (p. 197) The following example illustrates conversion of a minimum sum-of- products form to several other two-level forms: F = A + BC ′ + B ′ CD = [(A + BC ′ + B ′ CD) ′ ] ′ AND-OR = [A ′ (BC ′ ) ′ (B ′ CD) ′ ] ′ NAND-NAND = [A ′ (B ′ + C) (B + C ′ + D ′ )] ′ OR-NAND = A + (B ′ + C) ′ + (B + C ′ + D ′ ) ′ NOR-OR

©2010 Cengage Learning Figure 7-11a: Eight Basic Forms for Two-Level Circuits

©2010 Cengage Learning Design of Two-Level NOR-Gate Circuits Section 7.3 (p. 197) If we want a two-level circuit containing only NOR gates, we should start with the minimum product-of-sums form for F instead of the minimum sum-of-products. After obtaining the minimum product-of-sums from a Karnaugh map, F can be written in the following two- level forms: F = (A + B + C)(A + B ′ + C ′ )(A + C ′ + D) OR-AND = {[(A + B + C)(A + B ′ + C ′ )(A + C ′ + D)] ′ } ′ = [(A + B + C) ′ + (A + B ′ + C ′ ) ′ + (A + C ′ + D) ′ ] ′ NOR-NOR = (A ′ B ′ C ′ + A ′ BC + A ′ CD ′ ) ′ AND-NOR = (A ′ B ′ C ′ ) ′ (A ′ BC) ′ (A ′ CD ′ ) ′ NAND-AND

©2010 Cengage Learning Figure 7-11b: Eight Basic Forms for Two-Level Circuits

©2010 Cengage Learning The other eight possible two-level forms are degenerate in the sense that they cannot realize all switching functions. Consider, for example, the following NAND-NOR circuit: From this example, it is clear that the NAND-NOR form can realize only a product of literals and not a sum of products. NAND and NOR gates are readily available in IC form.So two commonly used circuit is NAND-NAND or NOR-NOR.

©2010 Cengage Learning Figure 7-12: AND-OR to NAND-NAND Transformation Design of Minimum Two-Level NAND-NAND Circuits Procedure for designing a minimum two-level NAND-NAND circuit: 1. Find a minimum sum-of-products expression for F. 2. Draw the corresponding two-level AND-OR circuit. 3. Replace all gates with NAND gates leaving the gate interconnection unchanged. If the output gate has any single literals as inputs, complement these literals.

©2010 Cengage Learning Figure 7-12: AND-OR to NAND-NAND Transformation Design of Minimum Two-Level NAND-NAND Circuit F = l 1 + l P 1 + P 2 + F = ( l 1 ′ l 2 ′ P 1 ′P 2 ′ )′

©2010 Cengage Learning Design of Minimum Two-Level NOR-NOR Circuit Procedure for designing a minimum two-level NOR- NOR circuit: 1. Find a minimum products-of-sum expression for F. 2. Draw the corresponding two-level OR-AND circuit. 3. Replace all gates with NOR gates leaving the gate interconnection unchanged. If the output gate has any single literals as inputs, complement these literals.

©2010 Cengage Learning Design of Multi-Level NAND- and NOR-Gate Circuits 1.Simplify the switching function to be realized. 2.Design a multi-level circuit of AND and OR gates. The output gate must be OR. AND gate outputs cannot be used as AND- gate inputs; OR-gate outputs cannot be used as OR-gate inputs. 3.Number the levels starting with the output gate as level 1. Replace all gates with NAND gates, leaving all interconnections between gates unchanged, leave the inputs to levels 2,4,6,… unchanged. Invert any literals which appear as inputs to levels 1,3,5,… The following procedure may be used to design multi-level NAND-gate circuits: 對於多級電路之設計 : (1) 若是最終 output 為 OR gate, 以 Multi-Level NAND-gate 執行之。 (2) 若是最終 out put 為 AND gate, 以 Multi-Level NOR-gate 執行之。

©2010 Cengage Learning Multi-Level Circuit Conversion to NAND Gates EX: F1= a′ [b′+c(d+e′)+f′g′]+hi′j+k Steps: 1.Realize the function with AND-OR 2.Replacing all gate with NAND 3.2,4,6,…leave unchanged 1,3,5… invert literals

©2010 Cengage Learning Alternative Gate Symbols Section 7.5 (p. 201) Logic designers who design complex digital systems often find it convenient to use more than one representation for a given type of gate. For example, an inverter can be represented by

©2010 Cengage Learning Alternative Gate Symbols Equivalent gate symbols based on DeMorgan′s Laws

©2010 Cengage Learning NAND Gate Circuit Conversion: From NAND-NAND to OR- AND

©2010 Cengage Learning Conversion to NOR Gates

©2010 Cengage Learning EX: AND-OR Circuit to NAND Gates If AND and OR gates don’t alternate?

©2010 Cengage Learning Design of Two-Level, Multiple-Output Circuits Section 7.6 (p. 204) Solution of digital design problems often requires the realization of several functions of the same variables. Although each function could be realized separately, the use of some gates in common between two or more functions sometimes leads to a more economical realization. Example: Design a circuit with four inputs and three outputs which realizes the functions F 1 (A, B, C, D) = Ʃ m(11, 12, 13, 14, 15) F 2 (A, B, C, D) = Ʃ m(3, 7, 11, 12, 13, 15) F 3 (A, B, C, D) = Ʃ m(3, 7, 12, 13, 14, 15)(7-22)

©2010 Cengage Learning Figure 7-18: Karnaugh Maps for Equations (7-22) F 1 (A, B, C, D) = Ʃ m(11, 12, 13, 14, 15) F 2 (A, B, C, D) = Ʃ m(3, 7, 11, 12, 13, 15) F 3 (A, B, C, D) = Ʃ m(3, 7, 12, 13, 14, 15)

©2010 Cengage Learning Realization of Equations (The cost is 9 gates and 21 inputs ) Realization of functions separately (9 Gates)

©2010 Cengage Learning Multiple-Output Realization of Equations: A reduced circuit Realization of functions with shared gates (lower overall cost) (7 Gates) 1.AB in common 2.CD in common

©2010 Cengage Learning Figure 7-21 Another example of sharing gates among multiple outputs to reduce cost.(From K-map) f 1 = Ʃ m(2, 3, 5, 7, 8, 9, 10, 11, 13, 15) f 2 = Ʃ m(2, 3, 5, 6, 7, 10, 11, 14, 15) f 3 = Ʃ m(6, 7, 8, 9, 13, 14, 15)

©2010 Cengage Learning f 1 = a′bd + abd + ab ′ c ′ + b ′ c f 2 = c + a ′ bd f 3 = bc + ab ′ c ′ + abd Minimal Solution 10 gates 25 gate inputs 8 gates 22 gate inputs After reduced

©2010 Cengage Learning Figure 7-22 In this example, the best solution is obtained by not combining the circled 1 with adjacent 1’s.

©2010 Cengage Learning Figure 7-23 The solution with the maximum number of common terms is not necessarily the best solution, as illustrated by this example.

©2010 Cengage Learning Figure 7-24: Multi-Level Circuit Conversion to NOR Gates The procedure for design of single-output, multi-level NAND- and NOR-gate circuits also applies to multiple-output circuits

©2010 Cengage Learning HW: