250 likes | 263 Views
This seminar presentation discusses the importance of sampling-based techniques in analyzing power grids and explores localized sensitivity analysis and second-order parametric analysis. The motivation, prior works, challenges, and implementation of these techniques are covered.
E N D
Statistical Sampling-Based Parametric Analysis of Power GridsDr. Peng Li EE5970 Seminar Presented by Xueqian Zhao
Outline • Motivation • Prior works • Importance sampling technique • Sampling-based localized sensitivity analysis • Sampling-based 2nd order parametric analysis • Conclusion
Motivation • Power/Ground integrity becomes a serious challenge for modern chip design • IR drops reduce noise margin and increase circuit delay • 10% supply voltage fluctuations may translate in more than 10% timing variation • Technology scaling worsens the P/G integrity • Reduction of power supply voltage
Analysis Challenge • Modern P/G networks routinely reach multi-million node complexity • Full grid analysis becomes very expensive • Need to consider significant variation in power consumption • Active power is mode dependent • Process and temperature variability impact significantly the leakage power • Power grids are also subject to parametric variations due to fabrication fluctuations • Multiplicity of variations in power grids make the analysis even more difficult
Prior Works • P/G can be modeled as a linear system: • Direct methods: • LU, Cholesky decomposition • Iterative methods: • Conjugate gradient (CG), preconditioned CG • Multigrid method • Since G is a sparse matrix, the complexity of above methods is around O(n2)
Random Walks • Convert an electrical network to a random walk • Circuit response estimated locally via mean estimation • Average over a set of statistical samples • Locality exploited naturally without solving the complete network
Random Walks (cont.) • Transition probabilities between states are obtained from the electrical network • The random walk can be described as Markov chain • The complexity can be reduced to O(n), compared to prior works.
Localized Analysis • Locally solve for selected circuit nodes • Compute the nominal node voltage (IR drop) for each node • Achievable through random walks • Sensitivities with respect to multiple process/loading variations?? • High order parametric dependencies?? Target Node ni VDD VDD
Adjoint Sensitivity Analysis • Classical adjoint sensitivity analysis • Requires two complete linear solutions • Obscure the possibility of locality • Localized sensitivity analysis??
Original Circuit (A) Pk1 Pk2 Pk3 Vdd node ni … Perturbed Circuit (B) P’k1 P’k2 P’k3 Vdd node ni … Intuition • Original circuit differs from the perturbed circuit in circuit element values • Want to solve both circuits simultaneously by only sampling in the original circuit • Need to scale each sample to correct the sampling bias: D’k (P’k/Pk)D’k Value: Dk Prob: Pk = Pk1Pk2 Value: D’k Prob: P’k = P’k1P’k2…
Importance Sampling • View random walks algorithms as a Monte Carlo method • Circuit response is estimated via mean estimation • Importance sampling allows us to estimate the mean of a statistical distribution while sampling according to another distribution • Ratio estimate
Localized Sensitivity Analysis • Design / process parameters • Perform sampling only in the nominal circuit • Estimate the response in any parametric circuit • Need to propagate the first order sensitivities while sampling in the nominal circuit
Localized Sensitivity Analysis • Propagate circuit element parametric sensitivities • Perform a few scalar arithmetic operations • Additions, subtractions, multiplications and divisions
+ Localized Parametric Analysis Flow Pick a new move according to the nominal ckt Pick a new move according to the nominal ckt Compute the prob. of this move and update the path prob. Ppath for the param. ckt Compute the prob. of this move and update the path prob. Ppath for the param. ckt Accumulate the cost incurred by the move … … Accumulate the cost incurred by the move … … … … Weight the gain of the complete walk by Wpath = Ppath/Ppath(nom) Weight the gain of the complete walk by Wpath = Ppath/Ppath(nom) Mean estimate: Sum up and normalize
Second Order Analysis • 2nd order analysis gives more accurate results for larger perturbations • Straightforward implementation is prohibitively expensive • 276 coefficients needed for 22 variables ! • Can exploit the inherent spatial locality in the algorithm formulation • Adopt two 2nd order parametric forms: • Voltage response estimate /cost incurred due to current sources • State-transition/path probabilities
Global Semi-Global Local + + Exploring Spatial Locality • Naïve 2nd order analysis not feasible for a large number of inter-/intra die variations • Model variations sources using a hierarchical model • Global, semi-global and local variations • Local data types impacted only by a small set of variations • Represented in a SPARSE 2nd order form
Node of Interest X Exploring Spatial Locality • Data interactions • Local + local: efficiently computable • Global + global: only happen at end of each random walk • Global + local: many counts / dominant cost! • Exploring sparsity • Dominant cost: O(NGNL), NL << NG
Importance Sampling Estimators • Importance sampling • Integration estimator • Ratio estimator
Importance Sampling Estimators • Regression estimator
Results • Comparison of estimators • 40k-node grid • Solve the nominal ckt and the perturbed circuit simultaneously IR drop estimation in the perturbed circuit
Results • Localized sensitivity analysis • Simultaneously solve for sensitivities • Compared with direct sensitivity
Results • 22 variation sources • 1st order analysis: 23 coefficients • 2nd order analysis: 276 coefficients • Runtime • 1st order: 3.1s • 2nd order: 22s • A 250K node grid • Resistance variation • Average: 12.3% • Max: 55% 1000 samples: 1st order errors 1000 samples: 2nd order errors
Results • 22 variation sources • 1st order analysis: 23 coefficients • 2nd order analysis: 276 coefficients • Runtime • 1st order: 4s • 2nd order: 28s • A 1.1 million node grid • Resistance variation • Average: 13% • Max: 55% • Loading variation • Average: 19% • Max: 164% 1000 samples: 1st order errors 1000 samples: 2nd order errors
Results • Runtime as a function of number of variations • Near-linear complexity achieved by exploring spatial locality 2nd order analysis runtime
Conclusion • Power/ground network verification is becoming increasingly difficult due to large problem complexity • The analysis complexity exacerbates as we address process variations and current loading uncertainties • Efficient parametric analysis is proposed to analyze large power grids locally • Adopt importance sampling in Monte Carlo method • Lends itself naturally to a localized version of the classical sensitivity analysis • 2nd order analysis improves the accuracy for larger loading and process variations • Explore the spatial locality of the algorithm formulation to achieve near-linear complexity