31
Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras

Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Embed Size (px)

Citation preview

Page 1: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Noise Margin and Gate Delay

Debdeep MukhpadhyayIIT Madras

Page 2: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Logic levels• Solid logic 0/1 defined by VSS/VDD. • Inner bounds of logic values VL/VH are not

directly determined by circuit properties, as in some other logic families.

logic 1

logic 0

unknown

VDD

VSS

VH

VL

Page 3: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Logic level matching• Levels at output of one gate must be

sufficient to drive next gate.

Page 4: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Transfer characteristics• Transfer curve shows static input/output

relationship—hold input voltage, measure output voltage.

Page 5: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Noise Margins

• How much noise can a gate input see before it does not recognize the input?

IndeterminateRegion

NML

NMH

Input CharacteristicsOutput Characteristics

VOH

VDD

VOL

GND

VIH

VIL

Logical HighInput Range

Logical LowInput Range

Logical HighOutput Range

Logical LowOutput Range

Page 6: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Logic Levels

• To maximize noise margins, select logic levels at

VDD

Vin

Vout

VDD

βp/βn > 1

Vin Vout

0

Page 7: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Logic Levels

• To maximize noise margins, select logic levels at – unity gain point of DC transfer characteristic

VDD

Vin

Vout

VOH

VDD

VOL

VIL VIHVtn

Unity Gain PointsSlope = -1

VDD-|Vtp|

βp/βn > 1

Vin Vout

0

Page 8: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Noise margin• Noise margin = voltage difference between

output of one gate and input of next. Noise must exceed noise margin to make second gate produce wrong output.

Page 9: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Delay Definitions• tpdr:

• tpdf:

• tpd:

• tr:

• tf: fall time

Page 10: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Delay Definitions• tpdr: rising propagation delay

– From input to rising output crossing VDD/2• tpdf: falling propagation delay

– From input to falling output crossing VDD/2• tpd: average propagation delay

– tpd = (tpdr + tpdf)/2• tr: rise time

– From output crossing 0.2 VDD to 0.8 VDD

• tf: fall time– From output crossing 0.8 VDD to 0.2 VDD

Page 11: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Delay Definitions

• tcdr: rising contamination delay– From input to rising output crossing VDD/2

• tcdf: falling contamination delay– From input to falling output crossing VDD/2

• tcd: average contamination delay– tpd = (tcdr + tcdf)/2

Page 12: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Simulated Inverter Delay• Solving differential equations by hand is too hard• SPICE simulator solves the equations numerically

– Uses more accurate I-V models too!• But simulations take time to write

(V)

0.0

0.5

1.0

1.5

2.0

t(s)0.0 200p 400p 600p 800p 1n

tpdf = 66ps tpdr = 83psVin Vout

Page 13: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Delay Estimation• We would like to be able to easily estimate delay

– Not as accurate as simulation– But can we give estimates?

• The step response usually looks like a 1st order RC response with a decaying exponential.

• Use RC delay models to estimate delay– C = total capacitance on output node– Use effective resistance R– So that tpd = RC

• Characterize transistors by finding their effective R– Depends on average current as gate switches

Page 14: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

RC delay• Load is resistor + capacitor, driver is

resistor.

tf = 0.69 R CLFor rise time replace by the PMOS resistance.

Page 15: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

RC Delay Models

• Use equivalent circuits for MOS transistors– Ideal switch + capacitance and ON resistance– Unit nMOS has resistance R, capacitance C– Unit pMOS has resistance 2R, capacitance C

• Capacitance proportional to width• Resistance inversely proportional to width

kgs

dg

s

d

kCkC

kCR/k

kgs

dg

s

d

kC

kC

kC

2R/k

Page 16: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

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 17: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

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 18: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

3-input NAND Caps

• Annotate the 3-input NAND gate with gate and diffusion capacitance.

2 2 2

3

3

3

Page 19: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

3-input NAND Capacitors

• 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 20: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

3-input NAND Capacitors

• Annotate the 3-input NAND gate with gate and diffusion capacitance.

9C

3C

3C3

3

3

222

5C5C

5C

Page 21: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

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

R C R R C R R R C

− −≈

= + + + + + + +

Page 22: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Example: 2-input NAND

• Estimate worst-case rising and falling delay of 2-input NAND driving h identical gates.

h copies2

2

22

B

Ax

Y

Page 23: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Example: 2-input NAND

• Estimate rising and falling propagation delays of a 2-input NAND driving hidentical gates.

h copies

6C

2C2

2

224hC

B

Ax

Y

Page 24: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Example: 2-input NAND

• Estimate rising and falling propagation delays of a 2-input NAND driving hidentical gates.

h copies

6C

2C2

2

224hC

B

Ax

Y

R

(6+4h)CY

pdrt =

Page 25: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Example: 2-input NAND

• Estimate rising and falling propagation delays of a 2-input NAND driving hidentical gates.

h copies

6C

2C2

2

224hC

B

Ax

Y

R

(6+4h)CY

( )6 4pdrt h RC= +

Page 26: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Example: 2-input NAND

• Estimate rising and falling propagation delays of a 2-input NAND driving hidentical gates.

h copies

6C

2C2

2

224hC

B

Ax

Y

Page 27: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Example: 2-input NAND

• Estimate rising and falling propagation delays of a 2-input NAND driving hidentical gates.

h copies

6C

2C2

2

224hC

B

Ax

Y

pdft =(6+4h)C2CR/2

R/2x Y

Page 28: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Example: 2-input NAND

• Estimate rising and falling propagation delays of a 2-input NAND driving hidentical gates.

h copies6C

2C2

2

224hC

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 29: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Delay Components

• Delay has two parts– Parasitic delay

• 6 or 7 RC• Independent of load

– Effort delay• 4h RC• Proportional to load capacitance

Page 30: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

CMOS inverter delay• An approximate method:

– Assume constant Iavg

– The NMOS and the PMOS are in saturated region and provide a constant current.

( )

( )2

2

TPCCp

CCloadPLH

TnCCn

CCloadPHL

VVkVCt

VVkVCt

−=

−=

V1=Vcc

V2=½Vcc

t1 t2

I1

Iavg = I1

Page 31: Noise Margin and Gate Delaycse.iitkgp.ac.in/~debdeep/teaching/VLSI/slides/delay.pdf · Noise Margin and Gate Delay Debdeep Mukhpadhyay IIT Madras. Logic levels • Solid logic 0/1

Some Points

• The delay of a gate, be it the rise or the fall time is inversely proportional to VDD.

• Point to ponder: Effect of sizing on the inverter gate delay.