Transcript ppt
ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 38: December 10, 2010 Energy and Computation 1 Penn ESE370 Fall2010 -- DeHon Question • Do we have to spend energy in order to compute? – What is the lower-bound on energy required to perform a computation? 2 Penn ESE370 Fall2010 -- DeHon Day 32 Minimum Energy • Single bit gate output – Set from previous value to 0 or 1 – Reduce state space by factor of 2 – Entropy: S= k×ln(before/after)=k×ln2 – Energy=T S=kT×ln(2) • Setting a bit costs at least kT×ln(2) 3 Penn ESE370 Fall2010 -- DeHon Today • • • • • Thermodynamics Information and Energy Reversibility Adiabatic Logic Adiabatic Pipelines 4 Penn ESE370 Fall2010 -- DeHon Second Law of Thermodynamics • Entropy in closed system increases: S≥0 – Entropy is a measure of disorder – Move from order to disorder • Heat does not move from cold areas to hot areas – Systems tend to equilibrium 5 Penn ESE370 Fall2010 -- DeHon Entropy • Measure of disorder of a system • Proportional to – logarithm of • the number of microscope states (arrangements of atoms, electrons…) that can give rise to macroscopic observation of state 6 Penn ESE370 Fall2010 -- DeHon Example • 2 electrons • Attached to any of 128 atoms – (e.g. conduction band) • Equilibrium: – States each could be in any of 128 positions (128*127/2)=8128 – log2(8128)=13 • Constrain both to be on left 64 – States both on left (64*63/2)=2116 – Smaller Entropy more order – log2(2116)=11 Penn ESE370 Fall 2010 -- DeHon 7 Information • Information standpoint – knowing both on left 64 – provides 2 bits of information • 6 bits = log(64) to describe each position instead of log(128)=7 • In fact we quantify how unknown a bitstream as information entropy 8 Penn ESE370 Fall2010 -- DeHon Entropy & Information • Entropy proportional to Information Content – Pun? • Thermodyanic Entropy vs. Information Entropy – Both defined as log(possibilities) • If equally likely • Reducing the information content – Reduces entropy requires energy proporational to change in entropy Penn ESE370 Fall2010 -- DeHon 9 Computation • Creates order • Take an output at any value and set it to a specific value – Decreases entropy • Bit set costs at least kT×ln(2) 10 Penn ESE370 Fall2010 -- DeHon Discard Information More specifically: • Discarding Information is what must cost thermodynamic energy S proportional to change in information content 11 Penn ESE370 Fall2010 -- DeHon Idea • Don’t discard information • Make changes that preserve the size of the state space – Preserve information • All state transforms must be reversible 12 Penn ESE370 Fall2010 -- DeHon Scale Change • Going to change scale – From configuration of atoms – To configurations of bits • Macroscale information • Necessary that macroscale information preservation hold – For microstate information not to shrink • Not sufficient by itself • Our concern is lower bounds Penn ESE370 Fall2010 -- DeHon 13 Idea • Don’t discard information • Make changes that preserve the size of the state space – Preserve information • All state transforms must be reversible 14 Penn ESE370 Fall2010 -- DeHon Reversible Operation • Irreversible – C=AND(A,B) • 4 states collapse to 2 • Reversible – C=XOR(A,B), with D=A – AB: 00 CD: 00 – AB: 01 CD: 10 – AB: 10 CD: 11 – AB: 11 CD: 01 Penn ESE370 Fall2010 -- DeHon 15 Reversible Operation • Irreversible – C=AND(A,B) with D=A • Only 3 states – (C=0,D=1) (C=1,D=1) (C=0,D=0) – C=1,D=0 cannot happen • Given C=0, D=0, cannot reconstruct B • Reversible – C=/A – C=XOR(A,B), with D=A – D=XOR(A&B,C) with E=A, F=B Penn ESE370 Fall2010 -- DeHon 16 Computational State Transform • Need to look at larger state than single result bit – To assess information preservation • Typical operations are not information preserving – Group common cases together • E.g. AND(A,B), OR(A,B) 17 Penn ESE370 Fall2010 -- DeHon Three Reversible Logic Primitives Controlled NOT Controlled Controlled NOT 18 Penn ESE680-002 Spring2007 -- DeHon Universal Primitives • These primitives – Universal – Reversible • If keep all the intermediates they produce – Discard no information – Can run computation in reverse 19 Penn ESE680-002 Spring2007 -- DeHon Reversible Half Adder A A B XOR(A,B) 0 A&B 20 Penn ESE370 Fall2010 -- DeHon Cleaning Up • Can keep “erase” unwanted intermediates with reverse circuit – Must “uncompute” the value 21 Penn ESE680-002 Spring2007 -- DeHon Reversible Computing • In principal – Reversible operations do not need to discard energy • Does not violate necessary conditions for energy consumption in thermodynamics • Restricting ourselves to reversible operations – Does not limit what we can compute • FYI – Reversibility required for Quantum Computing 22 Penn ESE370 Fall2010 -- DeHon Adiabatic • Adiabatic – a thermodynamic process without heat transfer 23 Penn ESE370 Fall2010 -- DeHon Adiabatic Logic SCRL Split-Level Charge Recovery Logic (Younis and Knight – ISLPED 1994) 24 Penn ESE370 Fall2010 -- DeHon SCRL Inverter F’s, nodes, at Vdd/2 • P1 at ground • • • • Slowly turn on P1 Slow split F’s Slow turn off P1’s Slow return F’s to Vdd/2 25 Penn ESE680-002 Spring2007 -- DeHon SCRL Inverter • Basic operation – Set inputs – Split rails to compute output adiabatically – Isolate output – Bring rails back together • Have transferred input (logic) to output • Still need to worry about resetting output adiabatically 26 Penn ESE680-002 Spring2007 -- DeHon SCRL Controlled NOT • Same basic idea works for any gate – Set inputs – Adiabatically switch output – Isolate output – Reset power rails 27 Penn ESE680-002 Spring2007 -- DeHon SCRL Cascade • Cascade like domino logic – Compute phase 1 – Compute phase 2 from phase 1… – Control Clock/power phases • How do we restore the output? 28 Penn ESE680-002 Spring2007 -- DeHon SCRL Pipeline • We must uncompute the logic – Forward gates compute output – Reverse gate restore to Vdd/2 29 Penn ESE680-002 Spring2007 -- DeHon SCRL Pipeline • • • P1 high (F1 on; F1 reset (F2-1) off) F1 split: a=F1(a0) F2 split: b=F2(F1(a0)) F2-1(F2(F1(a0))=a P1 low – now F2-1 drives a – But to same value already set • no voltage difference • F1 restore by F1 converge • …restore F2 • Use F2-1 to restore a to Vdd/2 adiabatically Penn ESE680-002 Spring2007 -- DeHon 30 Adiabatic Pipeline • Drive Forward • Hand off control of node to reverse computation from forward path • Allows earlier gates to reset for next operation – So can insert next value into pipeline – While previous value still traversing pipe 31 Penn ESE370 Fall2010 -- DeHon SCRL Pipeline b 32 Penn ESE370 Fall2010 -- DeHon SCRL Rail Timing 33 Penn ESE680-002 Spring2007 -- DeHon SCRL • Requires Reversible Gates to uncompute each intermediate – Macroscopic energy saving does require reversibility we derived for microscale thermodynamics • All switching (except IO) is adiabatic • Dissipate energy proportional to – Bits discarded at pipeline I/O – Speed of operation 34 Penn ESE680-002 Spring2007 -- DeHon Reversible Processor • Pendulum (Vieri) at MIT • Preserves enough information so every instruction reversible – E.g. • Memory operation is an exchange 35 Penn ESE370 Fall2010 -- DeHon Critical Questions • Same as adiabatic switching – Can contain losses enough to come out ahead? • Leakage • Resistive losses – High enough Q resonators? 36 Penn ESE370 Fall2010 -- DeHon Ideas • In principal, can compute without energy • Costs energy to discard information – So don’t do that – …or do as little as possible • Demands reversibility • Reversible computation can be universal • Can apply idea to CMOS 37 Penn ESE370 Fall2010 -- DeHon Final • Comprehensive – everything • Specific things you might expect – Energy and Delay estimation • Logic and interconnect • Elmore and wire delay – Driving RC wires and C loads – Precharge and Clocking – Memories – Crosstalk and Noise – Variation – Transmission Lines Penn ESE370 Fall2010 -- DeHon 38 Admin • Review Monday – Select Time • Monday 5—7pm (likely in Ketterer) • Andre office hours Tuesday 39 Penn ESE370 Fall2010 -- DeHon Feedback • Topics – Omitted (hoped to see) – Should have spent more time on – Should have spent less time on 40 Penn ESE370 Fall2010 -- DeHon