ADSPICE: A Method of Automatic Differentiation for Gradient-Based Lumped Circuit Optimization with Native SPICE
Marcus W. Wolff, Alan Brannon
Key points
From the paper's conclusion- ADSPICE is shown to enable SPICE, and SPICE-based simulators, with automatic differentiation for gradient optimization, without requiring creation of a new circuit simulator.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- VAPY: Circuit Optimization with BackpropagationarXiv · 2026
- ATMAD: Agile Transistor Compact Modeling with Parameter Extraction Based on Automatic DifferentiationACM Transactions on Design Automation of Electronic Systems · 2026
- Backpropagation Through Compiled CodeACM Transactions on Mathematical Software · 2026
- AnalogCoder-Pro: Unifying Analog Circuit Generation and Optimization via Multi-modal LLMsIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · 2026
- FDTDX: High-Performance Open-Source FDTD Simulation with Automatic DifferentiationThe Journal of Open Source Software · 2026
- SLIC: Reinforcement Fine-Tuning Small LMs for Multi-Turn Analog Circuit OptimizationarXiv · 2026