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
Build a RAG Pipeline With Access Control: Ingestion, Retrieval and Evaluation
0dev.to Security
Apache Roller XML-RPC flaw allows unauthenticated code execution in older versions
0dev.to Security
Why Pydantic V2 is a Game Changer for Python Backends (Migration & Key Patterns)
0dev.to Python

How to Extract Contract Obligations With Source Citations
0dev.to Python
Your guardrail regex didn't protect your agent. It froze your entire Python event loop.
0dev.to Python

APIC Desktop v2: A Free Offline Photo Editor With Layers, RAW, Curves & a Healing Brush
0dev.to Python