delay calculation in cmos chips using logical effort by prof. akhil masurkar

60
CMOS VLSI Design Delay Calculation in CMOS Chips Using Logical Effort By Prof. Akhil U Masurkar (AUM) B.E. Electronics, M.E. Electronics Department of Electronics Engineering Vidyalankar Institute of Technology, Mumbai

Upload: akhil-masurkar

Post on 11-Aug-2015

160 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

Delay Calculation in CMOS Chips Using Logical Effort

By

Prof. Akhil U Masurkar (AUM)B.E. Electronics, M.E. Electronics

Department of Electronics Engineering

Vidyalankar Institute of Technology, Mumbai 

 

Page 2: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Outline RC Delay Estimation Logical Effort Delay in a Logic Gate Multistage Logic Networks Choosing the Best Number of Stages Example Summary

Page 3: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

RC Delay Model Use equivalent circuits for MOS transistors

– Ideal switch + capacitance and ON resistance– nMOS having unit width has resistance R– pMOS having unit width has resistance 2R

(since µp< µn and µn = 2 µp)– Therefore a pMOS transistor having double unit

width will have resistance R (since R α 1/w) Capacitance proportional to width Resistance inversely proportional to width

Page 4: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Page 5: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

RESISTANCE ESTIMATION

L

W

T

R = ρL/A = ρL/WT = (ρ/T)*(L/W)

R = Rs (L/W) Rs = sheet resistance = Ω/

Page 6: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Standard Sheet Resistances

Layers Rs = sheet resistance

5 µm orbit Orbit 1.2 µm

Metal 0.03 0.04 0.04

Diffusion/Active 10 – 50 20 – 45 20 – 45

Silicide 2 – 4 - -

Poly-Si 15 – 110 15 – 30 15 – 30

N-Tr Channel 10^4 2 x 10^4 2 x 10^4

P-Tr Channel 2.5 x 10^4 4.5 x 10^4 4.5 x 10^4

Page 7: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Page 8: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-input NAND Sketch a 3-input NAND with transistor widths chosen

to achieve effective rise and fall resistances equal to a unit inverter (R).

Page 9: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-input NAND Sketch a 3-input NAND with transistor widths chosen

to achieve effective rise and fall resistances equal to a unit inverter (R).

Page 10: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-input NAND Sketch a 3-input NAND with transistor widths chosen

to achieve effective rise and fall resistances equal to a unit inverter (R).

3

3

222

3

Page 11: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

3-input NAND Caps Annotate the 3-input NAND gate with gate and

diffusion capacitance.

2 2 2

3

3

3

Page 12: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

3-input NAND Caps Annotate the 3-input NAND gate with gate and

diffusion capacitance.

2 2 2

3

3

33C

3C

3C

3C

2C

2C

2C

2C

2C

2C

3C

3C

3C

2C 2C 2C

Page 13: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

3-input NAND Caps Annotate the 3-input NAND gate with gate and

diffusion capacitance.

9C

3C

3C3

3

3

222

5C

5C

5C

Page 14: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Elmore Delay ON transistors look like resistors Pullup or pulldown network modeled as RC ladder Elmore delay of RC ladder

R1 R2 R3 RN

C1 C2 C3 CN

nodes

1 1 1 2 2 1 2... ...

pd i to source ii

N N

t R C

RC R R C R R R C

Page 15: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 2-input NAND Estimate worst-case rising and falling delay of 2-

input NAND driving h identical gates.

h copies

2

2

22

B

Ax

Y

Page 16: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 2-input NAND Estimate rising and falling propagation delays of a 2-

input NAND driving h identical gates.

h copies6C

2C2

2

22

4hC

B

Ax

Y

Page 17: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 2-input NAND Estimate rising and falling propagation delays of a 2-

input NAND driving h identical gates.

h copies6C

2C2

2

22

4hC

B

Ax

Y

R

(6+4h)CY

pdrt

Page 18: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 2-input NAND Estimate rising and falling propagation delays of a 2-

input NAND driving h identical gates.

h copies6C

2C2

2

22

4hC

B

Ax

Y

R

(6+4h)CY 6 4pdrt h RC

Page 19: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 2-input NAND Estimate rising and falling propagation delays of a 2-

input NAND driving h identical gates.

h copies6C

2C2

2

22

4hC

B

Ax

Y

Page 20: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 2-input NAND Estimate rising and falling propagation delays of a 2-

input NAND driving h identical gates.

h copies6C

2C2

2

22

4hC

B

Ax

Y

pdft (6+4h)C2CR/2

R/2x Y

Page 21: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 2-input NAND Estimate rising and falling propagation delays of a 2-

input NAND driving h identical gates.

h copies6C

2C2

2

22

4hC

B

Ax

Y

2 2 22 6 4

7 4

R R Rpdft C h C

h RC

(6+4h)C2CR/2

R/2x Y

Page 22: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay Components Delay has two parts

– Parasitic delay• 6RC or 7RC• Independent of load

– Effort delay• 4hRC• Proportional to load capacitance

Page 23: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay Components After Scaling

Delay has two parts– Parasitic delay

• 6RC or 7RC• Independent of load

– Effort delay• 4hRC/k• Proportional to load capacitance

Page 24: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

NOTE Parasitic delay of 6 or 7 is determined by the gate driving its

own internal diffusion capacitance. By increasing the width the resistance value decreases

whereas the capacitance value increases by the same factor. Hence the transistors Parasitic gate Delay is Independent of the transistors width.

The effort delay of (4h/k)C depends on the ratio (h) of external load capacitance to input capacitance and hence changes with the transistors width.

The factor 4 is set by the complexity of the gate. The capacitance ratio is called as the electrical effort or fan-

out. The term indicating gate complexity is called the logical

effort.

Page 25: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Introduction Chip designers face a bewildering array of choices

– What is the best circuit topology for a function?– How many stages of logic give least delay?– How wide should the transistors be?

Logical effort is a method to make these decisions– Uses a simple model of delay– Allows back-of-the-envelope calculations– Helps make rapid comparisons between alternatives– Emphasizes remarkable symmetries

? ? ?

Page 26: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay in a Logic Gate Express delays in process-independent unit

Delay has two components

absdd

d f p

Page 27: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay in a Logic Gate Express delays in process-independent unit

Delay has two components

Effort delay f = gh (a.k.a. stage effort)– Again has two components

absdd

d pf

Page 28: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay in a Logic Gate Express delays in process-independent unit

Delay has two components

Effort delay f = gh (a.k.a. stage effort)– Again has two components

g: logical effort– Measures relative ability of gate to deliver current– g 1 for inverter

absdd

d f p

Page 29: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay in a Logic Gate Express delays in process-independent unit

Delay has two components

Effort delay f = gh (a.k.a. stage effort)– Again has two components

h: electrical effort = Cout / Cin

– Ratio of output to input capacitance– Sometimes called fanout

absdd

d f p

Page 30: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay in a Logic Gate Express delays in process-independent unit

Delay has two components

Parasitic delay p– Represents delay of gate driving no load– Set by internal parasitic capacitance

absdd

d pf

Page 31: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay Plotsd = f + p

= gh + p

Electrical Effort:h = C

out / C

in

Nor

mal

ized

Del

ay: d

Inverter2-inputNAND

g =p =d =

g =p =d =

0 1 2 3 4 5

0

1

2

3

4

5

6

Page 32: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Delay Plotsd = f + p

= gh + p

What about

NOR2?

Electrical Effort:h = C

out / C

in

Nor

mal

ized

Del

ay: d

Inverter2-inputNAND

g = 1p = 1d = h + 1

g = 4/3p = 2d = (4/3)h + 2

Effort Delay: f

Parasitic Delay: p

0 1 2 3 4 5

0

1

2

3

4

5

6

Page 33: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Computing Logical Effort DEF: Logical effort is the ratio of the input

capacitance of a gate to the input capacitance of an inverter delivering the same output current.

Measure from delay vs. fanout plots Or estimate by counting transistor widths

A YA

B

YA

BY

1

2

1 1

2 2

2

2

4

4

Cin = 3g = 3/3

Cin = 4g = 4/3

Cin = 5g = 5/3

Page 34: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Catalog of Gates Logical effort of common gates

Gate type Number of inputs

1 2 3 4 n

Inverter 1

NAND 4/3 5/3 6/3 (n+2)/3

NOR 5/3 7/3 9/3 (2n+1)/3

Tristate / mux 2 2 2 2 2

XOR, XNOR 4, 4 6, 12, 6 8, 16, 16, 8

Page 35: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Catalog of Gates Parasitic delay of common gates

– In multiples of pinv (1)Gate type Number of inputs

1 2 3 4 n

Inverter 1

NAND 2 3 4 n

NOR 2 3 4 n

Tristate / mux 2 4 6 8 2n

XOR, XNOR 4 6 8

Page 36: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: FO4 Inverter Estimate the delay of a fanout-of-4 (FO4) inverter

Logical Effort: g =

Electrical Effort: h =

Parasitic Delay: p =

Stage Delay: d =

d

Page 37: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: FO4 Inverter Estimate the delay of a fanout-of-4 (FO4) inverter

Logical Effort: g = 1

Electrical Effort: h = 4

Parasitic Delay: p = 1

Stage Delay: d = 5

d

The FO4 delay is about

200 ps in 0.6 mm process

60 ps in a 180 nm process

f/3 ns in an f mm process

Page 38: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Multistage Logic Networks Logical effort generalizes to multistage networks Path Logical Effort

Path Electrical Effort

Path Effort

iG gout-path

in-path

CH

C

i i iF f g h 10

x y z20

g1 = 1h

1 = x/10

g2 = 5/3h

2 = y/x

g3 = 4/3h

3 = z/y

g4 = 1h

4 = 20/z

Page 39: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Multistage Logic Networks Logical effort generalizes to multistage networks Path Logical Effort

Path Electrical Effort

Path Effort

Can we write F = GH?

iG gout path

in path

CH

C

i i iF f g h

Page 40: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Paths that Branch No! Consider paths that branch:

G =

H =

GH =

h1 =

h2 =

F = GH?

5

15

1590

90

Page 41: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Paths that Branch No! Consider paths that branch:

G = 1

H = 90 / 5 = 18

GH = 18

h1 = (15 +15) / 5 = 6

h2 = 90 / 15 = 6

F = g1g2h1h2 = 36 = 2GH

5

15

1590

90

Page 42: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Branching Effort Introduce branching effort

– Accounts for branching between stages in path

Now we compute the path effort– F = GBH

on path off path

on path

C Cb

C

iB bih BH

Note:

Page 43: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Multistage Delays Path Effort Delay

Path Parasitic Delay

Path Delay

F iD fiP pi FD d D P

Page 44: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Designing Fast Circuits

Delay is smallest when each stage bears same effort

Thus minimum delay of N stage path is

This is a key result of logical effort– Find fastest possible delay– Doesn’t require calculating gate sizes

i FD d D P

1ˆ Ni if g h F

1ND NF P

Page 45: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Gate Sizes How wide should the gates be for least delay?

Working backward, apply capacitance transformation to find input capacitance of each gate given load it drives.

Check work by verifying input cap spec is met.

ˆ

ˆ

out

in

i

i

CC

i outin

f gh g

g CC

f

Page 46: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-stage path Select gate sizes x and y for least delay from A to B

8 x

x

x

y

y

45

45

A

B

Page 47: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-stage path

Logical Effort G =

Electrical Effort H =

Branching Effort B =

Path Effort F =

Best Stage Effort

Parasitic Delay P =

Delay D =

8 x

x

x

y

y

45

45

A

B

Page 48: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-stage path

Logical Effort G = (4/3)*(5/3)*(5/3) = 100/27

Electrical Effort H = 45/8

Branching Effort B = 3 * 2 = 6

Path Effort F = GBH = 125

Best Stage Effort

Parasitic Delay P = 2 + 3 + 2 = 7

Delay D = 3*5 + 7 = 22 = 4.4 FO4

8 x

x

x

y

y

45

45

A

B

3ˆ 5f F

Page 49: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-stage path Work backward for sizes

y =

x =

8 x

x

x

y

y

45

45

A

B

Page 50: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Example: 3-stage path Work backward for sizes

y = 45 * (5/3) / 5 = 15

x = (15*2) * (5/3) / 5 = 10

P: 4N: 4

45

45

A

BP: 4N: 6

P: 12N: 3

Page 51: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Best Number of Stages How many stages should a path use?

– Minimizing number of stages is not always fastest Example: drive 64-bit datapath with unit inverter

D =

1 1 1 1

64 64 64 64

Initial Driver

Datapath Load

N:f:D:

1 2 3 4

Page 52: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Best Number of Stages How many stages should a path use?

– Minimizing number of stages is not always fastest Example: drive 64-bit datapath with unit inverter

D = NF1/N + P

= N(64)1/N + N

1 1 1 1

8 4

16 8

2.8

23

64 64 64 64

Initial Driver

Datapath Load

N:f:D:

16465

2818

3415

42.815.3

Fastest

Page 53: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Derivation Consider adding inverters to end of path

– How many give least delay?

Define best stage effort

N - n1 Extra Inverters

Logic Block:n

1 Stages

Path Effort F 11

11

N

n

i invi

D NF p N n p

1 1 1

ln 0N N Ninv

DF F F p

N

1 ln 0invp

1NF

Page 54: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Best Stage Effort has no closed-form solution

Neglecting parasitics (pinv = 0), we find r = 2.718 (e)

For pinv = 1, solve numerically for r = 3.59

1 ln 0invp

Page 55: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Sensitivity Analysis How sensitive is delay to using exactly the best

number of stages?

2.4 < r < 6 gives delay within 15% of optimal– We can be sloppy!– I like r = 4

1.0

1.2

1.4

1.6

1.0 2.00.5 1.40.7

N / N

1.151.26

1.51

( =2.4)(=6)

D(N

) /D

(N)

0.0

Page 56: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Review of Definitions

Term Stage Path

number of stages

logical effort

electrical effort

branching effort

effort

effort delay

parasitic delay

delay

iG g out-path

in-path

C

CH

N

iB b F GBH

F iD f

iP p i FD d D P

out

in

CCh

on-path off-path

on-path

C C

Cb

f gh

f

p

d f p

g

1

Page 57: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Method of Logical Effort1) Compute path effort

2) Estimate best number of stages

3) Sketch path with N stages

4) Estimate least delay

5) Determine best stage effort

6) Find gate sizes

F GBH

4logN F

1ND NF P

1ˆ Nf F

ˆi

i

i outin

g CC

f

Page 58: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Limits of Logical Effort Chicken and egg problem

– Need path to compute G– But don’t know number of stages without G

Simplistic delay model– Neglects input rise time effects

Interconnect– Iteration required in designs with wire

Maximum speed only– Not minimum area/power for constrained delay

Page 59: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

Summary Logical effort is useful for thinking of delay in circuits

– Numeric logical effort characterizes gates– NANDs are faster than NORs in CMOS– Paths are fastest when effort delays are ~4– Path delay is weakly sensitive to stages, sizes– But using fewer stages doesn’t mean faster paths– Delay of path is about log4F FO4 inverter delays

– Inverters and NAND2 best for driving large caps Provides language for discussing fast circuits

– But requires practice to master

Page 60: Delay Calculation in CMOS Chips Using Logical Effort by Prof. Akhil Masurkar

CMOS VLSI Design

References

A Gate-Level Leakage Power Reduction Method for Ultra-Low-Power CMOS Circuits Jonathan P. Halter and Farid N. Najm.ECE Dept. and Coordinated Science Lab. University of Illinois at Urbana

Low-Power CMOS Digital Design Anantha P. Chandrakasan, Samuel Sheng, and Robert W. Brodersen, Fellow, IEEE.

Sutherland and R.F. Sproull, “Logical Effort: Designing for Speed on the Back of an Envelope”, in C.H. Sequin, Ed., Advanced Research in VLSI. Cambridge, MA: MIT Press, 1991.

V. G. Oklobdzija, “High-Performance System Design: Circuits and Logic”, IEEE Press, February 1999. Jan Rabaey, “Digital Integrated Circuits: A Design Perspective”, Prentice Hall, 1996. Synopsys

Library Documentation. H. Dao and V. G. Oklobdzija, “Comparative Delay Analysis of Representative Adders Using Logical Effort

Technique”, 35th Asilomar Conference on Signals, Systems and Computers, 2001. H. Dao and V. G. Oklobdzija, “Application of Logical Effort on Delay Analysis of 64-bit Static Carry-Look-

ahead Adder”, 35th Asilomar Conference on Signals, Systems and Computers, 2001. Xiao Yan Yu , William W. Walker Application of Logical Effort on Design of Arithmetic Blocks I Sutherland, b Sproull and D haris, Logical Effort: Designing fast CMOS circuits, San Fransisco,

CA: Morgan Kaufmann, 1999 T. sakurai and R Newton, Alpha power moseft and it application to CMOS inverter Delays and Other

Formulas, 2 April 1990 RC Interconnect Optimization under the Elmore Delay Model