CH07 Multilevel Gate Network v4 -...

52
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU CH7 Multilevel Gate Network CH7 Multilevel Gate Network Lecturer:吳安宇 Date2005/10/28

Transcript of CH07 Multilevel Gate Network v4 -...

Page 1: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

ACCESS IC LAB

Graduate Institute of Electronics Engineering, NTU

CH7 Multilevel Gate NetworkCH7 Multilevel Gate Network

Lecturer:吳安宇Date:2005/10/28

Page 2: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 2台灣大學 吳安宇 教授

OutlineOutlinev7.1v7.2 Other Types of Logic Gatesv7.3 Two-level NAND- and NOR- Gate

Networkv7.4 Multi-level NAND, NOR-gate circuitsv7.5 Circuit Conversion Using Alternative Gate

Symbolsv7.6 Design of Two-level Multiple-output

Networkv7.7 Multiple-Output NAND and NOR Circuits

Page 3: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 3台灣大學 吳安宇 教授

77--11v AND-OR network : A two-level network composed of

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

v OR-AND network : A two-level network composed of a level of OR gate followed by an AND gate at the output.

v OR-AND-OR network : A three-level network composed of a level of OR gates, followed by a level of AND gates, followed by an OR gate at output.

Page 4: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 4台灣大學 吳安宇 教授

FourFour--Level Realization of ZLevel Realization of Z

4 levels6 gates13 gate inputs

Figure 7-1Four-Level Realization of Z

Page 5: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 5台灣大學 吳安宇 教授

ThreeThree--Level Realization of ZLevel Realization of Z

3 levels6 gates19 gate inputs

Figure 7-2Three-Level Realization of Z

Page 6: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 6台灣大學 吳安宇 教授

Network of AND Network of AND andand OR gates : OR gates : GeneralGeneral

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

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

Gate input ; CostLevel ; SpeedTrade-off among cost & speed !

4 levels6 gates13 gate inputs

3 levels6 gates19 gate inputs

Page 7: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 7台灣大學 吳安宇 教授

EXAMPLE OF MULTIEXAMPLE OF MULTI--LEVEL DESIGN USING LEVEL DESIGN USING AND AND ANDAND OR GATES (1/6)OR GATES (1/6)

v Problem: Find a network of AND and OR gates to realizef(a,b,c,d) = Σm(1,5,6,10,13,14)

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 variable and their complements are available as inputs.

Solution: First simplify f by using Karnaugh map:

(7-1)

Page 8: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 8台灣大學 吳安宇 教授

MULTIMULTI--LEVEL DESIGN (2/6)LEVEL DESIGN (2/6)

v F = a’c’d + bc’d + bcd’ + acd’v This leads directly to a two-level AND-OR gate network

Page 9: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 9台灣大學 吳安宇 教授

MULTIMULTI--LEVEL DESIGN (3/6)LEVEL DESIGN (3/6)

v Factoring (7-1) yieldsF = c’d(a’ + b) + cd’(a + b) (7-2)

vWhich leads to the following three-level OR-AND-OR gate network:

Page 10: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 10台灣大學 吳安宇 教授

EXAMPLE OF MULTIEXAMPLE OF MULTI--LEVEL DESIGN (4/6)LEVEL DESIGN (4/6)

v A two-level OR-AND network corresponds to a product-of-sums expression for the function.

v This can be obtained from the 0’s on the Karnaugh map as follows:

f’ = c’d’ + ab’c’ + cd + a’b’c (7-3)f = (c + d)(a’ + b + c)(c’ + d’)(a + b + c’) (7-4)

v Eq. (7-4) leads directly to a two-level OR-AND network:

Page 11: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 11台灣大學 吳安宇 教授

EXAMPLE OF MULTIEXAMPLE OF MULTI--LEVEL DESIGN (5/6)LEVEL DESIGN (5/6)

To get a three-level network with an AND gate output, we partially multiply out Equation (7-4) using (X+Y)(X+Z) = X + YZ:

f = [c + d(a’ + b)][c’ + d’(a + b)] (7-5)v Equation (7-5) would require four levels of gates to realize it.v Multiply out d’(a + b) and d(a’ + b) we get

f = (c + a’d + bd)(c’ + ad’ + bd’) (7-6)

Page 12: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 12台灣大學 吳安宇 教授

EXAMPLE OF MULTIEXAMPLE OF MULTI--LEVEL DESIGN (6/6)LEVEL DESIGN (6/6)

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 network with the AND-gate output and the one with the OR-gate output.

Page 13: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 13台灣大學 吳安宇 教授

OutlineOutlinev7.1v7.2 Other Types of Logic Gatesv7.3 Two-level NAND- and NOR- Gate

Networkv7.4 Multi-level NAND, NOR-gate circuitsv7.5 Circuit Conversion Using Alternative Gate

Symbolsv7.6 Design of Two-level Multiple-output

Networkv7.7 Multiple-Output NAND and NOR Circuits

Page 14: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 14台灣大學 吳安宇 教授

NAND gateNAND gatev F = (ABC)’ = A’ + B’ + C’ (DeMorgan’s Law)

General = F = (X1X2…Xn)’ = X1’+X2’+…+Xn’

Page 15: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 15台灣大學 吳安宇 教授

NOR gateNOR gate

v F = (A+B+C)’ = A’ • B’ • C’ (DeMorgan’s Law)

General form: F = (X1+X2+…+Xn)’ = X1’ •X2’ •… •Xn’

Page 16: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 16台灣大學 吳安宇 教授

Majority and Minority Gates Majority and Minority Gates (seldom used)(seldom used)

Mabc

FM

mabc

Fm

abc FM Fm

000001010011100101110111

00010111

11101000

vFM = a’bc + ab’c + abc’ + abc = bc + ac +abFm = (bc + ac + ab)’ = (b’ + c’)(a’ + c’)(a’ + b’)

Page 17: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 17台灣大學 吳安宇 教授

Functionally Complete Set (1/5)Functionally Complete Set (1/5)v A set of logic operations is functionally complete if

any Boolean function can be expressed by this set.

ex. {AND,OR,NOT} f = a’b + b’c + c’a

ex. {AND,NOT} , OR? (X+Y) = [X’•Y’] = X+Y(DeMorgan)

Page 18: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 18台灣大學 吳安宇 教授

Functionally Complete Set (2/5)Functionally Complete Set (2/5)ex. {NAND}

a. (X•X)’ = X’ (NOT) b. [(A•B)’]’ = AB (AND)

c. [A’•B’]’ = A + B (OR)

Page 19: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 19台灣大學 吳安宇 教授

Functionally Complete Set (3/5)Functionally Complete Set (3/5)ex. {OR,NOT} and {NOR} By yourself!

ex. {Minority gate}

mabc

Fm

Fm = b’c’ + a’b’ + a’c’

a b c Fm

4567

1 0 01 0 11 1 01 1 1

0123

0 0 00 0 10 1 00 1 1

11101000

abc 0 1

00

01

11

10

1

1

11

Page 20: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 20台灣大學 吳安宇 教授

Functionally Complete Set (4/5)Functionally Complete Set (4/5)ex. If Minority gate is functionally complete?(NOT)

(AND) set A=1, F = B’C’= XY

mx

F = (X’•X’) + (X’•X’) + (X’•X’) = X’

X = B’Y = C’

m

m

m

X

Y

1

X’

Y’

(X’)’•(Y’)’ = X•Y

(a)

Page 21: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 21台灣大學 吳安宇 教授

Functionally Complete Set (5/5)Functionally Complete Set (5/5)

mm

XY0

X’ + Y’

(X’ + Y’) = XY

mm

1XY

X’•Y’

(X’•Y’)’ = X+Y

(b) Set C = 0, F = A’ + B’, (A’ + B’) = AB (AND)

(OR)

Page 22: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 22台灣大學 吳安宇 教授

OutlineOutlinev7.1v7.2 Other Types of Logic Gatesv7.3 Two-level NAND- and NOR- Gate

Networkv7.4 Multi-level NAND, NOR-gate circuitsv7.5 Circuit Conversion Using Alternative Gate

Symbolsv7.6 Design of Two-level Multiple-output

Networkv7.7 Multiple-Output NAND and NOR Circuits

Page 23: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 23台灣大學 吳安宇 教授

DeMorganDeMorgan’’ss LawLawv (X1+X2+…+Xn)’ = X1’•X2’ •…•Xn’

(X1•X2•…•Xn)’ = X1’ + X2’ +…+Xn’

F = A + BC’ + B’CD = [(A+BC’+B’CD)’]’= [A’ •(BC’)’ •(B’CD)’]’= [A’ •(B’+C) •(B+C’+D’)]’= A+(B’+C)’+(B+C’+D’)’

(AND-OR)

(NAND-NAND)

(OR-NAND)

(NOR-OR)

Page 24: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 24台灣大學 吳安宇 教授

Eight Basic Forms for TwoEight Basic Forms for Two--Level Level NetworksNetworks

Figure 7-14Eight Basic Forms for Two-Level Networks

Page 25: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 25台灣大學 吳安宇 教授

To apply NORTo apply NOR--NOR gate (twoNOR gate (two--level)level)v F = (A+B+C)(A+B’+C’)(A+C’+D)

= {[(A+B+C)(A+B’+C’)(A+C’+D)]’}’= {(A+B+C)’+(A+B’+C’)’+(A+C’+D)’}’= (A’B’C’+A’BC+A’CD’)’= (A’B’C’)’•(A’BC)’ •(A’CD’)’

(OR-AND)

(NOR-NOR)(AND-NOR)(NAND-AND)

Page 26: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 26台灣大學 吳安宇 教授

OthersOthersv AND-AND, OR-OR, OR-NOR, AND-NAND, NAND-

NOR, NOR-NAND are degenerate

ex.

Page 27: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 27台灣大學 吳安宇 教授

Procedure to design a minimum Procedure to design a minimum NANDNAND--NAND network (twoNAND network (two--level) (1/2)level) (1/2)v (1) Find a minimum Sum-of-Product

expression of F(2) Draw AND-OR (2-level) Network(3) Convert into NAND-NAND Network

v How about NOR-NOR??v Check 7-6 for examples!!

ABCD

FABCD

F

ABCD

(X’ + Y’) = (XY)’F = AB + CD (SOP Form)

Page 28: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 28台灣大學 吳安宇 教授

Procedure to design a minimum Procedure to design a minimum NANDNAND--NAND network (twoNAND network (two--level) (2/2)level) (2/2)vFig.7-12 example (p.187)

F = l1+ l2+ …+P1+P2+…= (l1’ l2’•…•P1’•P2’•…)’

Page 29: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 29台灣大學 吳安宇 教授

A procedure to design minimum 2A procedure to design minimum 2--level NORlevel NOR--NOR networkNOR network

Å Draw the two-level OR-AND networkÇ Find a minimum POS expression of FÉ Replace all gates with NOR gates

abcd

abcd

F F

Page 30: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 30台灣大學 吳安宇 教授

OutlineOutlinev7.1v7.2 Other Types of Logic Gatesv7.3 Two-level NAND- and NOR- Gate

Networkv7.4 Multi-level NAND, NOR-gate circuitsv7.5 Circuit Conversion Using Alternative Gate

Symbolsv7.6 Design of Two-level Multiple-output

Networkv7.7 Multiple-Output NAND and NOR Circuits

Page 31: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 31台灣大學 吳安宇 教授

Procedure Procedure 1) Simplify the switching function.2) Convert into multi-level AND-OR network.3) Output gate is level 1, mark all levels.4) Leave inputs to levels 2,4,6,…unchanged.5) Invert inputs to levels 1,3,5,…

Page 32: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 32台灣大學 吳安宇 教授

Design exampleDesign examplevF1 = a’ [ b’ + c(d + e’) + f’g’ ] + hi’j + k

Page 33: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 33台灣大學 吳安宇 教授

OutlineOutlinev7.1v7.2 Other Types of Logic Gatesv7.3 Two-level NAND- and NOR- Gate

Networkv7.4 Multi-level NAND, NOR-gate circuitsv7.5 Circuit Conversion Using Alternative Gate

Symbolsv7.6 Design of Two-level Multiple-output

Networkv7.7 Multiple-Output NAND and NOR Circuits

Page 34: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 34台灣大學 吳安宇 教授

Gate SymbolsGate Symbols

Page 35: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 35台灣大學 吳安宇 教授

NAND gate networkNAND gate network

Page 36: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 36台灣大學 吳安宇 教授

Conversion to NOR GatesConversion to NOR Gatesv Even if AND and OR gates do not alternate, we can

still convert an AND-OR circuit into a NAND OR NOR circuit, but may need extra inverters.

Figure 7-16Conversion to NOR Gates

Start with level1

Page 37: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 37台灣大學 吳安宇 教授

Conversion of ANDConversion of AND--OR Circuit to OR Circuit to NAND GatesNAND Gates

Figure 7-17Conversion of AND-OR Circuit to NAND Gates

(1) 換成NAND gates

(2) Cannot cancel=> Inverter

(3) NAND gates Implement

Page 38: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 38台灣大學 吳安宇 教授

OutlineOutlinev7.1v7.2 Other Types of Logic Gatesv7.3 Two-level NAND- and NOR- Gate

Networkv7.4 Multi-level NAND, NOR-gate circuitsv7.5 Circuit Conversion Using Alternative Gate

Symbolsv7.6 Design of Two-level Multiple-output

Networkv7.7 Multiple-Output NAND and NOR Circuits

Page 39: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 39台灣大學 吳安宇 教授

Design of a Logic Network with four Design of a Logic Network with four inputs and three outputsinputs and three outputs

F1(A,B,C,D) = Σm(11,12,13,14,15)F2(A,B,C,D) = Σm(3,7,11,12,13,15)F3(A,B,C,D) = Σm(3,7,12,13,14,15)

9 gates21 gates

inputs

ACD CD A’CD

Page 40: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 40台灣大學 吳安宇 教授

Logic Network Realization (1/2)Logic Network Realization (1/2)

CDAB

AB is shared (F1&F3)CD = A’CD + ACD

Page 41: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 41台灣大學 吳安宇 教授

Logic Network Realization (2/2)Logic Network Realization (2/2)v Watch that AB is shared by F1 and F3

CD = ACD + A’CD = CD(A + A’)

=> Use of a minimum SOP => minimum cost solution

=> Guideline: (1) Minimize the total number of gates.(2) If the number of gates is the same, the

one with minimum number of gate input is chosen.

=>7 gates 18 gate inputs

Page 42: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 42台灣大學 吳安宇 教授

Example: A 4Example: A 4--inputs/3inputs/3--outputs design outputs design (1/2)(1/2)

v f1 = Σm(2,3,5,7,8,9,10,11,13,15)f2 = Σm(2,3,5,6,7,10,11,14,15)f3 = Σm(6,7,8,9,13,14,15)

Figure 9-4

Page 43: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 43台灣大學 吳安宇 教授

Example: A 4Example: A 4--inputs/3inputs/3--outputs design outputs design (2/2)(2/2)

vIf each function is minimized separately,=> f1 = bd + b’c + ab’

f2 = c + a’bdf3 = bc + ab’c +

vCheck K-map to see common minterms=> f1 = a’bd + abd + ab’c’ + b’c

f2 = c + a’bdf3 = bc + ab’c + abd

abdac’d

⇒10 gates25 gate inputs

⇒8 gates22 gate inputs

Page 44: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 44台灣大學 吳安宇 教授

Other casesOther cases

Figure 9-5

Figure 9-6

Page 45: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 45台灣大學 吳安宇 教授

Determination of essential prime Determination of essential prime implicantsimplicants for for multiple output realization (1/2)multiple output realization (1/2)

v PI’s essential to an individual function may not be essential to the multiple-output realization.e.g. (Fig 9-4) bd is EPI to f1 (cover m5), but it is not

essential (m5 also appear on f2 map).

vModified procedure: check each 1 on the map to see if it is covered by only one PI.

v (Fig.9-5) cd’ is essential to f1 (m1)abd is not. (f1 and f2)

Page 46: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 46台灣大學 吳安宇 教授

Determination of essential prime Determination of essential prime implicantsimplicants for for multiple output realization (2/2)multiple output realization (2/2)

v (Fig 9-6) m2 and m5 of f1 are not covered by f2Å m2 is covered by f1 (a’d’), a’d’ is essential to f1Ç M5 is covered by a’bc’ of f2, a’bc’ is essential to f2 on f2 map,

bd’ is essential (Why?) (Check) É Once the EPI of f1 & f2 are looped, selection of the

remaining terms to form thr minimum solution is obvious.

v (Fig 9-4) Every minterm of f1 are covered by f2 & f3=> More sophisticated solution is needed

Page 47: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 47台灣大學 吳安宇 教授

Design of a code conversion network Design of a code conversion network (1/2)(1/2)

From 8-4-2-1 BCD code toexcess-3 code

Page 48: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 48台灣大學 吳安宇 教授

Design of a code conversion network Design of a code conversion network (2/2)(2/2)

=> Checking for common terms among the w,x, and y maps reveals that the use of common terms will not help simplify the network.

w = a + bc + bdx = bc’d’ + b’d + b’cy = c’d’ + cdz = d’

Three levels with 9 gates

W = a + b(c + d)X = bc’d’ + b’(c + d)

(c + d) shared

Best Solution

(10gates)

Page 49: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 49台灣大學 吳安宇 教授

Supplement (1/2)Supplement (1/2)v Case I:

(a) Not to combine 1 with adjacent 1’s(b) c’d is essential to f1 for multiple-output

abd is not essential for realization.

is essential to f1 (cover m15)

c’d

abd

Page 50: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 50台灣大學 吳安宇 教授

Supplement (2/2)Supplement (2/2)Case II:

(a) max number of common terms is not best(b) m2 = cover by a’d’ (essential to f1 & all)

m5 = cover by a’bc (essential to f1 & all)m12 = cover by bd’ (essential to f2 & all)

Å Basic = Identify EPI to all functionsÇ Cannot be applied to 7-21É Very difficult to find global optimal solution!!

Page 51: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 51台灣大學 吳安宇 教授

OutlineOutlinev7.1v7.2 Other Types of Logic Gatesv7.3 Two-level NAND- and NOR- Gate

Networkv7.4 Multi-level NAND, NOR-gate circuitsv7.5 Circuit Conversion Using Alternative Gate

Symbolsv7.6 Design of Two-level Multiple-output

Networkv7.7 Multiple-Output NAND and NOR Circuits

Page 52: CH07 Multilevel Gate Network v4 - 國立臺灣大學access.ee.ntu.edu.tw/course/logic_design_94first/LectureNotes/CH0… · EXAMPLE OF MULTI-LEVEL DESIGN USING AND AND OR GATES (1/6)

Graduate Institute of Electronics Engineering, NTU

pp. 52台灣大學 吳安宇 教授

MultipleMultiple--Output NAND and NOR CircuitsOutput NAND and NOR Circuitsv The procedure given in Section7-4 for design of single-output, multi-level NAND

and NOR-gate circuits also applies to multiple-output circuits. If all of the output gates are OR gates, direct conversion to a NAND-gate circuit is possible. If all of the output gates are AND, direct conversion to a NOR-gate circuit is possible. Figure 7-24 gives an example of converting a 1-output circuit to NOR gates. Note that the inputs to the first and third levels of NOR gates are inverted.

F1 = [(a + b’)c + d](e’ + f) F2 = [(a + b’)c + g’](e’ + f)h

Figure 7-24