lecture20-energy cntdbwrcs.eecs.berkeley.edu/classes/icdesign/ee141_s09/lectures/lectu… · ee141...

21
EE141 1 EE141 EECS141 1 Lecture #20 EE141 EECS141 2 Lecture #20 Project Phase 2 posted Questions?

Upload: others

Post on 08-Aug-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

1

EE141 EECS141 1 Lecture #20

EE141 EECS141 2 Lecture #20

  Project Phase 2 posted   Questions?

Page 2: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

2

EE141 EECS141 3 Lecture #20

 Last lecture  Dynamic Logic/Energy

 Today’s lecture   Energy and Power  Memory Cells

 Reading (Ch 6/12)

EE141 EECS141 4 Lecture #20

Page 3: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

3

EE141 EECS141 5 Lecture #20

  Energy consumed in N cycles, EN:

EN = CL • VDD2 • n0→1

n0→1 – number of 0→1 transitions in N cycles

EE141 EECS141 6 Lecture #20

Page 4: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

4

EE141 EECS141 7 Lecture #20

A B Out 0 0 1 0 1 0 1 0 0 1 1 0

Example: Static 2-input NOR Gate

Assume signal probabilities pA=1 = 1/2 pB=1 = 1/2

Then transition probability p0→1 = pOut=0 x pOut=1

= 3/4 x 1/4 = 3/16

α0→1 = 3/16

If inputs switch every cycle

EE141 EECS141 8 Lecture #20

A B Out 0 0 1 0 1 1 1 0 1 1 1 0

Example: Static 2-input NAND Gate

Assume signal probabilities pA=1 = 1/2 pB=1 = 1/2

Then transition probability p0→1 = pOut=0 x pOut=1

= 3/4 x 1/4 = 3/16

α0→1 = 3/16

If inputs switch every cycle

Page 5: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

5

EE141 EECS141 9 Lecture #20

A B Out 0 0 0 0 1 1 1 0 1 1 1 0

Example: Static 2-input XOR Gate

Assume signal probabilities pA=1 = 1/2 pB=1 = 1/2

Then transition probability p0→1 = pOut=0 x pOut=1

=

α0→1 =

If inputs switch in every cycle

EE141 EECS141 10 Lecture #20

In1

In2 PDN

In3

Me

Mp

CLK

CLK

Out CL

Power only dissipated when previous Out = 0

Page 6: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

6

EE141 EECS141 11 Lecture #20

A B Out 0 0 1 0 1 0 1 0 0 1 1 0

Dynamic 2-input NOR Gate

Assume signal probabilities PA=1 = 1/2 PB=1 = 1/2

Then transition probability P0→1 = Pout=0 x Pout=1

= 3/4 x 1 = 3/4

Switching activity always higher in dynamic gates! P0→1 = Pout=0

EE141 EECS141 12 Lecture #20

 Always switches  Often consumes 25-50% of total power  Clock gating commonly employed

Page 7: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

7

EE141 EECS141 13 Lecture #20

P(Z = 1) = P(B = 1) . P(X = 1 | B=1)

Becomes complex and intractable fast

EE141 EECS141 14 Lecture #20

Logic without reconvergent fanout

Logic with reconvergent fanout

p0→1 = (1 – pApB) pApB P(Z = 1) = p(C=1 | B=1) p(B=1)

p0→1 = 0

  Need to use conditional probabilities to model inter-signal correlations

  CAD tools best for performing such analysis

Page 8: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

8

EE141 EECS141 15 Lecture #20

ABC 101 000 X Z

Gate Delay Also known as

dynamic hazards

The result is correct, but there is extra power dissipated

EE141 EECS141 16 Lecture #20

Page 9: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

9

EE141 EECS141 17 Lecture #20

  Most important idea: reduce waste   Examples:

  Don’t switch capacitors you don’t need to – Clock gating, glitch elimination, logic re-structuring

  Don’t run circuits faster than needed –  Power α VDD

2 – can save a lot by reducing supply for circuits that don’t need to be as fast

–  Parallelism falls into this category

  Let’s say we do a good job of that – then what?

EE141 EECS141 18 Lecture #20

  Plot all possible designs on a 2-D plane   No matter what you do, can never get below/to the

right of the solid line   This line is called “Pareto Optimal Curve”

  Usually (always) follows law of diminishing returns

Performance

Ener

gy/o

p

Page 10: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

10

EE141 EECS141 19 Lecture #20

  Instead of metrics like EDP, this curve often provides information more directly   Ex1: What is minimum energy for XX performance?   Ex2: Over what range of performance is a new

technique (dotted line) actually beneficial?

Performance En

ergy

/op

EE141 EECS141 20 Lecture #20

Page 11: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

11

EE141 EECS141 21 Lecture #20

Row

Dec

oder

Bit line2L!K

Word line

AK

AK"1

AL!1

A0

M.2K

AK!1

Sense amplifiers / Drivers

Column decoder

Input-Output(M bits)

Storage cell

EE141 EECS141 22 Lecture #20

•  If D is high, D_b will be driven low •  Which makes D stay high

•  Positive feedback

Page 12: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

12

EE141 EECS141 23 Lecture #20

Vo1

Vi1

A

C

B

Vi2

! V

o1

Vo2

Vi2

! V

o1

Vi1 ! Vo2

Vi1 Vo2

Vo2 ! Vi1

Vo1 ! Vi2

(b)

(a)

EE141 EECS141 24 Lecture #20

Access transistor must be able to overpower the feedback

Page 13: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

13

EE141 EECS141 25 Lecture #20

EE141 EECS141 26 Lecture #20

Complementary data values are written (read) from two sides

Page 14: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

14

EE141 EECS141 27 Lecture #20 EE141

WL

BL

V DD

M 5 M 6

M 4

M 1

M 2

M 3

BL

Q Q

EE141 EECS141 28 Lecture #20

0 1

•  Q_b will get pulled up when WL first goes high •  Reading the cell should not destroy the stored value

Read

Page 15: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

15

EE141 EECS141 29 Lecture #20 EE141

WL

BL V DD

M 5 M 6

M 4

M 1 V DD V DD V DD

BL Q = 1 Q = 0

C bit C bit

EE141 EECS141 30 Lecture #20 EE141

0 0

0.2 0.4 0.6 0.8

1 1.2

0.5 1 1.2 1.5 2 Cell Ratio (CR)

2.5 3

Volta

ge R

ise

(V)

Page 16: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

16

EE141 EECS141 31 Lecture #20 EE141

BL = 1 BL = 0

Q = 0 Q = 1

M 1

M 4

M 5 M 6

V DD

V DD WL

EE141 EECS141 32 Lecture #20 EE141

Page 17: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

17

EE141 EECS141 33 Lecture #20

EE141 EECS141 34 Lecture #20

Page 18: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

18

EE141 EECS141 35 Lecture #20

 ST/Philips/Motorola

Access Transistor

Pull down Pull up

EE141 EECS141 36 Lecture #20 EE141

Static power dissipation -- Want R L large Bit lines precharged to V DD to address t p problem

M 3

R L R L V DD

WL

Q Q

M 1 M 2

M 4

BL BL

Page 19: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

19

EE141 EECS141 37 Lecture #20 EE141

No constraints on device ratios Reads are non-destructive Value stored at node X when writing a “1” = V WWL -V Tn

WWL BL 1

M 1 X M 3

M 2 C S

BL 2

RWL

V DD V DD - V T

D V V DD - V T BL 2 BL 1 X RWL WWL

EE141 EECS141 38 Lecture #20 EE141

BL2 BL1 GND

RWL

WWL

M3

M2

M1

WWL BL 1

M 1 X M 3

M 2 C S

BL 2

RWL

Page 20: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

20

EE141 EECS141 39 Lecture #20 EE141

Write: C S is charged or discharged by asserting WL and BL. Read: Charge redistribution takes places between bit line and storage capacitance

Voltage swing is small; typically around 250 mV.

Δ V BL V PRE – V BIT V PRE – C S C S C BL + ------------ = = V

M1

CS

WL

BL

CBL

VDD ! VT

WL

X

sensing

BL

GND

Write 1 Read 1

VDD

VDD/2 VDD/2

EE141 EECS141 40 Lecture #20 EE141

Uses Polysilicon-Diffusion Capacitance Expensive in Area

M 1 word line

Diffused bit line

Polysilicon gate

Polysilicon plate

Capacitor

Cross-section Layout

Metal word line

Poly

SiO 2

Field Oxide n + n + Inversion layer induced by plate bias

Poly

Page 21: Lecture20-Energy CNTDbwrcs.eecs.berkeley.edu/Classes/icdesign/ee141_s09/Lectures/Lectu… · EE141 20 EECS141EE141 EE141 Lecture #20 39 Write: C S is charged or discharged by asserting

EE141

21

EE141 EECS141 41 Lecture #20 EE141

EE141 EECS141 42 Lecture #20 EE141

Cell Plate Si

Capacitor Insulator

Storage Node Poly

2nd Field Oxide

Refilling Poly

Si Substrate

Trench Cell Stacked-capacitor Cell

Capacitor dielectric layer Cell plate Word line

Insulating Layer

Isolation Transfer gate Storage electrode