ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE...

24
ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay and Logical Effort

Transcript of ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE...

Page 1: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–1

ECE 3060VLSI and Advanced Digital Design

Lecture 6

Gate Delay and Logical Effort

Page 2: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–2

First Model of Gate Delay

• This model will be refined shortly

Page 3: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–3

Equivalent R

• The average resistance of aMOSFET is someplacebetween the linear region, andsaturation

Page 4: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–4

MOS Capacitor

Page 5: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–5

Capacitance Equations

• Capacitors store charge• Q = CV charge is proportional to the voltage on a node

• The equation can be put in a more useful form

• i = dQ/dt => i = C*(dV/dt) => (C*dV)/i = t

• Thus, to change the node’s voltage (e.g., from 0 to 1),the transistor or gate driving that node must charge(up in our example) the capacitance associated withthat node. The larger the capacitance, the large therequired charge, and the longer it will take to switchthe node.

• Since of a transistor is approximately

idQdt------- i C

dVdt------- C

ΔVi

-------- Δt=⇒=⇒=

i V Rtrans⁄

Page 6: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–6

ΔtCΔV

i------------ CΔV

VRtrans------------⎝ ⎠

⎛ ⎞------------------ RtransC===

Page 7: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–7

Calculating R and C

• pFET vs. nFET• Mobility (μ) of electrons twice mobility of holes

• pFET resistance is twice nFET resistance

• Series and Parallel Configurations• Series resistances add

• Parallel: worst case is one transistor on

• Transistor Sizing• Resistance Inversely Proportional to W / L

• Gate Capacitance Proportional to W x L

Page 8: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–8

Symmetric Rise/fall?

• Make , but then gate capacitance increasedβn βp=

11--- 1

1---

11--- 1

1---

21--- 2

1---

11--- 1

1---

Page 9: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–9

Tau Metric

• We can normalize delay to technology independentunits: for example may be defined by

• R is the resistance of a minimum size nFET

• C is the gate capacitance of a minimum size inverter with equal riseand fall time: a minimum size nFET plus a double sized pFET

τ RC=

Page 10: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–10

Delay Example

• What is the delay for different values of A and B?

• AB=01: 2τ due to pFET mobility

• AB=11: 2τ due to series resistance

• AB=10: 1τ due to pFET mobility and W/L=2

2

Page 11: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–11

Driving Large Loads

• Suppose we wish to drive a large load, say equivalentto 100 inverters. What is the delay?

• If the delay driving one inverter is , then the delaydriving is .

• Suppose we scale up the inverter, so the of each

FET in the inverter increased by a factor of 100?

• The delay driving the load goes down to , but thedelay driving the inverter itself goes up to .

CLCg

δCL 100δ

WL-----

δ100δ

Page 12: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–12

Minimizing Delay

• Let’s consider driving the load with a chain of inverters

• Each inverter has ratios times the previous stage.

• Each intermediate stage has delay . If this is true for

the last stage, we have or

• Then total delay

WL----- a

anCL

Cg-------= n

1aln

--------CL

Cg-------ln=

Δ naτ lnCL

CG-------

⎝ ⎠⎜ ⎟⎛ ⎞ a

lna--------τ= =

Page 13: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–13

Minimizing Delay (cont)

• To find the value of which minimizes , solve

which is minimized for

• In practice , and is often used.

• Example: Using , design a circuit to drive 81inverters.

a Δad

dΔ 0=

a e 3≈ ≈2 a 10≤ ≤ a 4=

a 3=

Page 14: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–14

What to do when is not integral:n n1aln

--------CL

Cg-------ln=

Page 15: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–15

Fanin and Fanout

• Fanin is the number of inputs to a complex gate• High fanin may imply long chains of FETs which will affect rise/fall

times

• Best results: chain lengths between two and five

• Fanout is the number of gates driven by a gate• Output rise/fall times are proportional to output capacitance

• For the next week, we will investigate the effect offanin and fanout on gate delay in great detail.

Fanin Fanout

Page 16: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–16

Goals of Method of Logical Effort

• Learn how to design a combinational logic networkwith minimum delay

• Learn how to take load into account• Example: a decoder output may drive hundreds of inverter

equivalent loads

• How many levels of logic are correct?

• Which gates to use?

• So many choices, so little time

• Basic idea:• logical effort will describe the gate’s contribution to delay

• electrical effort (fanout) will describe the capacitive load

• Read Chapter 1 of Sutherland, Sproul and Harris

Page 17: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–17

Refining Calculation of Delay

• As before, we will measure delay in units of , sothat .

• As before, we will use and , so that

is the delay of a minimum size inverter (with equal riseand fall times) driving a minimum size inverter.

• Note: in a 0.25 micron process

• For now we will assume symmetric rise/fall times arerequired for all of our gates

• Observe that so far we have not accounted for outputcapacitance of the logic gate itself in our delay calcu-lations. That is we have assumed that the delay of agate with zero fanout is zero. This is about to change.

τ RC=dabs dτ=

R Rinv= C Cinv= τ

τ 20ps≈

Page 18: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–18

Logical Effort of Inverter

• Consider the effect of a particular choice of logic gateon (worst case) delay.

• The logical effort of an inverter is defined to be 1.g

Page 19: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–19

Logical Effort of NAND

• If we size transistors just like the inverter, the delay inthe pull-down network will be twice that of pull-up (a)

• If we resize the pulldown nFETs, we can drop the falltime back to , but we have increased the input capac-itance by one (to 4) (b)

1 (R)

1 (R)

2 (R)

(a)

2 (0.5R)

2 (0.5R)

2 (R)

(b)

2 (R)2 (R)

τ

Page 20: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–20

Logical Effort of NAND

• If we scale (b) back so thatthe input capacitance is thesame as the inverter, thedelay rises by a factor

(c).• LE DEFINITION 1: So logical

effort is the current deliveryability of a gate with the

same as an inverter com-

pared to the inverter.• LE DEFINITION 2: Alternatively, logical effort is the

ratio of the input capacitance of a gate with delay(i.e., ) to the input capacitance of the inverter

3/2 (2/3R)

3/2 (2/3R)

3/2 (4/3R)

(c)

3/2 (4/3R)

g 4 3⁄=

Rout( )

Cin

τRout R=

Page 21: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–21

Electrical Effort and Delay

• Electrical effort is defined to be the contribution offanout to delay .

• So we have separated delay into three components:

• logical effort

• electrical effort

• parasitic delay

• Now we can write

• is called the stage effort• Parasitic delay is due primarily to the drain capaci-

tance of the FETs connected to the output.

h Cload Cin⁄=

g

h

p

d gh p+ f p+= =

f gh=

Page 22: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–22

Delay Plot

Page 23: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–23

Example: Three input NAND

• What is ?• Suppose we are driving 10 loads. What is ?

g

f

Page 24: ECE 3060 VLSI and Advanced Digital Designlimsk.ece.gatech.edu/course/ece3060/slides/lec6.pdf · ECE 3060 Lecture 6–1 ECE 3060 VLSI and Advanced Digital Design Lecture 6 Gate Delay

ECE 3060 Lecture 6–24

Table of LE