Lecture 22 – Reducing Leakage Borivoje...

29
inst.eecs.berkeley.edu/~ee241b Borivoje Nikolić EE241B : Advanced Digital Circuits Lecture 22 – Reducing Leakage 1 EECS241B L22 LEAKAGE Sweetfarm.org/goat-2-meeting: Invite a goat or a llama to a zoom meeting https://www.sweetfarm.org/goat-2-meeting

Transcript of Lecture 22 – Reducing Leakage Borivoje...

Page 1: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

inst.eecs.berkeley.edu/~ee241b

Borivoje Nikolić

EE241B : Advanced Digital Circuits

Lecture 22 – Reducing Leakage

1EECS241B L22 LEAKAGE

Sweetfarm.org/goat-2-meeting: Invite a goat or a llama to a zoom meeting

https://www.sweetfarm.org/goat-2-meeting

Page 2: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Announcements

• Assignment 4 due next Friday.

• Reading• Rabaey, LPDE, Chapter 8

2EECS241B L22 LEAKAGE

Page 3: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Outline

• Module 5• Clock gating

• Leakage reduction during design time and runtime

3EECS241B L22 LEAKAGE

Page 4: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

5.G Reducing Switching Activity Through Logic Design

4EECS241B L22 LEAKAGE

Page 5: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Power /Energy Optimization Space

Constant Throughput/Latency Variable Throughput/Latency

Energy Design Time Sleep Mode Run Time

Active

Logic designScaled VDD

Trans. sizingMulti-VDD

Clock gatingDFS, DVS

Leakage

Stack effectsTrans sizingScaling VDD

+ Multi-VTh

Sleep T’sMulti-VDD Variable VTh

+ Input control+ Variable VTh

EECS241B L22 LEAKAGE 5

Page 6: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Basic Idea

• E ~ αCV2

• Reduce switching activity, α, through logic and architectural transformations

• Many options• Switching activity lower with deeper logic

• Pipelining has significant effect

• Reduce the number of clocked devices in a flip-flop

• e.g. group generation of clk_b

• A few logic ideas follow

EECS241B L22 LEAKAGE 6

Page 7: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Circuit-Level Activity Encoding

Conditional InversionCoding for Interconnect

EECS241B L22 LEAKAGE 7

Page 8: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Number Representation

• Input signals are noise most of the time

EECS241B L22 LEAKAGE 8

Page 9: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

5.H Clock Gating

9EECS241B L22 LEAKAGE

Page 10: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Power /Energy Optimization Space

Constant Throughput/Latency Variable Throughput/Latency

Energy Design Time Sleep Mode Run Time

Active

Logic designScaled VDD

Trans. sizingMulti-VDD

Clock gatingDFS, DVS

Leakage

Stack effectsTrans sizingScaling VDD

+ Multi-VTh

Sleep T’sMulti-VDD Variable VTh

+ Input control

DVS,Variable VTh

EECS241B L22 LEAKAGE 10

Page 11: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Clock Gating

Requires a bit more complex gate ...Well handled in today’s EDA tools

EECS241B L22 LEAKAGE 11

Page 12: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Clock Gating

• Enabling clock needs to be synchronized

Clk

En

Gated Clk

Sequential cell

EECS241B L22 LEAKAGE 12

Page 13: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

DSP/HIF

DEU

MIF

VDE

896Kb SRAM

10

8.5mW

0 155

30.6mW

20 25

Without clock gating

With clock gating

Power [mW]

Clock Gating Efficiently Reduces Power

Courtesy M. Ohashi, Matsushita, ISSCC 2002

90% of F/F’s were clock-gated.

70% power reduction by clock-gating alone.

MPEG4 decoder

EECS241B L22 LEAKAGE 13

Page 14: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Clock Gating

ARM Cortex-A9 Technical Reference Manual:

EECS241B L22 LEAKAGE 14

Page 15: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Local Clock Gating

EECS241B L22 LEAKAGE 15

Page 16: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Local Clock Gating

D

QCKI

CKIB

0.85 0.85

2

0.850.5 0.5

0.5

1.2

CP

0.50.85 0.50.85

XNOR

CKIB

CKI

CKIB 0.5

0.5

0.85

0.5

PulseGenerator

Data-TransitionLook-Ahead

DI

‘Clock on demand’Flip-flop

EECS241B L22 LEAKAGE 16

Page 17: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Complex Designs

Fischer, ISSCC’05EECS241B L22 LEAKAGE 17

Page 18: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Power /Energy Optimization Space

Constant Throughput/Latency Variable Throughput/Latency

Energy Design Time Sleep Mode Run Time

Active

Logic designScaled VDD

Trans. sizingMulti-VDD

Clock gatingDFS, DVS

Leakage

Stack effectsTrans sizingScaling VDD

+ Multi-VTh

Sleep T’sMulti-VDD Variable VTh

+ Input control

DVS,Variable VTh

EECS241B L22 LEAKAGE 18

Page 19: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Plan For the Rest of the Semester

• 4 more lectures (including today’s):• Finish low power (2 lectures)

• Supplies, clocks and their interaction

• Homework 4 due on April 24th

• Quiz 4 on April 28th

• Final on April 30th

• 80 minutes, open everything

• Final presentations, May 4• Final reports due on May 4

EECS241B L22 LEAKAGE 19

Page 20: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

5.I Lowering Leakage During Design: Multiple Thresholds

20EECS241B L22 LEAKAGE

Page 21: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Power /Energy Optimization Space

Constant Throughput/Latency Variable Throughput/Latency

Energy Design Time Sleep Mode Run Time

Active

Logic designScaled VDD

Trans. sizingMulti-VDD

Clock gatingDFS, DVS

Leakage

Stack effectsTrans sizingScaling VDD

+ Multi-VTh

Sleep T’sMulti-VDD

Variable VTh

+ Input control

DVS,Variable VTh

EECS241B L22 LEAKAGE 21

Page 22: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Technology Options

• Multiple thresholds, each spaced 50-100mV apart (5-10x less leakage)

180 130 90 65 45Technology [nm]

Ion, HS, LP

Ioff,HP

Ioff,LP

Ig,LP

Ig,HP

HP

LP (LOP)

EECS241B L22 LEAKAGE 22

Page 23: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Using Multiple Thresholds

Yano, SSTCW’00EECS241B L22 LEAKAGE 23

Page 24: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Typical Technologies

• 2-3 Thresholds • To choose from 4-6 in a node

• In bulk and finfet, but not in FDSOI (unless doped)

• Threshold voltage diff ~5-10x in leakage

EECS241B L22 LEAKAGE 24

Page 25: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

5.I Lowering Leakage During Design: Longer Channels

25EECS241B L22 LEAKAGE

Page 26: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Power /Energy Optimization Space

Constant Throughput/Latency Variable Throughput/Latency

Energy Design Time Sleep Mode Run Time

Active

Logic designScaled VDD

Trans. sizingMulti-VDD

Clock gatingDFS, DVS

Leakage

Stack effectsTrans sizingScaling VDD

+ Multi-VTh

Sleep T’sMulti-VDD

Variable VTh

+ Input control

DVS,Variable VTh

EECS241B L22 LEAKAGE 26

Page 27: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Longer Channels

0

1

2

3

4

5

6

7

8

0.1 0.15 0.2 0.25 0.3Gate Length [um]

Leak

age

Cur

rent

[nA

]

Switching energy

Leakage Current35%

10%

Lnom

•10% longer gates reduce leakage by 35% (in 130nm)• Increases switching energy by 21% with W/L = const.

•Attractive when don’t have to increase W (memory)•Doubling L reduces leakage by 3x (in 0.13um)•Much stronger effect in 28nm!•Effect improves with shorter channel devices

W/L = const.

EECS241B L22 LEAKAGE 27

Page 28: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Poly Bias

• 28FDSOI example

EECS241B L22 LEAKAGE 28

Page 29: Lecture 22 – Reducing Leakage Borivoje Nikolićinst.eecs.berkeley.edu/~ee241b/sp20/Lectures/... · Announcements •Assignment 4 due next Friday. •Reading • Rabaey, LPDE, Chapter

Longer Channels

EECS241B L22 LEAKAGE 29