Backend
ADSPICE: A Method of Automatic Differentiation for Gradient-Based Lumped Circuit Optimization with Native SPICE
arXiv cs.SY0 views
arXiv:2611.23571v1 Announce Type: new 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.
Source:https://arxiv.org/abs/2611.23571PreviousSample-Efficient Model Predictive Control via Proximal Policy OptimizationNextComparison of Open-Source PSCAD EMT Models for Large-Scale AI Data Centers in Smart Grids
Related posts
How to secure file uploads in an API, with a Python example
0dev.to
How to get past Cloudflare, DataDome, Akamai, PerimeterX and AWS WAF: what actually works in 2026
0dev.to
How to test an AI chatbot before and after launch, and which metrics to track (2026)
0dev.to
Designing a "How Well Do You Know Me" Quiz: Questions, Scoring and Fair Rankings in JS
0dev.to
Build a Real-Time Morse Code Decoder in the Browser with the Web Audio API
0dev.to
How I built a browser-local batch image workflow with Canvas and ZIP
0dev.to