ADSPICE: A Method of Automatic Differentiation for Gradient-Based Lumped Circuit Optimization with Native SPICE
Marcus W. Wolff, Alan Brannon
Abstract
This work presents a novel computer-aided design (CAD) tool for gradient-based circuit optimization using SPICE and automatic differentiation, which we term ADSPICE. Automatic differentiation (AD) is a technique for evaluating a derivative by breaking it into its elementary differentiation operations and repeatedly applying the chain rule, in contrast with a finite-difference-based derivative computed from a small perturbation. Native SPICE (realized with ngspice) is equipped with automatic differentiation toward gradient-based optimization, particularly adjoint-mode optimization. This is implemented with custom C code and shared library control, allowing easy integration with existing SPICE infrastructure. We show a computational performance analysis, demonstrating faster optimization vs. an existing finite-difference method, SPICE OPUS, the closest competitor in SPICE optimization tools. The result is a speedup factor of 383x for the largest circuit compared within the state-of-the-art, SPICE OPUS. For circuit sizes above approximately 3,500 nodes, the time taken by ADSPICE optimization decreases with increasing problem size, as a proportion of total computational time. The speed bottleneck is shown to be SPICE solves rather than ADSPICE enhancements. Voltage gradients needed for forward-mode AD are benchmarked against Xyce, another state-of-the-art simulator, using an integrated CMOS operational amplifier test circuit. The results match with a maximum error of 0.203%, further validating the accuracy of our method. ADSPICE is shown to enable SPICE, and SPICE-based simulators, with automatic differentiation for gradient optimization, without requiring creation of a new circuit simulator.
Create a lesson
Related papers
First-Order Model-Free Policy Gradient for Undiscounted LQR with Global Optimality and Convergence Guarantees
Shared title terminology · Vipul K Sharma, S Sivaranjani
Incentive-based Fleet Rebalancing in Vehicle-Sharing Systems via Equilibrium-Constrained Optimal Control
Shared title terminology · Daniel Tihanyi, Giuseppe Belgioioso
Loop-OPF: Solver-Informed Learning for Optimal Power Flow with Inference-Time Topology Adaptivity
Shared title terminology · Mohamad Chehade, Hao Zhu
Network-Aware Reserve Procurement via Decision-Dependent Adaptive Robust Optimization
Shared title terminology · Guillaume Van Caelenberg, Akylas Stratigakos, Elina Spyrou
Distributed Regenerative Resource Allocation with Exact Centralized Optimality
Shared title terminology · Rajul Kumar, Goutam Das, Ningshi Yao
An α-potential linear approximation for LQ differential games
Shared title terminology · Balint Varga, Gergely Lorant Kiss, Andreas Schwung