WorksComputer Science
OPERA: OPamp Design by an Expert-Taught Reasoning Agent, from Specifications to Layout
Abstract
Analog flows from specifications to a signed-off layout rarely run without manual iteration. Recent large language model (LLM) agents size circuits with optimizer loops over the device dimensions and stop at the schematic. We present OPERA (OPamp design by an Expert-taught Reasoning Agent), in which a general-purpose LLM agent designs CMOS opamps from specifications to post-layout sign-off with open-source tools. First, the designer teaches the agent the gm/ID method: map the specifications to transconductances and minimum currents, choose gm/ID per device role from characterized lookup tables, and size from equations, leaving a few knobs to search and an explainable design. Second, the agent learns the gLayout framework and taught layout practice, and writes a reusable layout generator that closes the layout and extraction loop at designer-approved gates. In SKY130, the agent designed a shared constant-gm bias and six opamps (5T, folded-cascode and telescopic OTAs; Miller, folded-cascode and telescopic two-stage) for fun >= 50 MHz, PM >= 60 degrees, SR 25 V/μs into 1 pF and a minimum dc gain of 30 to 60 dB. All six layouts are DRC-clean and LVS-matched, and their extracted netlists meet every target at all 15 PVT corners ( fun >= 53.7 MHz, PM >= 62.1 degrees, SR >= 27.9 V/μs). The benchmark netlists are released at https://github.com/AMPICLab/AMPICBench.
Introduction
An analog block reaches tape-out only after two nested loops close: the designer sizes, compensates and re-simulates the circuit until it meets its specifications over process, voltage and temperature (PVT), then draws, verifies and extracts the layout, and returns to the schematic when parasitics or layout adjustments move the results. Automating both loops end to end remains a long-standing goal of analog designers and EDA developers.
LLM-based flows now generate topologies and netlists [1, 2, 3], port amplifiers across processes [4] and assist layout [5, 6, 7], alongside algorithmic layout tools such as ALIGN [8] and MAGICAL [9]. For sizing, most flows place an optimizer in a loop: the LLM proposes or narrows a search space, and Bayesian optimization, trust-region search or the LLM itself iterates over the device dimensions [10, 11, 12, 13]. These loops spend many simulations rediscovering what a designer knows from first principles, usually run at the typical corner, and stop at the schematic.
The OPERA Flow
Figure 1 depicts our end-to-end flow. The agent is a general-purpose LLM (Claude, Anthropic) in a Linux sandbox with shell, file and simulation tools, without training or fine-tuning. It uses open-source tools, i.e., ngspice [14], Magic and Netgen [15], KLayout [16], SchemDraw [17], the open SKY130 models [18], and gLayout [6, 19]. We as the designer do not edit netlists or layouts; each design starts from one directive, such as “design a Folded-cascode OTA for 50 dB gain, MHz for a 1 pF load, and SR25 V/s for minimum static power consumption.” The designer’s lessons are kept in five skill files (sizing, compensation, gated layout flow, SKY130 layout rules, opamp layout guidelines).
Figure 1. The OPERA flow. (1) The designer gives the specifications, teaches skills and decides at the gates. (2) A general-purpose LLM agent applies the taught skills and (3) sizes the circuit with the six-step flow (specifications to and minimum currents, per-role , , sizing from tables, checks, trade-offs), leaving a few knobs. (4) Simulation over 15 PVT corners returns worst-corner feedback to those knobs. (5) The layout generator builds the cell after the unit and floorplan gates, and (6) DRC in two decks, LVS, extraction and post-layout PVT simulation sign it off or trigger regeneration. (7) Each signed-off cell is distilled into a reusable, tested generator that the next opamp reuses.
Designer-taught skills and decision gates
We used Claude’s Opus 5.5 model for the LLM teaching phase and skill development, then switched to the lower-token-cost Sonnet 5.5 model to run the iterative loops. Table 1 lists what the designer taught through plain language, lecture slides, short recipes and worked examples. Each lesson became a skill file of rules and checks that later sessions reload. The designer intervenes only at defined gates: the per-role choices, any sizing change, any accepted corner failure and, in layout, the unit fingering (gate 1) and the floorplan (gate 2). At each gate the agent presents two or three simulated options.
| Skill | Taught by the designer | Used by the agent as |
| Topology | Signal path, gain and pole nodes, stack headroom, replica bias, folding currents | Headroom budget per stack |
| Six-step flow: specs to and currents, per role, , size, check, explore | Density, , from tables; sizes from equations; worst-corner knob iteration | |
| Compensation | Two-stage Miller recipe: , , placement | Starting , , ; one knob per specification |
| Layout | Floorplans; common centroid, interdigitation, dummies; rings per stage; packing ; short parasitics sensitive nodes | Generator templates; matching and packing checkers |
Table 1. SKILLS TAUGHT BY THE DESIGNER
Equation-First Sizing
Characterization
The agent studied the author’s lecture slides [20] and the literature [21], then characterized the SKY130 low- devices at the planned finger width (3.11 m NMOS, 2.48 m PMOS), and built lookup tables of current density, , , and capacitance against for several at five process corners.
The Design Flow
The designer taught the agent the six steps designers follow [21] (Figure 1, panel 3):
Specifications to and currents. Gain-bandwidth or unity-gain frequency () sets for single-stage, and for two-stage amplifier; the phase margin sets through the non-dominant pole, and the slew rate sets the minimum currents. The first stage slews by steering its tail current into the compensating capacitance, so in a single-stage and in a two-stage amplifier. In a folded-cascode (FC) stage, folding branches must carry at least , and a class-A output stage must sink at least . For 50 MHz and 25 V/s into 1 pF, a single stage needs and ; as , caps at 25.
per device role. High for the input pair ( per current, noise, offset), low for mirrors and current sources (for matching, as , noise and area considerations), moderate to high for cascodes (headroom), and capped where a device’s sets a signal-path pole. Devices that copy a current share and , so the copy holds over corners.
Channel length. follows from the gain budget ( against ), traded against and matching.
Sizing from the tables. , or the branch current, and , rounded to whole fingers. About a dozen continuous widths, lengths and currents reduce to a few knobs: the of each role, the branch currents and, in a two-stage amplifier, , and .
Checks and iteration. Headroom () and pole estimates come first. The equations using the characterization tables predicted gain and power within 2% but overestimate the phase margin by about 18°, so stability closes in simulation, one knob per specification at the worst corner, with secant updates for continuous knobs and bisection for integer ones.
Trade-offs. Design charts (power, gain, swing, against ) yield two or three candidates for a gate.
Compensation recipe
For two-stage amplifiers the agent applies the designer’s recipe, based on the two-pole Miller model,
with . With the zero term of (1) vanishes and needs ; a larger moves the zero into the left half plane just above ; the third pole must stay well above . The agent uses (1) for starting values and knob directions and closes the phase margin in simulation.
Closing the Layout and Extraction Loop
Learning the layout framework
The agent learned gLayout [6] from its examples and documentation and found its gaps by running DRC on small pieces: gLayout’s layer names were offset by one from SKY130, so the agent wrote an explicit layer map and routes every net as a Manhattan path with via stacks. It then wrote a row generator for matched transistor arrays and uses Magic’s PDK generators for resistors and MIM capacitors.
Taught layout practice and gates
The designer taught layout from examples and know-how (Table I). For a two-stage opamp: the input pair as a two-dimensional common centroid; the load mirror and tail interdigitated with dummies; each stage in its own guard rings; the Miller capacitor between the second-stage PMOS and NMOS rings, low-impedance plate on the output; and the nulling resistor between the stages, so high-impedance nodes stay short. At gate 1 the agent proposes unit fingerings and simulates each over the corners, since finger widths move binned models more than parasitics do; at gate 2 it compares two or three floorplans by area, utilization and routing cost; gate 3 is the full layout and its verification.
A reusable layout generator
The agent then distilled its hand-scripted layouts into a generator for the two-stage family. Its inputs are the reference netlist and a layout intent file recording the designer’s decisions: unit sizes, matched-set patterns, passive placement and pin edges. One command regenerates the cell and reports PASS only if Magic and KLayout DRC are clean, Netgen LVS matches, the layout satisfies every item of the intent file, the matching and packing checks pass, and the extracted netlist meets the design targets over the corners. Finished blocks (bias, reference, opamp) are then assembled hierarchically: each block exposes its rails and pins as a fixed contract, neighbouring blocks abut and share supply rails, the remaining nets are routed and the flat cell is re-verified with DRC, LVS and extraction.
Case Study
Specifications and shared bias
All amplifiers target open-loop MHz with pF in a loop-gain analysis [24] testbench similar to Spectre’s stb analysis, PM , SR V/s for a 0.7-to-1.1-V follower step (20–80%), and a minimum DC gain of 30 dB (5T), 50 dB (FC and telescopic OTAs) or 60 dB (two-stage opamps), VDD = 1.8 V and V (testbenches and netlists released as a benchmark [25]), biased on chip by a constant- beta-multiplier reference (BMR) feeding a wide-swing cascode bias [26], [27]. As the BMR transconductance tracks $1/R$, the agent chose an n+ diffusion resistor (+1435 ppm/K) over high-resistance poly. The short-channel BMR [20]` provides a 20.0 A reference at tt (19.1 to 21.3 over corners), with loop PM 72.4 to 74.6°.
Schematic results
The agent designed six topologies from the designer’s Cadence starting points in SKY130 PDK: 5T, folded-cascode (FC) and telescopic OTAs (the latter with a replica half-circuit for its cascode bias), a Miller opamp, and an FC or telescopic stage followed by a class-A stage. Figure 2(a) shows the FC two-stage. Table III lists the knobs and the results over 15 corners. Every design meets MHz, PM , SR V/s and its target at every corner. The lowest slew rates, 27.1 and 28.6 V/s, are in the two-stage opamps with cascode first stages, set by the first-stage current charging . One limit remains: at fs, 70°C the weakest cascode is 23 to 63 mV into triode in five designs, yet all targets are met.
| Circuit | Knobs | (dB) | (MHz) | PM (°) | SR (V/s) | (A) |
| 5T OTA | 31.1–31.8 | 68.1–76.0 | 82.4–84.1 | 35.4 | 126–144 | |
| FC OTA | 51.1–53.0 | 66.5–77.4 | 67.6–72.6 | 33.2 | 282–358 | |
| Telescopic | 51.9–55.0 | 96.6–115.2 | 71.2–77.9 | 41.4 | 243–307 | |
| Miller | 60.8–64.0 | 82.2–100.8 | 69.1–75.7 | 46.1 | 338–422 | |
| FC 2-stage | 63.2–68.2 | 57.5–72.8 | 70.2–78.9 | 28.6 | 330–424 | |
| Tele. 2-stage | 68.7–78.0 | 75.5–95.8 | 66.8–75.6 | 27.1 | 330–423 |
Table III. Opamp results over 15 PVT corners (schematic, pF, VDD=1.8 V, V, on-chip bias). : pair fingers, : pair/folding fingers. Worst edge, 0.7–1.1 V step, 20–80%. Shading: worst-corner margin. includes the bias. Corners: tt, ff, ss, fs, sf at 0/27/70 °C. targets: 30, 50, 60, 60, 60 dB.
:::ેણ
Figure 2. Two-stage opamp with a folded-cascode first stage and a class-A second stage, designed by OPERA. (a) Schematic drawn by the agent from its sized netlist, devices colored by role; labels are finger counts. (b) Its automatically generated layout; DRC/LVS clean and meets specs in all corners.
Comparison with Optimizer Search
AutoSizer [13] draws its optimizer from a pool that includes Bayesian optimization and simulates only the typical corner.
| Work | Topo. | Size | Comp. | PVT | Layout | Sign-off | Reus. gen. | Taught skills | |
| AnalogCoder [1] | ✓ | L | × | × | × | × | × | × | × |
| ADO-LLM [10] | O | O | × | × | × | × | × | × | × |
| LEDRO [12] | O | O | × | × | × | × | × | × | × |
| AutoSizer [13] | O | O | × | × | × | × | × | × | × |
| Artisan [22] | E | E | ✓ | O | × | × | × | × | × |
| AmpAgent [4] | E | L | × | O | × | × | × | × | × |
| EEsizer [11] | L | L | × | × | × | × | × | × | × |
| White-box [23] | L | L | ✓ | O | × | × | × | × | × |
| Analog.Ag [3] | O | O | × | × | × | × | × | × | × |
| LayoutCop. [5] | × | × | × | × | × | ✓ | O | O | × |
| Glayout NL [6] | × | × | × | × | × | ✓ | O | × | × |
| ACDC [7] | O | × | × | × | × | × | × | × | × |
| OPERA (ours) | O | E | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Table II. Comparison with LLM-based analog design flows. ✓ Yes, O Partly, × No. Topologies chosen by the designer and taught to the agent. O: optimizer loop; L: LLM-driven iteration; E: equations, then a few knobs. DRC, LVS and extraction over PVT.
| Circuit | OPERAᵃ A / B | Protocol A (spec) Random | Protocol A (spec) TPE | Protocol B (sat.) Random | Protocol B (sat.) TPE |
| S1 5T OTA | 54 / 54 | 5/5 (58) | 5/5 (48) | 5/5 (76) | 5/5 (48) |
| S1 FC OTA | 30 / 59 | 3/3 (250) | 3/3 (129) | 1/3 (368) | 1/3 (32) |
| S1 Telescopic | 30 / 59 | 3/3 (35) | 3/3 (45) | 2/3 (258) | 2/3 (41) |
| S2 Miller | 30 / 53 | 3/3 (40) | 3/3 (204) | 3/3 (40) | 2/3 (181) |
| S2 FC 2-stage | 30 / 55 | 2/3 (281) | 3/3 (141) | 0/3 | 0/3 |
| S2 Tele. 2-stage | 30 / 55 | 3/3 (217) | 3/3 (166) | 1/3 (352) | 0/3 |
Table 4. Runs to first passing design: passing seeds (median runs)
| Cell | Area () | Util. | DRCᵃ LVS | (dB) PEX | PM (°) PEX | (MHz) PEX | SR (V/s) |
| S1 5T OTA | 496 | 89.2% | 0/0 ✓ | 31.1–31.8 | 81.8–83.5 | 66.5–74.3 | 34.3 |
| S1 FC OTA | 3482 | 69.0% | 0/0 ✓ | 51.0–53.0 | 63.5–68.6 | 63.5–74.0 | 31.5 |
| S1 Telescopic | 3015 | 86.8% | 0/0 ✓ | 51.9–54.9 | 66.2–72.9 | 92.4–109.9 | 41.4 |
| S2 Miller | 2356 | 78.3% | 0/0 ✓ | 60.8–64.0 | 64.6–71.0 | 78.8–95.6 | 46.1 |
| S2 FC 2-stageᶜ | 3570 | 66.9% | 0/0 ✓ | 63.2–68.3 | 62.1–70.7 | 53.7–68.0 | 27.9 |
| S2 Tele. 2-stage | 2893 | 57.3% | 0/0 ✓ | 68.5–78.0 | 63.1–72.7 | 71.1–89.5 | 30.5 |
| B BMR | 1092 | 76.5% | 0/0 ✓ | — | 61.2–65.5ᵇ | 52.8–81.2ᵇ | — |
Table 5. Layouts and post-layout results (SKY130, extracted R and C, ideal and , 15 corners)
To see how such optimizers fare over PVT, random search and the tree-structured Parzen estimator (TPE) [28], a Bayesian method, in Optuna [29], sized the same six circuits with the same bias, testbenches and 15 corners (3 seeds, 5 for the 5T; 500-run cap). It uses the first-campaign spec (no gain target). The cost is ngspice runs, a candidate stops at its first failing corner, and a pass means all 15 corners; OPERA is counted the same way on its stored sweeps. Protocol A is the specification plus the OPERA ; B adds a worst saturation margin mV (5T: ). Under A, TPE passes every circuit in 45 to 204 runs (median) against 30 (54 for the 5T) for OPERA, but with margins down to mV. Under B it passes 5 of 15 runs on the five larger circuits and never on the FC and telescopic two-stage designs, where OPERA needs 55 (Table IV).
Layout results
Figure 2(b) shows the FC two-stage layout, and Table V summarizes the six layouts and the bias cell. All six are DRC clean in both decks and LVS matched, and their extracted netlists meet every target at all 15 corners. Extraction lowers by 2 to 7% and PM by 1 to 8°, and moves by 0.1 dB at most. Three first extractions missed the PM (FC 57.2, telescopic 53.3, FC two-stage 59.4°); shorter source (FC, 1.0 m), shorter cascode (telescopic, 0.6 m) and kΩ (FC two-stage) fixed them. Layout area utilization is 57 to 89%. Telescopic layouts hold the bias replica in
the same arrays as the devices it copies; pairs, sources and cascodes are centroided, single-unit devices are not.
Comparison with Prior Work
Table II positions this work. LEDRO [12] and Auto-Sizer [13] use the LLM to steer an optimizer over the device dimensions; Artisan [22] and [23] give the LLM data, but it still chooses each width. In OPERA the designer teaches the flow, so the agent sizes from equations and searches a few knobs. Layout agents [5, 6, 7] do not close the loop through extraction and PVT; OPERA does, and leaves a reusable generator. Its scope, one designer and one generator family, keeps results traceable, and extending to more designers and families is the next step.
Conclusion
OPERA shows that a general-purpose LLM agent, taught the flow and layout practice by a designer, can take CMOS opamps from specifications to post-layout sign-off with open-source tools. In SKY130, six opamps on a shared constant-gm bias meet their dc-gain targets, MHz, SR V/s and 60° of phase margin (for two-stage) at all 15 PVT corners, in schematic and in extracted layouts. The benchmark circuit netlists are available at [25].
References
References
- [1]Y. Lai, S. Lee, G. Chen, S. Poddar, M. Hu, D. Z. Pan, and P. Luo, “AnalogCoder: Analog circuit design via training-free code generation,” in Proc. AAAI Conf. Artificial Intelligence, vol. 39, no. 1, 2025, pp. 379–387.
- [2]J. Gao, W. Cao, J. Yang, and X. Zhang, “AnalogGenie: A generative engine for automatic discovery of analog circuit topologies,” in Proc. Int. Conf. Learning Representations (ICLR), 2025.arxiv.org/abs/2503.00205
- [3]Z. Bao, Z. Lin, J. Wang, J. Hu, Y. Gao, Y. Wu, X. Li, and X. Xu, “AnalogAgent: Self-improving analog circuit design automation with LLM agents,” arXiv:2603.23910, 2026.arxiv.org/abs/2603.23910
- [4]C. Liu, W. Chen, A. Peng, Y. Du, L. Du, and J. Yang, “AmpAgent: An LLM-based multi-agent system for multi-stage amplifier schematic design from literature for process and performance porting,” arXiv:2409.14739, 2024.arxiv.org/abs/2409.14739
- [5]B. Liu, H. Zhang, X. Gao, Z. Kong, X. Tang, Y. Lin, R. Wang, and R. Huang, “LayoutCopilot: An LLM-powered multi-agent collaborative framework for interactive analog layout design,” arXiv:2406.18873, 2024.arxiv.org/abs/2406.18873
- [6]A. Hammoud, C. Goyal, S. Pathen, A. Dai, A. Li, G. Kielian, and M. Saligane, “Human language to analog layout using Glayout layout automation,” Google Research publication, 2024.
- [7]Y. Esfandjari, J. Rego, A. Meyer, J. Gallagher, and M. Levy, “LLMs for analog circuit design continuum (ACDC),” arXiv:2512.09199, 2025.
- [8]K. Kunal, M. Madhusudan, A. K. Sharma, W. Xu, S. M. Burns, R. Harjani, J. Hu, D. A. Kirkpatrick, and S. S. Sapatnekar, “ALIGN: Open-source analog layout automation from the ground up,” in Proc. ACM/IEEE Design Automation Conf. (DAC), 2019.
- [9]B. Xu, K. Zhu, M. Liu, Y. Lin, S. Li, X. Tang, N. Sun, and D. Z. Pan, “MAGICAL: Toward fully automated analog IC layout leveraging human and machine intelligence,” in Proc. IEEE/ACM Int. Conf. Computer-Aided Design (ICCAD), 2019, pp. 1–8.DOI
- [10]Y. Yin, Y. Wang, B. Xu, and P. Li, “ADO-LLM: Analog design Bayesian optimization with in-context learning of large language models,” in Proc. IEEE/ACM Int. Conf. Computer-Aided Design (ICCAD), 2024.DOI
- [11]C. Liu and D. Chitnis, “ECsizer: LLM-based AI agent for sizing of analog and mixed signal circuit,” arXiv:2509.25510, 2025.DOI
- [12]D. V. Kochar, H. Wang, A. P. Chandrakasan, and X. Zhang, “LEDRO: LLM-enhanced design space reduction and optimization for analog circuits,” 2024.arxiv.org/abs/2411.12930
- [13]X. Yu, D. Torbunov, S. Mandal, and Y. Ren, “AutoSizer: Automatic sizing of analog and mixed-signal circuits via large language model (LLM) agents,” 2026, to appear at ICML 2026.arxiv.org/abs/2602.02849
- [14]H. Vogt, G. Atkinson, and P. Nenzi, “Ngspice user’s manual, version 42,” https://ngspice.sourceforge.io, 2024.
- [15]R. T. Edwards, “Magic VLSI layout tool and netgen LVS,” http://opencircuitdesign.com.
- [16]M. Kӧfferlein, “KLayout: GDS2 and OASIS viewer and editor,” https://www.klayout.de.
- [17]C. J. Delker, “SchemDraw: Electrical circuit schematic drawing in Python,” https://github.com/cdelker/schemdraw, 2026, version 0.23, MIT license.
- [18]SkyWater Technology and Google, “SkyWater SKY130 open source process design kit,” https://github.com/google/skywater-pdk, 2020.
- [19]“OpenFASoC: Fully open-source autonomous SoC synthesis using customizable cell-based synthesizable analog circuits,” https://github.com/idea-fasoc/OpenFASOC, includes the gLayout generator.
- [20]V. Saxena, “CPEG 424/624: Analog integrated circuit design,” Course website, University of Delaware, Spring, 2020, accessed: Oct. 27, 2026. [Online]. Available: https://www.eecis.udel.edu/~vsaxena/courses/eleg624/f20/eleg624.htm
- [21]P. G. A. Jespers and B. Murmann, Systematic Design of Analog CMOS Circuits Using Pre-Computed Lookup Tables. Cambridge University Press, 2017.
- [22]Z. Chen, J. Huang, Y. Liu, F. Yang, L. Shang, D. Zhou, and X. Zeng, “Artisan: Automated operational amplifier design via domain-specific large language model,” in Proc. ACM/IEEE Design Automation Conf. (DAC), 2024.DOI
- [23]J. Chen, S. Li, and X. He, “White-box reasoning: Synergizing LLM strategy and gm/Id data for automated analog circuit design,” 2025.arxiv.org/abs/2508.13172
- [24]M. Tian, V. Visvanathan, J. H. Jangtan, and K. Kundert, “Striving for small-signal stability,” IEEE Circuits and Devices Magazine, vol. 17, no. 1, pp. 31–41, 2001.
- [25]V. Saxena, “AMPICBench: Analog Circuit Benchmarks for Sizing, Simulation, and Layout Tools,” Oct. 2026. [Online]. Available: https://github.com/ampiclab/AMPICBench
- [27]V. Saxena and R. J. Baker, “Indirect Feedback Compensation of CMOS Op-Amps,” in Proceedings of the IEEE/EDS Workshop on Microelectronics and Electron Devices (WMED), 2006, pp. 3–4.DOI
- [28]J. Bergstra, R. Bardenet, Y. Bengio, and B. Kégl, “Algorithms for hyper-parameter optimization,” in Advances in Neural Information Processing Systems (NIPS), vol. 24, 2011, pp. 2546–2554.
- [29]T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama, “Optuna: A next-generation hyperparameter optimization framework,” in Proc. ACM SIGKDD Int. Conf. Knowledge Discovery & Data Mining, 2019, pp. 2623–2631.arxiv.org/abs/1907.10902

