An algorithmic framework for efficient large-scale circuit simulation using exponential integrators

Hao Zhuang, Wenjian Yu, Ilgweon Kang, Xinan Wang, Chung-Kuan Cheng

TL;DR

This paper introduces a novel algorithmic framework for simulating large-scale, stiff electronic circuits that significantly speeds up the process compared to traditional methods. By employing exponential integrators and an "invert Krylov subspace" method, the authors overcome critical limitations in existing simulators, enabling more efficient and robust analysis of complex integrated circuits.

What Problem Does This Paper Address?

Simulating complex integrated circuits (VLSI) is crucial for their design and production. As circuits become larger and more intricate, especially with detailed parasitic couplings from post-layout analysis, they form "stiff and nonlinear dynamical systems." Traditional simulation methods, like SPICE, often rely on implicit integration schemes (e.g., backward Euler) combined with Newton-Raphson (NR) iterations. While robust, these methods require computationally expensive LU decompositions of matrices multiple times per time step, especially when adjusting step sizes for accuracy. This becomes a bottleneck for large-scale simulations, sometimes rendering them infeasible. Existing attempts using matrix exponentials have also faced challenges with slow convergence and the need for matrix factorization of capacitance matrices, which can be complex and singular. This paper aims to address these efficiency and robustness issues for large-scale circuit simulation.

Methods

The core of the proposed framework lies in two key innovations:

  1. Exponential Rosenbrock-Euler Formulation: Instead of traditional implicit methods, the authors adopt an exponential Rosenbrock-Euler method. This formulation offers a stable, explicit approach for solving stiff differential algebraic equations (DAEs) without requiring NR iterations. This explicit nature is key to avoiding repeated LU decompositions when adapting time steps for error control.
  2. Invert Krylov Subspace Method for MEVP: The computation of matrix exponentials and their products with vectors (MEVP) is a critical operation. The paper proposes using an "invert Krylov subspace" method for this. This approach has several advantages:
  3. Reduced Matrix Factorization: It only requires factorization of the conductance/resistance matrix (G), which is generally sparser and simpler than the capacitance/inductance matrix (C). This avoids the costly factorization of C or combinations of C and G, especially when C is singular or complex.
  4. Improved Convergence: It offers a better convergence rate for MEVP compared to standard Krylov subspace methods, reducing the need for large subspace dimensions.
  5. No Regularization: It bypasses the need for regularization processes that are often required for singular capacitance matrices in other methods.

The framework also includes a local nonlinear error estimator to adapt time step sizes and an optional correction term (ER-C) to further improve accuracy by reusing intermediate computation results.

Datasets

The paper evaluates its framework on "large-scale circuits," including a "stiff design with a singular C matrix" and specific test cases labeled ckt1 through ckt8. These test cases are described as having varying degrees of complexity in their capacitance matrices and interconnect structures, with ckt5 specifically mentioning the interconnect structure of the FreeCPU design. The authors do not introduce new benchmark datasets but rather use existing circuit netlists and device models (specifically BSIM3) for evaluation.

Key Insights and Ideas

  • Explicit is Better (for speed): The paper demonstrates that moving towards explicit integration methods, like the exponential Rosenbrock-Euler, can dramatically reduce the computational burden by avoiding iterative solvers and repeated matrix factorizations.
  • Focus on G, Not C: The "invert Krylov subspace" method cleverly shifts the computational bottleneck from factoring the complex capacitance matrix (C) to factoring the simpler conductance matrix (G). This is a significant win for large-scale circuits where C can be massive and ill-behaved.
  • Adaptive Time-Stepping Without Re-LU: A major practical advantage is the ability to adjust time step sizes for error control without needing to re-perform LU decompositions, a common pain point in traditional implicit methods.
  • Handling Stiff and Singular Systems: The proposed method is shown to be more robust in handling stiff systems and singular capacitance matrices, where other matrix exponential methods struggle or require costly workarounds.

Key Results

The proposed framework, termed ER (Exponential Rosenbrock-Euler) and ER-C (with correction), demonstrates significant improvements over the baseline Backward Euler with Newton-Raphson (BENR) method:

  • Speedup: For simpler capacitance matrices (ckt1-ckt3), speedups of 1.4x to 2.3x were observed. For more challenging test cases (ckt4-ckt8) with complex capacitance matrices and parasitic couplings, speedups reached up to 23.2x (ER) and 20.7x (ER-C). In some cases, BENR failed to complete simulations within reasonable resource limits ("Out of Memory" or extremely long runtimes), while the proposed methods succeeded.
  • Accuracy: Comparisons with a reference solution (obtained by BENR with a very small step size) showed that ER and ER-C maintained better accuracy, with ER-C even achieving comparable accuracy with a 2x larger step size than BENR.
  • Memory Efficiency: For challenging cases where BENR exhausted 32GB of memory, the proposed framework consumed less than 12GB, highlighting its memory efficiency.

Limitations and Future Work

  • Matrix-Vector Multiplication Cost: While the framework avoids LU decompositions, the "invert Krylov subspace" method still involves matrix-vector multiplications, particularly with the capacitance matrix (C). For circuits with very large and dense C matrices, this can still be a computational cost, as noted for ckt5.
  • Parallelization Potential: The authors suggest that parallelizing the matrix-vector multiplication operations, especially those involving C, could further enhance runtime performance. This points towards future work in leveraging multi-core or many-core architectures.
  • Further Optimization: While significant speedups are achieved, there's always room for further optimization in the implementation and algorithmic details.

Summary updated

BibTeX
@inproceedings{zhuang2015algorithmic,
  author = {Hao Zhuang and Wenjian Yu and Ilgweon Kang and Xinan Wang and Chung-Kuan Cheng},
  title = {{An algorithmic framework for efficient large-scale circuit simulation using exponential integrators}},
  booktitle = {DAC},
  year = {2015},
  doi = {10.1145/2744769.2744793},
}
Figure