VAPY: Circuit Optimization with Backpropagation
Abstract
Parameter sensitivities of analog circuits enable the use of gradient-based design optimization methods and unlock a range of sensitivity analyses. However, it remains a challenge to compute exact design parameter sensitivities for circuits that use PDKs, which use Verilog-A device models comprised of thousands of lines of code. Finite difference methods, which estimate gradients through simulation, require N + 1 to 2N simulations for each gradient depending on the method, which can become prohibitively expensive when many parameters are optimized. We present VAPY, a Verilog-A to JAX transpiler that compiles Verilog-A device models into autodifferentiable JAX code, enabling optimization with Circulax, a JAX-based circuit simulator. VAPY employs taint analysis to ensure only the necessary control-flow is rewritten with JAX-compatible calls, reducing control-flow overheads. We use VAPY and Circulax to optimize three analog circuits implemented in the SkyWater SKY130 PDK, which is built on the BSIM4 device model. VAPY-generated model gradients closely match finite-difference gradients, achieving comparable design quality in over 40X fewer circuit solves and up to 40% lower loss than Bayesian optimization.
Create a lesson
Metadata
- Comments
- 7 pages, 2 figures
Related papers
MetaphIR: Corpus-Scale Applicability Analysis for LLVM Peephole Optimizations
Shared title terminologycs.PLHongxu Xu, Xintong Zhou, Chunhao Liao et al.
Super-Analysis for Aggressive yet Scalable Compiler Optimization
Shared title terminologycs.PLAmirali Ebrahimzadeh, Amir Shaikhha
MBUndo: Sound, Automatic, and Efficient Measurement-Based Uncomputation for Quantum Circuits
Shared title terminologycs.PLShengyuan Yang, Charles Yuan
OpenMQPI: An MLIR-based Pipeline to Offload Quantum Circuits via OpenMP
Shared title terminologycs.PLErcüment Kaya, Ekin Devim Şahinkaya, Minh Chung et al.
Cleave: Scaling Tensor Program Optimization via Decoupled Algebraic Search and Operator Scheduling
Shared title terminologycs.PLDavid Pissarra, Jinkun Lin, Haitian Jiang et al.