TL;DR
AnalogCoder-Pro is an end-to-end, training-free automation framework that uses multimodal Large Language Models (MLLMs) to generate and optimize analog circuits. By combining PySpice code generation, visual waveform analysis for autonomous debugging, and Bayesian optimization for device sizing, it successfully bridges the gap between circuit topology and parameter tuning.
What Problem Does This Paper Address?
While digital circuit design has enjoyed significant automation thanks to high-level languages like Verilog and abundant datasets, analog circuit design remains stubbornly manual. Analog design operates at the device level, where minor tweaks to a transistor's size or circuit topology can completely alter functionality.
Automating this workflow faces several steep hurdles:
- Data Scarcity: SPICE netlists comprise a tiny fraction of public code repositories.
- Multimodal Requirements: Human engineers rely heavily on visual data like waveforms and frequency responses to debug circuits—information that text-only LLMs cannot natively interpret.
- The Sizing-Topology Disconnect: Circuit structure (topology) and component dimensions (sizing) are deeply coupled, yet traditional automated tools treat them as isolated, sequential steps.
Methods
AnalogCoder-Pro introduces a unified framework that handles both topology generation and device sizing through four key innovations:
- PySpice-Based Code Generation: Instead of forcing the LLM to write raw SPICE netlists, the framework instructs it to write Python code using the
PySpicelibrary. This leverages the LLM's strong pre-existing programming capabilities.
- Multimodal Feedback-Enhanced Flow: The framework implements a 5-stage verification pipeline (Requirement, Simulation, DC Sweep, Function, and Waveform Checks). If a circuit fails, the framework plots the simulation data using Matplotlib and feeds the visual waveform image back to a multimodal LLM to diagnose and fix the error.
- Circuit Tool Library: To build complex composite circuits, the framework archives successful basic designs as modular subcircuits. The LLM can then query and reuse these blocks (e.g., using a basic op-amp to build an integrator).
- Multi-Resolution Input Bias Search & Sizing: Because analog outputs are highly sensitive to input bias voltage ($V_{in}$), treating bias as a standard optimization variable slows down convergence. AnalogCoder-Pro uses a coarse-to-fine DC sweep to automatically pin down the optimal bias point before running Bayesian optimization (via Optuna) to fine-tune the remaining device sizes.
Datasets
The authors evaluated their framework on a curated benchmark suite consisting of 28 design tasks across 13 distinct circuit types (including amplifiers, operational amplifiers, current mirrors, filters, mixers, and oscillators). The tasks are categorized into three difficulty levels (easy, medium, hard) based on component count and interconnection complexity.
Key Insights and Ideas
- The Power of Sight: Text-only LLMs struggle to interpret raw arrays of simulation data points, often misidentifying circuit behaviors. MLLMs, however, excel at visual pattern recognition, easily distinguishing between a stable triangular wave and a damped sinusoid.
- Target-Guided Topology: Prompting the LLM with explicit performance goals (e.g., "optimize for Gain-Bandwidth Product") during the initial topology generation phase structurally prepares the circuit for better downstream optimization.
- Decoupling Bias Search: Isolating the highly sensitive input bias voltage through a multi-resolution search drastically reduces the dimensionality of the optimization space, leading to faster and more reliable convergence during device sizing.
Key Results
AnalogCoder-Pro demonstrated substantial improvements over existing automated design methods:
- High Success Rates: Utilizing advanced models like GPT-5 within the framework yielded a 98.6% Pass@5 success rate across the benchmark suite, successfully designing 28 distinct circuits.
- Superior Figures of Merit (FoM): When paired with Bayesian optimization, AnalogCoder-Pro consistently outperformed baseline models, achieving up to a 2× improvement in operational amplifier FoM compared to previous state-of-the-art frameworks like AnalogGenie.
Limitations and Future Work
While AnalogCoder-Pro excels at front-end circuit design (schematic generation and sizing), it does not yet automate the back-end layout generation (translating the netlist into manufacturable GDSII files). Additionally, the feedback loop is currently capped at three iterations to manage token costs, which might limit its ability to self-correct highly intricate, multi-stage parasitic effects. Future work points toward tighter integration with automated layout tools to achieve true end-to-end silicon compilation.
Summary updated