Stochastic Analog Circuit Behavior Modeling by Point g y - - PowerPoint PPT Presentation

stochastic analog circuit behavior modeling by point g y
SMART_READER_LITE
LIVE PREVIEW

Stochastic Analog Circuit Behavior Modeling by Point g y - - PowerPoint PPT Presentation

Stochastic Analog Circuit Behavior Modeling by Point g y Estimation Method Fang Gong 1 , Hao Yu 2 , Lei He 1 1 Univ. of California, Los Angeles 2 Nanyang Technological University, Singapore Nanyang Technological University, Singapore O tli


slide-1
SLIDE 1

Stochastic Analog Circuit Behavior Modeling by Point g y Estimation Method

Fang Gong1, Hao Yu2, Lei He1

  • 1Univ. of California, Los Angeles

2Nanyang Technological University, Singapore

Nanyang Technological University, Singapore

slide-2
SLIDE 2

O tli Outline

B k d

 Backgrounds  Existing Methods and Limitations  Proposed Algorithms  Experimental Results  Experimental Results  Conclusions

slide-3
SLIDE 3

IC Technology Scaling

 Feature size keeps scaling down to 45nm and below

Sh i ki

90nm 65nm 45nm

L i ti l d t i it f il d i ld bl

Shrinking Feature Sizes

 Large process variation lead to circuit failures and yield problem.

* Data Source: Dr. Ralf Sommer, DATE 2006, COM BTS DAT DF AMF;

slide-4
SLIDE 4

Statistical Problems in IC Technology

 Statistical methods were proposed to address variation

problems

 Focus on performance probability distribution extraction in

p p y this work

Random Fixed Design Process Random Distribution Fixed Value

Parameter Space

g Parameters Parameters

Mapping?

Circuit Performance Unknown Distribution

Performance Space How to model the stochastic circuit behavior (performance)? p

slide-5
SLIDE 5

Leakage Power Distribution

 An example ISCAS-85 benchmark circuit:

all threshold voltages (Vth) of MOSFETs have variations that follow Normal distribution.

 The leakage power distribution follow lognormal distribution.

*Courtesy by Fernandes, R.; Vemuri, R.; , ICCD 2009. pp 451-458 4-7 Oct 2009

It i d i d t t t th bit ( ll l) di t ib ti f

pp.451 458, 4 7 Oct. 2009

It is desired to extract the arbitrary (usually non-normal) distribution of performance exactly.

slide-6
SLIDE 6

Problem Formulation

 Given: random variables in parameter space

a set of (normal) random variables {ε1, ε2, ε3, ...} to model process a set o ( o a ) a do a ab es {ε1, ε2, ε3, } to

  • de p ocess

variation sources.

 Goal: extract the arbitrary probability distribution of performance  Goal: extract the arbitrary probability distribution of performance

f(ε1, ε2, ε3, ...) in performance space.

mapping

process variation Variable performance

Parameter Space Performance Space

slide-7
SLIDE 7

O tli Outline

B k d

 Backgrounds  Existing Methods and Limitations  Proposed Algorithms  Experimental Results  Experimental Results  Conclusions

slide-8
SLIDE 8

Monte Carlo simulation

 Monte Carlo simulation is the most straight-forward

g method.

SPICE Monte Carlo Analysis

Device variation

Analysis

Parameter Domain Performance Domain  However, it is highly time-consuming!

slide-9
SLIDE 9

Response Surface Model (RSM)

 Approximate circuit performance (e.g. delay) as an analytical

pp p ( g y) y function of all process variations (e.g. VTH, etc )

Synthesize analytical function of performance as random variations.

Results in a multi-dimensional model fitting problem.

Results in a multi dimensional model fitting problem.

 Response surface model can be used to

Estimate performance variability f p y

Identify critical variation sources

Extract worst-case performance corner

Etc Δx1 Δx2

Etc.

 

N N

p f          

1 1

slide-10
SLIDE 10

Flow Chart of APEX*

Synthesize analytical function

  • f performance using RSM

 

N N

p f          

1 1

Calculate moments Calculate the probability distribution function (PDF) of ( ) performance based on RSM

h(t) can be sed to estimate df(f) h(t) can be used to estimate pdf(f)

*Xin Li, Jiayong Le, Padmini Gopalakrishnan and Lawrence Pileggi, "Asymptotic probability extraction for non-Normal distributions of circuit performance," IEEE/ACM International Conference on Computer-Aided Design (ICCAD), pp. 2-9, 2004.

slide-11
SLIDE 11

Li it ti f APEX Limitation of APEX

RSM based method is time-consuming to get the analytical function of RSM based method is time consuming to get the analytical function of performance.

It has exponential complexity with the number of variable parameters n and

  • rder of polynomial function q.

e.g., for 10,000 variables, APEX requires 10,000 simulations for linear function, and 100 millions simulations for quadratic function.

1 2 1 1 2 2

( , , , ) ( )q

n n n

f x x x x x x         

RSM based high-order moments calculation has high complexity

th b f t i fk i ti ll ith th d f t

the number of terms in fk increases exponentially with the order of moments.

1 2 1 1 2 2

( , , , ) ( )

k k q n n n

f x x x x x x   

     

slide-12
SLIDE 12

Contribution of Our Work

Step 1: Calculate High Order Moments of Performance

APEX Proposed Method

Fi d l ti l f ti f f i RSM Find analytical function of performance using RSM

 

N N

p f          

1 1

Calculate high order moments A few samplings at selected points. Calculate high order moments

  

  df f pdf f m

k k f

)) ( (

Calculate moments by Point Estimation Method

Step 2: Extract the PDF of performance

   

  

             

M t b M r k k k k k k

f pdf e a t h a dt t h t m df f pdf f m

k r

) ( ) ( )) ( ( ) 1 ( )) ( ( ) 1 (

1

  

Our contribution:

We do NOT need to use analytical formula in RSM;

   

      

           

r r r k r t f

f pdf e a t h b dt t h t k m df f pdf f k m

1 1 1

) ( ) ( )) ( ( ! )) ( ( !

We do NOT need to use analytical formula in RSM;

Calculate high-order moments efficiently using Point Estimation Method;

slide-13
SLIDE 13

O tli Outline

B k d

 Backgrounds  Existing Methods and Limitations  Proposed Algorithms  Experimental Results  Experimental Results  Conclusions

slide-14
SLIDE 14

Moments via Point Estimation

 Point Estimation: approximate high order moments with a

weighted sum of sampling values of f(x).

are estimating points of random variable

are estimating points of random variable.

Pj are corresponding weights.

k-th moment of f(x) can be estimated with

PDF

 Existing work in mechanical area* only provide empirical

l ti l f l f d f fi t f t

x1 x2 x3

analytical formulae for xj and Pj for first four moments.

Question – how can we accurately and efficiently calculate the higher order moments of f(x)? calculate the higher order moments of f(x)?

* Y.-G. Zhao and T. Ono, "New point estimation for probability moments," Journal of Engineering Mechanics, vol. 126, no. 4,

  • pp. 433-436, 2000.
slide-15
SLIDE 15

Calculate moments of performance

 Theorem in Probability: assume x and f(x) are both continuous

random variables, then:

 Flow Chart to calculate high order moments of performance:  Flow Chart to calculate high order moments of performance:

pdf(x) of parameters is known Step 5: extract performance distribution pdf(f) Step 1: calculate moments of parameters

 

   

   

m j k j j k k x

x P dx x pdf x m

1

) ( )) ( (

Step 4: calculate moments of performance

 

   

   

m j k j j k k f

x f P dx x pdf f m

1

)) ( ( )) ( (

Step 2: calculate the estimating points xj and weights Pj Step 3: run simulation at estimating points xj and get performance samplings f(xj)

Step 2 is the most important step in this process.

slide-16
SLIDE 16

Estimating Points xj and Weights Pj

With t t hi th d d b l l t d b

With moment matching method, and Pj can be calculated by

j

x

1 1

1 ( )

m k j x j m j j

P m P x E x m

    

 

1 2 2 2 1

( ) ( )

j j x j m j j x j

P x E x m P x E x m

 

  

 

 

can be calculated exactly with pdf(x).

( 0,...,2 1)

k x

m k m  

2 1 2 1 2 1 1

( )

m m m m j j x j

P x E x m

   

  

Assume residues aj= Pj and poles bj=1/

j

x

1

( 1) ( ) !

k m k j j j

P f x k

   

system matrix is well-structured (Vandermonde matrix);

nonlinear system can solved with deterministic method.

slide-17
SLIDE 17

Extension to Multiple Parameters p

 Model moments with multiple parameters as a linear combination

p p

  • f moments with single parameter.
  • f(x1,x2,…,xn) is the function with multiple parameters.
  • f(xi) is the function where xi is the single parameter.
  • gi is the weight for moments of f(xi)
  • c is a scaling constant.
slide-18
SLIDE 18

Error Estimation

We use approximation with q+1 moments as the exact value, when investigating PDF extracted with q moments. Wh

When moments decrease progressively

lized)

)) ( (



df f df f k

k

Moment (norma

)) ( (

 

  df f pdf f m

k k f

0 < f < 1

Magnitude of M Order of Moment M

Other cases can be handled after shift (f<0), reciprocal (f>1) or scaling operations of performance merits.

slide-19
SLIDE 19

O tli Outline

B k d

 Backgrounds  Existing Methods and Limitations  Proposed Algorithms  Experimental Results  Experimental Results  Conclusions

slide-20
SLIDE 20

(1) Validate Accuracy: Settings ( ) y g

To validate accuracy, we compare following methods:

MMC+APEX PEM

p g

Monte Carlo simulation.

run tons of SPICE simulations to get performance distribution

Run Monte Carlo Calculate time Point Estimation

performance distribution.

PEM: point estimation based method (proposed in this work) Calculate time moments

calculate high order moments with point estimation.

MMC+APEX: Match with the time moment of a LTI system

  • btain the high order

moments from Monte Carlo simulation.

perform APEX analysis flow perform APEX analysis flow with these high-order moments.

slide-21
SLIDE 21

6-T SRAM Cell

Study the discharge behavior in BL B node during reading

Study the discharge behavior in BL_B node during reading

  • peration.

Consider threshold voltage of all MOSFETs as independent Gaussian variables with 30% perturbation from nominal values Gaussian variables with 30% perturbation from nominal values.

Performance merit is the voltage difference between BL and BL_B nodes.

slide-22
SLIDE 22

Variations in threshold voltage lead to deviations on discharge behavior

Accuracy Comparison

g g

Investigate distribution of node voltage at certain time-step.

Monte Carlo simulation is used as baseline.

Both APEX and PEM can provide high accuracy when compared with MC g y simulation.

urrence d)

PDF

bility of Occu (Normalized

MC results

Proba

MC results

Voltage (volt)

slide-23
SLIDE 23

(2)Validate Efficiency: PEM vs. MC

 For 6-T SRAM Cell, Monte Carlo methods requires 3000

( ) a date c e cy s C

q times simulations to achieve an accuracy of 0.1%.

 Point Estimation based Method (PEM) needs only 25 times

simulations and achieve up to 119X speedup over MC simulations, and achieve up to 119X speedup over MC with the similar accuracy.

slide-24
SLIDE 24

Compare Efficiency: PEM vs. APEX

To compare with APEX:

One Operational Amplifier under a commercial 65nm CMOS process.

Each transistor needs 10 independent variables to model the random p variation*.

Circuit Name Transistor # Mismatch Variable # SRAM Cell ~ 6 ~ 60 SRAM Cell 6 60 Operational Amplifier ~ 50 ~ 500 ADC ~ 2K ~ 20K SRAM Critical Path 20K 200K 

We compare the efficiency between PEM and APEX by the required number of simulations.

SRAM Critical Path ~ 20K ~ 200K 

Linear vs. Exponential Complexity:

PEM: a linear function of number of sampling point and random variables

PEM: a linear function of number of sampling point and random variables.

APEX: an exponential function of polynomial order and number of variables.

* X. Li and H. Liu, “Statistical regression for efficient high-dimensional modeling of analog and mixed-signal performance variations," in Proc. ACM/IEEE Design Automation Conf. (DAC), pp. 38-43, 2008.

slide-25
SLIDE 25

Operational Amplifier p p

 A two-stage operational amplifier

complexity in APEX increases exponentially with polynomial orders and number of variables and number of variables.

PEM has linear complexity with the number of variables.

Quadratic polynomial case Operational Amplifier with 500 variables

~124X ~124X

Polynomial Order in RSM

The Y-axis in both figures has log scale!

slide-26
SLIDE 26

C l i Conclusion

 Studied stochastic analog circuit behavior modeling  Studied stochastic analog circuit behavior modeling

under process variations L th P i t E ti ti M th d (PEM) t

 Leverage the Point Estimation Method (PEM) to

estimate the high order moments of circuit behavior systematically and efficiently.

 Compared with exponential complexity in APEX,

proposed method can achieve linear complexity of proposed method can achieve linear complexity of random variables.

slide-27
SLIDE 27

Thank you! Thank you! Thank you! Thank you!

ACM International Symposium on Physical Design 2011

Fang Gong, Hao Yu and Lei He