unit 7 multi-level gate circuits / nand and nor gates

26
Unit 7 Unit 7 Multi-Level Gate Multi-Level Gate Circuits / Circuits / NAND and NOR Gates NAND and NOR Gates Ku-Yaw Chang Ku-Yaw Chang [email protected] [email protected] Assistant Professor, Department of Assistant Professor, Department of Computer Science and Information Engineering Computer Science and Information Engineering Da-Yeh University Da-Yeh University

Upload: umeko

Post on 10-Jan-2016

28 views

Category:

Documents


2 download

DESCRIPTION

Unit 7 Multi-Level Gate Circuits / NAND and NOR Gates. Ku-Yaw Chang [email protected] Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University. Objectives. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

Unit 7Unit 7Multi-Level Gate Circuits / Multi-Level Gate Circuits /

NAND and NOR GatesNAND and NOR Gates

Ku-Yaw ChangKu-Yaw [email protected]@mail.dyu.edu.tw

Assistant Professor, Department of Assistant Professor, Department of Computer Science and Information EngineeringComputer Science and Information Engineering

Da-Yeh UniversityDa-Yeh University

Page 2: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

222004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

ObjectivesObjectives

Design a minimal two-level or multi-level Design a minimal two-level or multi-level circuit of AND and OR gates to realize a circuit of AND and OR gates to realize a given function.given function.

Design or analyze a two-level gate circuit Design or analyze a two-level gate circuit using any one of the eight basic forms.using any one of the eight basic forms.

Design or analyze a multi-level NAND-Design or analyze a multi-level NAND-gate or NOR-gate circuit.gate or NOR-gate circuit.

Page 3: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

332004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

ObjectivesObjectives

Convert circuits of AND and OR gates to Convert circuits of AND and OR gates to circuits of NAND gates or NOR gates, and circuits of NAND gates or NOR gates, and conversely, by adding or deleting inversion conversely, by adding or deleting inversion bubbles.bubbles.

Design a minimal two-level, multiple-Design a minimal two-level, multiple-output AND-OR, OR-AND, NAND-NAND, output AND-OR, OR-AND, NAND-NAND, or NAND-NOR circuit using Karnaugh or NAND-NOR circuit using Karnaugh maps.maps.

Page 4: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

442004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

OutlineOutline

7.1 Multi-Level Gate Circuits7.1 Multi-Level Gate Circuits7.27.2 NAND and NOR GatesNAND and NOR Gates7.37.3 Design of Two-Level Circuits Using NANDDesign of Two-Level Circuits Using NAND and NOR Gates and NOR Gates7.47.4 Design of Multi-Level NAND and NOR GateDesign of Multi-Level NAND and NOR Gate Circuits Circuits7.57.5 Circuit Conversion Using Alternative GateCircuit Conversion Using Alternative Gate Symbols Symbols7.67.6 Design of Two-Level, Multiple-OutputDesign of Two-Level, Multiple-Output Circuits Circuits7.77.7 Multiple-Output NAND and NOR CircuitsMultiple-Output NAND and NOR Circuits

Page 5: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

552004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

7.1 Multi-Level Gate Circuits7.1 Multi-Level Gate Circuits

LevelLevel Maximum number of gates cascaded in series Maximum number of gates cascaded in series

between a circuit input and the outputbetween a circuit input and the output

Page 6: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

662004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

Four-Level Realization of ZFour-Level Realization of Z

Page 7: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

772004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

TerminologyTerminology

AND-OR circuitAND-OR circuit A two-level circuit composed of a level of AND A two-level circuit composed of a level of AND

gates followed by an OR gate at the outputgates followed by an OR gate at the output

Page 8: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

882004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

TerminologyTerminology

OR-AND circuitOR-AND circuit A two-level circuit composed of a level of OR gates A two-level circuit composed of a level of OR gates

followed by an AND gate at the outputfollowed by an AND gate at the output

Page 9: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

992004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

TerminologyTerminology

OR-AND-OR circuitOR-AND-OR circuit A three-level circuit composed of a level of OR A three-level circuit composed of a level of OR

gates followed by a level of AND gates followed by gates followed by a level of AND gates followed by an OR gate at the outputan OR gate at the output

Page 10: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

10102004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

TerminologyTerminology

Circuit of AND and OR gatesCircuit of AND and OR gates No particular ordering of the gatesNo particular ordering of the gates The output gate may be either AND or OR.The output gate may be either AND or OR.

Page 11: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

11112004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

Trade-offTrade-off

Number ofNumber of GatesGates Gate inputsGate inputs LevelsLevels

Gate delayGate delay

Page 12: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

12122004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

Example 7-1Example 7-1

Z = (AB+C) (D+E+FG) + HZ = (AB+C) (D+E+FG) + H

Page 13: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

13132004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

Example 7-1Example 7-1

Partially multiplying outPartially multiplying out

Z = (AB+C) (D+E+FG) + HZ = (AB+C) (D+E+FG) + H

= (AB+C) [ = (AB+C) [(D+E)(D+E)+FG] + H+FG] + H

= = AB(D+E) + C(D+E) + ABFG + CFGAB(D+E) + C(D+E) + ABFG + CFG + H + H

Page 14: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

14142004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

Example 7-1Example 7-1

Page 15: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

15152004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

Example 7-1Example 7-1

Page 16: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

16162004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

ProblemProblem

Find a circuit of AND and OR gates to Find a circuit of AND and OR gates to realizerealize

f(a, b, c, d) = f(a, b, c, d) = ∑ m(1, 5, 6, 10,13, 14)∑ m(1, 5, 6, 10,13, 14)

Page 17: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

17172004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

First, simplify f by using a Karnaugh mapFirst, simplify f by using a Karnaugh map

f(a, b, c, d) =f(a, b, c, d) =∑ m(1, 5, 6, 10,13, 14)∑ m(1, 5, 6, 10,13, 14)

Page 18: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

18182004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

This leads directly to a two-level AND-OR gate This leads directly to a two-level AND-OR gate circuit f = a’c’d + bc’d + bcd’ + acd’circuit f = a’c’d + bc’d + bcd’ + acd’

Page 19: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

19192004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

FactoringFactoring

f = a’c’d + bc’d + bcd’ + acd’ f = a’c’d + bc’d + bcd’ + acd’

yieldsyields

f = c’d (a’ + b) + cd’(a + b) f = c’d (a’ + b) + cd’(a + b)

Page 20: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

20202004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

This leads directly to a three-level OR-AND-OR This leads directly to a three-level OR-AND-OR gate circuitgate circuit

f = c’d (a’ + b) + cd’(a + b)f = c’d (a’ + b) + cd’(a + b)

Page 21: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

21212004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

Both solutions have an OR gate at the Both solutions have an OR gate at the outputoutput Sum of productsSum of products Using 1s on the Karnaugh mapUsing 1s on the Karnaugh map

How about having an AND gate at the How about having an AND gate at the output?output? Product of sumsProduct of sums Using 0s on the Karnaugh mapUsing 0s on the Karnaugh map

Page 22: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

22222004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

Secondly, simplify f by using a Karnaugh mapSecondly, simplify f by using a Karnaugh map(considering 0s)(considering 0s)

f’ = c’d’ + ab’c’ +f’ = c’d’ + ab’c’ + cd + a’b’c cd + a’b’c

f = (c+d) (a’+b+c)f = (c+d) (a’+b+c) (c’+d’) (a+b+c’) (c’+d’) (a+b+c’)

Page 23: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

23232004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

This leads directly to a two-level OR-AND circuitThis leads directly to a two-level OR-AND circuit

f = (c+d)(a’+b+c)(c’+d’)(a+b+c’)f = (c+d)(a’+b+c)(c’+d’)(a+b+c’)

Page 24: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

24242004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

Partially multiplying outPartially multiplying out

f = (c+d)(a’+b+c)(c’+d’)(a+b+c’) f = (c+d)(a’+b+c)(c’+d’)(a+b+c’)

using (X+Y)(X+Z) = X+YZusing (X+Y)(X+Z) = X+YZ

f = [c + d(a’+b)] [c’ + d’(a+b)] f = [c + d(a’+b)] [c’ + d’(a+b)]

= (c+a’d+bd)(c’+ad’+bd’) = (c+a’d+bd)(c’+ad’+bd’)

Page 25: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

25252004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

SolutionSolution

This leads directly to a three-level AND-OR-This leads directly to a three-level AND-OR-AND circuitAND circuit

f = (c+a’d+bd)(c’+ad’+bd’)f = (c+a’d+bd)(c’+ad’+bd’)

Page 26: Unit 7 Multi-Level Gate Circuits /  NAND and NOR Gates

26262004/03/012004/03/01 Fundamentals of Logic DesignFundamentals of Logic Design

ComparisonComparison

f =f = LevelLevel GatesGates GateGateInputsInputs

a’c’d + bc’d + bcd’ + acd’a’c’d + bc’d + bcd’ + acd’ 22 55 1616

c’d(a’+b) + cd’(a+b)c’d(a’+b) + cd’(a+b) 33 55 1212

(c+d)(a’+b+c)(c’+d’)(a+b+c’)(c+d)(a’+b+c)(c’+d’)(a+b+c’) 22 55 1414

(c+a’d+bd)(c’+ad’+bd’)(c+a’d+bd)(c’+ad’+bd’) 33 77 1616