SPICE Diego : Circuit Simulation for Post Layout Analysis Chung-Kuan Cheng Department of Computer Science and Engineering University of California, San.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Joint Mathematics Meetings Hynes Convention Center, Boston, MA
Design Rule Generation for Interconnect Matching Andrew B. Kahng and Rasit Onur Topaloglu {abk | rtopalog University of California, San Diego.
Slide 1 Bayesian Model Fusion: Large-Scale Performance Modeling of Analog and Mixed- Signal Circuits by Reusing Early-Stage Data Fa Wang*, Wangyang Zhang*,
Chapter 8 Elliptic Equation.
5/4/2015rew Accuracy increase in FDTD using two sets of staggered grids E. Shcherbakov May 9, 2006.
Computer Science & Engineering Department University of California, San Diego SPICE Diego A Transistor Level Full System Simulator Chung-Kuan Cheng May.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Prof. Chung-Kuan Cheng 1.
Ordinary Differential Equations
Circuit Simulation via Matrix Exponential Operators CK Cheng UC San Diego 1.
1cs542g-term Notes  Even if you’re not registered (not handing in assignment 1) send me an to be added to a class list.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Prof. Chung-Kuan Cheng 1.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 3 Model Order Reduction (1) Spring 2008 Prof. Chung-Kuan Cheng.
MA5233: Computational Mathematics
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Notes 3 Model Order Reduction (1) Spring 2008 Prof. Chung-Kuan Cheng.
Solutions for Nonlinear Equations
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
UCSD CSE 245 Notes – SPRING 2006 CSE245: Computer-Aided Circuit Simulation and Verification Lecture Notes 3 Model Order Reduction (1) Spring 2006 Prof.
SAMSON: A Generalized Second-order Arnoldi Method for Reducing Multiple Source Linear Network with Susceptance Yiyu Shi, Hao Yu and Lei He EE Department,
UCSD CSE245 Notes -- Spring 2006 CSE245: Computer-Aided Circuit Simulation and Verification Lecture Notes Spring 2006 Prof. Chung-Kuan Cheng.
An Algebraic Multigrid Solver for Analytical Placement With Layout Based Clustering Hongyu Chen, Chung-Kuan Cheng, Andrew B. Kahng, Bo Yao, Zhengyong Zhu.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Ordinary Differential Equations (ODEs)
Circuit Simulation via Matrix Exponential Method Speaker: Shih-Hung Weng Adviser: Chung-Kuan Cheng Date: 05/31/
More Realistic Power Grid Verification Based on Hierarchical Current and Power constraints 2 Chung-Kuan Cheng, 2 Peng Du, 2 Andrew B. Kahng, 1 Grantham.
ECE 546 – Jose Schutt-Aine 1 ECE 546 Lecture -13 Latency Insertion Method Spring 2014 Jose E. Schutt-Aine Electrical & Computer Engineering University.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Prof. Chung-Kuan Cheng.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
Introduction to Adaptive Digital Filters Algorithms
Algorithms for a large sparse nonlinear eigenvalue problem Yusaku Yamamoto Dept. of Computational Science & Engineering Nagoya University.
CFD Lab - Department of Engineering - University of Liverpool Ken Badcock & Mark Woodgate Department of Engineering University of Liverpool Liverpool L69.
Efficient Integration of Large Stiff Systems of ODEs Using Exponential Integrators M. Tokman, M. Tokman, University of California, Merced 2 hrs 1.5 hrs.
Thermal-ADI: a Linear-Time Chip-Level Dynamic Thermal Simulation Algorithm Based on Alternating-Direction-Implicit(ADI) Method Good afternoon! The topic.
Integration of 3-body encounter. Figure taken from
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Performance & Stability Analysis.
+ Numerical Integration Techniques A Brief Introduction By Kai Zhao January, 2011.
1 Complex Images k’k’ k”k” k0k0 -k0-k0 branch cut   k 0 pole C1C1 C0C0 from the Sommerfeld identity, the complex exponentials must be a function.
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
Distributed Computation: Circuit Simulation CK Cheng UC San Diego
Transient Analysis CK Cheng UC San Diego CK Cheng UC San Diego Jan. 25, 2007.
Circuits Theory Examples Newton-Raphson Method. Formula for one-dimensional case: Series of successive solutions: If the iteration process is converged,
Numerical Analysis – Differential Equation
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Spring 2010 Prof. Chung-Kuan Cheng.
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Circuit Simulation using Matrix Exponential Method Shih-Hung Weng, Quan Chen and Chung-Kuan Cheng CSE Department, UC San Diego, CA Contact:
Pieter Heres, Aday Error control in Krylov subspace methods for Model Order Reduction Pieter Heres June 21, 2005 Eindhoven.
Finding Rightmost Eigenvalues of Large, Sparse, Nonsymmetric Parameterized Eigenvalue Problems Minghao Wu AMSC Program Advisor: Dr. Howard.
VEHICLE DYNAMICS SIMULATIONS USING NUMERICAL METHODS VIYAT JHAVERI.
Exploring the Rogue Wave Phenomenon in 3D Power Distribution Networks Xiang Hu 1, Peng Du 2, Chung-Kuan Cheng 2 1 ECE Dept., 2 CSE Dept. University of.
Lecture 11 Alessandra Nardi
CHAPTER 2 - EXPLICIT TRANSIENT DYNAMIC ANALYSYS
Xiang Hu1, Wenbo Zhao2, Peng Du2, Amirali Shayan2, Chung-Kuan Cheng2
Chapter 2 Interconnect Analysis
A Cloud System for Machine Learning Exploiting a Parallel Array DBMS
CSE245: Computer-Aided Circuit Simulation and Verification
Autonomous Cyber-Physical Systems: Dynamical Systems
CSE 245: Computer Aided Circuit Simulation and Verification
CSE245: Computer-Aided Circuit Simulation and Verification
Thermal-ADI: a Linear-Time Chip-Level Dynamic Thermal Simulation Algorithm Based on Alternating-Direction-Implicit(ADI) Method Good afternoon! The topic.
CSE245: Computer-Aided Circuit Simulation and Verification
Comparison of CFEM and DG methods
Transient Analysis of Power System
6th Lecture : Numerical Methods
RKPACK A numerical package for solving large eigenproblems
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
Presentation transcript:

SPICE Diego : Circuit Simulation for Post Layout Analysis Chung-Kuan Cheng Department of Computer Science and Engineering University of California, San Diego, CA, USA Contact:

Outline Background of Transient Circuit Simulation – Formulations – Problems Matrix Exponential Circuit Simulation (Mexp) – Stiffness Problem – Skip of Regularization – Flexible Time Stepping – Errors Experiments Conclusions 2

Previous Works SPICE – R. Rohrer, 1960s, D. Pederson, 1973 – Xyce (parallel processing) – Ngspice (open source) Matrix Exponential – C. Moler, C. Van Loan, 19 dubious ways to compute the exponential of a matrix, 1978; twenty-five years later, 2003 – A. Nauts, R.E. Wyatt, 1983; T.J. Park, J.C. Light, 1986; Y. Saad,

VLSI Circuit: Devices + Interconnect C: cap./ind. matrix G: cond./imp. matrix x(t): v/i vector, and u(t): input sources n: millions to billions of nodes 4 Multiple layers of metal with tightly coupling C and L (post layout) Millions to billions of devices Low margin designs with severe noises

Simulation Flow Device Evaluation – effective caps and current – linearization Numerical Integration – solve a system of ordinary differential equations Convergence & Error Check – stability and errors Step Control – adjust step size 5 Device Evaluation Numerical Integration Convergence & Error Check re-evaluate Circuit netlist Step Control stepping finish

Transient Circuit Simulation Transient simulation: Numerical integration Low order approx.: Backward Euler, Trapezoidal, Gear’s – Matrix decomposition for each time step h – Implicit process with Newton Raphson iteration – Dahlquist stability barrier – Local truncation error limits the time step High order approx.: Matrix exponential operator – Matrix decomposition for flexible time step h – Explicit and stable process – Error reduces as step size increases for certain operators 6

Numerical Integration Forward Euler Backward Euler Trapezoidal Method 7

Trade off between stability and performance SILCA [Li & Shi, ‘03]ACES [Devgan & Rohrer, ‘97] Numerical Integration 8 computational effort stability high low high Backward Euler Forward Euler our method Telescopic [Dong & Li, ‘10]

Analytical Formulation Standard Krylov Method Rational Krylov Method Invert Krylov Method Matrix Exponential Methods 9

Matrix Exponential Method Analytical solution perspective – Let A=-C -1 G, b=C -1 u (C can be regularized [TCAD 2012]) Let input be piecewise linear 10

Matrix Exponential Computation 11

Matrix Exponential Method Accuracy: Analytical solution – Approximate e Ah as (I+Ah)  Forward Euler – Approximate e Ah as (I-Ah) -1  Backward Euler Scalable: Sparse matrix-vector multiplication (SpMV) Stability: Stable for passive circuits 12 reference solution

13

Property of Standard Krylov Subspace Method Theorem [Saad ‘92]: Standard Krylov method fits the first m terms in Taylor’s expansion. Standard Krylov subspace tends to capture the eigenvalues of large magnitude For transient analysis, the eigenvalues of small real magnitude are wanted to describe the dynamic behavior. 14

Rational Krylov Subspace Spectral Transformation: – Shift-and-invert matrix A – Rational Krylov subspace captures slow-decay components – Use rational Krylov subspace for matrix exponential 15 Important eigenvalue: Component that decays slowly. Not so important eigenvalue: Component that decays fast.

Rational Krylov Subspace: e Ah v Rational Krylov subspace Arnoldi orthogonalization V m =[v 1 v 2 … v m ] Matrix reduction (Assume that v 1 =v) Matrix exponential operator 16

Invert Krylov Subspace e Ah v Invert Krylov space Arnoldi orthogonalization V m =[v 1 v 2 … v m ] Matrix reduction (v 1 =v) Matrix exponential operator 17 Comment: The calculation of A -1 v i =G -1 Cv i is much simpler when G is sparse but C is not for post layout simulation

Absolute Error: A Sample Test Case 18

Matrix exponential operators vs. low order scheme FE: Forward Euler Std. M: standard Mexp, m=2 Inv. M: Invert Mexp, m=2 Rat. M: Rational Mexp, m=2 BE: Backward Euler TR: Trapezoidal 19

Matrix exponential operators vs. low order scheme 20

Matrix exponential operators vs. low order scheme 21 Method FE2 orderdiverge BE2 orderflat TR3 orderflat* Std Kry2 orderflatdrop Inv Kry1 orderflatdrop Rat Kry1 orderflatdrop

Rational Krylov Method vs Trapezoidal Method

Rational Krylov Space Method

Standard and Invert Krylov Methods

As m increases, the curve of Krylov method shifts to the right and converges at the right end the curve of invert Krylov method shifts to the left and converges at the left end. The desired time step h is around second range which is near the right end.

Three Krylov Methods

Experiment (Rational Krylov) Linux workstation – Intel Core i GHz CPU – 12GB memory. Test Cases – Stiff RC mesh network (2500 Nodes) Mexp vs. Rational Mexp – Power Distribution Network (45.7K~7.4M Nodes) Rational Mexp vs. Trapezoidal (TR) with fixed time step (avoid LU during the simulation) 31

Experiment (I) RC mesh network with 2500 nodes. (Time span [0, 1ns] with a fixed step size 10ps) stiffness definition: Comparisons between average (m avg ) and peak dimensions (m peak ) of Krylov subspace using – Standard Basis: m avg = 115 and m peak =264 – Rational Basis: m avg = 3.11, and m peak =10 Rational Basis-MEXP achieves 224X speedup for the whole simulation (vs. Standard Basis-MEXP). 32

Experiment (II) PDN Cases – On-chip and off-chip components – Low-, middle-, and high-frequency responses – The time span of whole simulation [0, 1ps] 33

Experiment (II) 34 Mixture of low, mid, and high frequency components. 16X speedups over TR. Difference of MEXP and HSPICE: 7.33×10 -4 ; TR and HSPICE: 7.47×10 -4

Experiment: CPU time 35

Conclusions on Rational Krylov Approach Rational Krylov Subspace solves the stiffness problem. – No need of regularization – Small dimensions of basis. – Flexible time steps. Adaptive time stepping is efficient to explore the different frequency responses of power grid transient simulation (considering both on-chip and off-chip components) – 15X speedup over trapezoidal method. 36

Experiment (Invert Krylov) Implemented in MATLAB and C/C++ – The interactions between C/C++ and MATLAB 2013a are through MATLAB Executable (MEX) external interface with GCC – Devices are evaluated using BSIM3 device model and matrix stamping using C code. In a Linux workstation – Intel CPU i7 3.4GHZ – 32GB memory 37

Numerical Results [1] Results of IEEE EMC&SI [1]. Simulation of PDN with Nonlinear Components 38 [1] H. Zhuang, I. Kang, X. Wang, J.-H. Lin C. K. Cheng. “Dynamic Analysis of Power Delivery Network with Nonlinear Components Using Matrix Exponential Method”, IEEE EMC & SI 2015, (to appear)

Numerical Results (II) [2] H. Zhuang, W. Yu, I. Kang, X. Wang, C. K. Cheng, “An Algorithmic Framework of Large-Scale Circuit Simulation Using Exponential Integrators,” ACM/IEEE DAC Results from our DAC 2015 [2] Simulation of large general circuits Due to the C matrix, the factorization complexity of (C+hG) increased

Conclusions Rational/Invert Krylov methods solve the stiffness problem. – No need of regularization – Small dimensions of basis. – Explicit integration (no need of NR iteration) – Flexible time steps Invert Krylov method – Post layout analysis 40

Conclusions: Future Works C++ code of SPICE Diego Mutliscale multiphysical analysis – SPICE, full wave, thermal cycling, stress simulation Theory of matrix exponential Distributed computation 41

Thanks and Q&A 42

Rational Krylov Approach: gamma = 1e-14

Rational Krylov Approach: gamma= 5e-15

Rational Krylov Approach: gamma=5e-19