advd lecture 7 logical effort

55
Digital VLSI Design • Full Automation Maximum benefit of scaling High speed , low power low power • Robustness

Upload: hardik-gupta

Post on 17-Jan-2017

23 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Advd   lecture 7 logical effort

Digital VLSI Design

• Full Automation• Maximum benefit of scaling• High speed ,• low power• Robustness

• Full Automation• Maximum benefit of scaling• High speed ,• low power• Robustness

Page 2: Advd   lecture 7 logical effort

Need of simple delay model

• Delay depends on many factors—charge,discharge, parasitic, w/L, fan in- fanout,topology

• Existing delay models do not give clearindication of contribution of each factor

• Circuit designers waste too much timesimulating and tweaking circuits

2

• Delay depends on many factors—charge,discharge, parasitic, w/L, fan in- fanout,topology

• Existing delay models do not give clearindication of contribution of each factor

• Circuit designers waste too much timesimulating and tweaking circuits

Page 3: Advd   lecture 7 logical effort

Using LE in design of inverterchain

3

Using LE in design of inverterchain

Page 4: Advd   lecture 7 logical effort

CKT DESIGN PROBLEMS

• Chip designers face a bewildering array ofchoices.

• What is the best circuit topology for afunction?

• How large should the transistors be?• How many stages of logic give least

delay?

4

• Chip designers face a bewildering array ofchoices.

• What is the best circuit topology for afunction?

• How large should the transistors be?• How many stages of logic give least

delay?

Page 5: Advd   lecture 7 logical effort

Need of simple delay model

• Circuit designers waste too much time

simulating and tweaking circuits

• High speed logic designers need to know

where time is going in their logic

• CAD engineers need to understand

circuits to build better tools5

• Circuit designers waste too much time

simulating and tweaking circuits

• High speed logic designers need to know

where time is going in their logic

• CAD engineers need to understand

circuits to build better tools

Page 6: Advd   lecture 7 logical effort

Delay in a Logic Gate

6

Page 7: Advd   lecture 7 logical effort

Delay contributors

• τ is speed of basic transistor

• p-intrinsic delay of the gate due to its own

internal capacitances

• h—combines the effect of external load

with sizes of transistors

• g– effect of circuit topology7

• τ is speed of basic transistor

• p-intrinsic delay of the gate due to its own

internal capacitances

• h—combines the effect of external load

with sizes of transistors

• g– effect of circuit topology

Page 8: Advd   lecture 7 logical effort

Observations• Logical effort describes relative ability of gate

topology to deliver current [defined to be 1(bestav. of charge and discharge both] for aninverter)

• Electrical effort is the ratio of output to inputcapacitance

• Delay increases with electrical effort• Delay increases ---More complex gates have

greater logical effort and parasitic delay

8

• Logical effort describes relative ability of gatetopology to deliver current [defined to be 1(bestav. of charge and discharge both] for aninverter)

• Electrical effort is the ratio of output to inputcapacitance

• Delay increases with electrical effort• Delay increases ---More complex gates have

greater logical effort and parasitic delay

Page 9: Advd   lecture 7 logical effort

Estimation of Estimation of

Page 10: Advd   lecture 7 logical effort

CMOS Ring Oscillator Circuit• An odd number of inverter circuits

connected serially with outputbrought back to input will be astableand can be used an an oscillator(called a ring oscillator)

• Ring oscillators are typically used tocharacterize a new technology as toits intrinsic device performance

• Frequency and stage are related asfollows:

f = 1/T = 1/(2nP)where n is the number of stagesandP is the stage delay

• An odd number of inverter circuitsconnected serially with outputbrought back to input will be astableand can be used an an oscillator(called a ring oscillator)

• Ring oscillators are typically used tocharacterize a new technology as toits intrinsic device performance

• Frequency and stage are related asfollows:

f = 1/T = 1/(2nP)where n is the number of stagesandP is the stage delay

Page 11: Advd   lecture 7 logical effort

Ring Oscillator—COMPARINGDIFFERENT TECHNOLOGIES

v0 v1 v5

v1 v2v0 v3 v4 v5

v0 v1 v5

v1 v2v0 v3 v4 v5

T = 2 t p N 2 N tp >> tf +tr

Page 12: Advd   lecture 7 logical effort

Computing Logical Effort

12

Page 13: Advd   lecture 7 logical effort

Different gates

13

Page 14: Advd   lecture 7 logical effort

Observations

• More complex gates have larger logicalefforts

• Logical efforts grow with increase in no. ofinputs

• Complex gates exhibit high g, greaterdelay

14

• More complex gates have larger logicalefforts

• Logical efforts grow with increase in no. ofinputs

• Complex gates exhibit high g, greaterdelay

Page 15: Advd   lecture 7 logical effort

Parasitic delay

• It is fixed for a gate• More complex gate—higher parasitic delay• Ref. Pinv=1 (inverter parasitic delay )• For other gates , parasitic delay is written

in terms of pinv

15

• It is fixed for a gate• More complex gate—higher parasitic delay• Ref. Pinv=1 (inverter parasitic delay )• For other gates , parasitic delay is written

in terms of pinv

Page 16: Advd   lecture 7 logical effort

Parasitic delay

16

Page 17: Advd   lecture 7 logical effort

How to compute Pinv• For inv. g=1, dabs= τ(h+pinv)• In a given tech., plot d vs. h• Plot would be st. line with slope τ, & intercept-

(pinv × τ)• Pinv can be estimated after obtaining τ• Draw similar plot for other gates• Once τ is obtained , g and p of other gates can

be found out.

17

• For inv. g=1, dabs= τ(h+pinv)• In a given tech., plot d vs. h• Plot would be st. line with slope τ, & intercept-

(pinv × τ)• Pinv can be estimated after obtaining τ• Draw similar plot for other gates• Once τ is obtained , g and p of other gates can

be found out.

Page 18: Advd   lecture 7 logical effort

Delay equation plot

18

Page 19: Advd   lecture 7 logical effort

Choice Of Standard Reference

Page 20: Advd   lecture 7 logical effort

Calculating delay of an inverter

20

Page 21: Advd   lecture 7 logical effort

Delay of 2 input Nand gate

Page 22: Advd   lecture 7 logical effort

Delay of 2 input NOR gate

Page 23: Advd   lecture 7 logical effort

MINIMUM POSSIBLE DELAY

Page 24: Advd   lecture 7 logical effort

Computing Intrinsic TransistorCapacitance

• Intrinsic PN junction capacitance of thedriving circuit must be added to the loadcapacitance Cload

• Consider the inverter example at left:– Area and perimeter of the PMOS and

NMOS transistors are calculated fromthe layout and inserted into the circuitmodel

• NMOS drain area = Wn x Ddrain

• PMOS drain area = Wp x Ddrain

• NMOS drain perimeter = 2 (Wn + Ddrain)• PMOS drain perimeter = 2 (Wp + Ddrain)

• SPICE simulations were done (bottomleft) for a fixed extrinsic load of 100fFwith increasing transistor width (Wp/Wn= 2.75)

– Results show diminishing returnsbeyond a certain Wn (say about 6 um)due to effect of the increasing draincapacitance on the overall capacitiveload

• Intrinsic PN junction capacitance of thedriving circuit must be added to the loadcapacitance Cload

• Consider the inverter example at left:– Area and perimeter of the PMOS and

NMOS transistors are calculated fromthe layout and inserted into the circuitmodel

• NMOS drain area = Wn x Ddrain

• PMOS drain area = Wp x Ddrain

• NMOS drain perimeter = 2 (Wn + Ddrain)• PMOS drain perimeter = 2 (Wp + Ddrain)

• SPICE simulations were done (bottomleft) for a fixed extrinsic load of 100fFwith increasing transistor width (Wp/Wn= 2.75)

– Results show diminishing returnsbeyond a certain Wn (say about 6 um)due to effect of the increasing draincapacitance on the overall capacitiveload

Page 25: Advd   lecture 7 logical effort

MINIMUM DELAY ~ ZERO DELAY

Page 26: Advd   lecture 7 logical effort

R= Wp/Wn

Page 27: Advd   lecture 7 logical effort

Non zero value

Page 28: Advd   lecture 7 logical effort

Area x Delay Figure of Merit• Increasing device width shows

diminishing returns on propagationdelay time

• Define a figure of merit as area x delayfor the inverter circuit

– Increasing device width Wn shows aminimum in area x delay product

• Unconstrained increase in transistorwidth in order to improve circuit delayis often a poor tradeoff due to the highcost of silicon real estate on the wafer!!

• Increasing device width showsdiminishing returns on propagationdelay time

• Define a figure of merit as area x delayfor the inverter circuit

– Increasing device width Wn shows aminimum in area x delay product

• Unconstrained increase in transistorwidth in order to improve circuit delayis often a poor tradeoff due to the highcost of silicon real estate on the wafer!!

Page 29: Advd   lecture 7 logical effort

Design a chain of inv. for min delay

Page 30: Advd   lecture 7 logical effort

T-network Delay Model Of wire

• Star-delta-transformation• Vout=ZBC/(ZAB+ZBC)• Vout=[(2/RC)/(S+2/RC)]*(1/S)• =(1/s)-1/(s+2/RC)• =U(t)[1-exp(-2/RC)t]• FOR V50% delay• tp=(RC ln2)/2=0.35 RC

• Star-delta-transformation• Vout=ZBC/(ZAB+ZBC)• Vout=[(2/RC)/(S+2/RC)]*(1/S)• =(1/s)-1/(s+2/RC)• =U(t)[1-exp(-2/RC)t]• FOR V50% delay• tp=(RC ln2)/2=0.35 RC

Page 31: Advd   lecture 7 logical effort
Page 32: Advd   lecture 7 logical effort

Delay in the presence of long wires

Page 33: Advd   lecture 7 logical effort

Design Of Inverter Chain

For Min. Delay

Page 34: Advd   lecture 7 logical effort

Sizing a path for minimum delay

EE141 34

Page 35: Advd   lecture 7 logical effort

Branching effort along a path

→ Used for sizingfor delay

EE141 35

Where BH is

→ Used for sizingfor delay

Page 36: Advd   lecture 7 logical effort

Observations regarding F

• F depends on only topology and loading

• F is Indep. of transistor sizes

• F is unchanged if inverters are added orremoved

EE141 36

• F depends on only topology and loading

• F is Indep. of transistor sizes

• F is unchanged if inverters are added orremoved

Page 37: Advd   lecture 7 logical effort

Path Delay D

• Sum of delay of all stages

EE141 37

Page 38: Advd   lecture 7 logical effort

Condition for min. path delay

EE141 38

Page 39: Advd   lecture 7 logical effort

EE141 39

On Differentiation:

Page 40: Advd   lecture 7 logical effort

Thus, minimum stage effort of each stage reqd. formin. delay along a path is

We shd. choose transistorsizes such that stage effortis same for all blocks

EE141 40

Thus, minimum delay achievable along a path is

We shd. choose transistorsizes such that stage effortis same for all blocks

Page 41: Advd   lecture 7 logical effort

Example

Compute foreach stage

Apply capacitance transformation backwards

i

EE141 41

Apply capacitance transformation backwards

Page 42: Advd   lecture 7 logical effort

Chain Of Inverters

C2C1

Ci

CL

1 u u2 uN-1

In Out

uopt = e

C2C1

Ci

CL

1 u u2 uN-1

In Out

uopt = e

Page 43: Advd   lecture 7 logical effort

Optimizing no of stages in a pathfor min. delay

43

Page 44: Advd   lecture 7 logical effort

To find optimum N

EE14144If pinv = 0,

Page 45: Advd   lecture 7 logical effort

For Ň stages in chain with invertersBest delay per stage , d = gh + pinv

d = ρ + pinv

45

For Ň stages in chain with invertersBest delay per stage , d = gh + pinv

d = ρ + pinv

Page 46: Advd   lecture 7 logical effort

Graphical solAs pinv grows, adding inverters become less advantageous

EE14146

Page 47: Advd   lecture 7 logical effort

Chain Of Inverters— BEST NO OF STAGES

C2C1

Ci

CL

1 u u2 uN-1

In Out

uopt = e

C2C1

Ci

CL

1 u u2 uN-1

In Out

uopt = e

Page 48: Advd   lecture 7 logical effort

Chain Of Inverters— BEST NO OF STAGES

C2C1

Ci

CL

1 u u2 uN-1

In Out

uopt = e

gu= gav x [2 µ / (γ+μ)]

gd= gav x [2 γ / (γ+μ)]

C2C1

Ci

CL

1 u u2 uN-1

In Out

uopt = e

Page 49: Advd   lecture 7 logical effort

For large N, delay expression-

49

For ρ = 4Ď = log 4F X FO4

Page 50: Advd   lecture 7 logical effort

Where FO4 = fanout of 4 inverter delay

FO4 DELAY

50

HERE ρ = gh = 1 x 4 = 4; so d = 5τ

Thus for ρ = 4Ď = log 4F X FO4 inverter delay

Page 51: Advd   lecture 7 logical effort

51

Page 52: Advd   lecture 7 logical effort

Wrong no of stages

52

Page 53: Advd   lecture 7 logical effort

EE14153

Page 54: Advd   lecture 7 logical effort

Wrong size, L=1

Ρ=4

W 4sW 16 W

C=1 C=4s C=16

54

Mis-sized

Ρ=4Ρ=4/ sΡ= 4s

D = ∑gh + ∑pinv= (4s + 4/s + 4 ) + 3 pinv= 15 units (s=1)

Page 55: Advd   lecture 7 logical effort

EE14155