EEsizer: LLM-Based AI Agent for Sizing of Analog and Mixed Signal Circuit

Chang Liu, Danial ChitnisarXiv 2025 · DOI

Abstract

Analog and mixed-signal (AMS) circuit design remains a predominantly manual and iterative process, often described as more "art" than engineering. While digital design has benefited from high levels of automation, analog transistor sizing requires balancing complex trade-offs across multiple performance metrics. This paper introduces EEsizer, an AI agent framework that leverages Large Language Models (LLMs) to automate transistor sizing. By integrating LLMs with a SPICE simulator through a "Reasoning and Acting" (ReAct) loop, EEsizer mimics the decision-making process of human designers. Our results demonstrate that high-reasoning models, such as OpenAI’s o3, can achieve a 100% success rate in optimizing complex 20-transistor operational amplifiers across various technology nodes without domain-specific fine-tuning.

Introduction

In the realm of Electronic Design Automation (EDA), analog design has long lagged behind its digital counterpart. Digital circuits benefit from standardized cells and automated synthesis, but analog design requires meticulous transistor-level adjustments to optimize gain, bandwidth, power, and area. Existing Machine Learning (ML) approaches, such as Bayesian Optimization or Reinforcement Learning, often function as "black boxes." These methods typically require vast datasets and lack the inherent circuit theory knowledge necessary to adapt to new technology nodes or explain their design choices.

EEsizer addresses these challenges by treating the LLM as an autonomous agent capable of reasoning through circuit performance. By combining the linguistic and logical capabilities of LLMs with the precision of traditional simulation tools, EEsizer provides an interpretable and adaptable solution for AMS circuit sizing.

The EEsizer Framework

EEsizer operates as a closed-loop system where the LLM acts as the central controller. The framework is built upon four primary pillars:

1. Task Decomposition

To manage the complexity of circuit design, the agent decomposes user requirements into manageable sub-tasks. This includes identifying the circuit topology, initializing simulation parameters, defining target metrics (e.g., Phase Margin, Unity Gain Bandwidth), and mapping these requirements to specific simulation functions.

2. ReAct Loop (Reasoning and Acting)

The system employs a ReAct loop, where the agent cycles through three phases:

  • Reasoning: Analyzing current simulation results against design targets.
  • Acting: Modifying the circuit netlist or calling external analysis tools.
  • Observing: Reading the output from the simulator to inform the next iteration.

3. Chain-of-Thought (CoT) Prompting

To ensure the agent follows sound engineering principles, EEsizer uses structured CoT prompting. The agent is guided to verify transistor operating regions (ensuring strong inversion for robustness) and to connect specific performance deficiencies to physical parameters—for example, increasing transistor width ($W$) to boost transconductance ($g_m$).

4. Tool Integration

Recognizing that LLMs struggle with precise mathematical calculations, EEsizer is integrated with Ngspice, an open-source simulator, and custom Python scripts. This allows the LLM to focus on high-level strategy while outsourcing numerical analysis to specialized software.

Experimental Methodology

The framework was evaluated using a diverse set of test cases:

  • Basic Benchmarks: Six fundamental circuits, including R-load, 5T-OTA, Ring Oscillators, and logic gates (Inverter, NAND, XOR).
  • Complex Case Study: A 20-transistor CMOS Operational Amplifier (OpAmp) featuring a complementary input stage and class-AB output.
  • Technology Nodes: Testing was conducted across 180nm, 130nm, and 90nm nodes using Predictive Technology Model (PTM) files.
  • Model Comparison: The study benchmarked eight LLMs, including OpenAI’s o3 and GPT-4.1, Google’s Gemini 2.0 Flash, and Anthropic’s Claude 3.5 Sonnet.

Key Results and Insights

Superiority of Reasoning Models

OpenAI’s o3 model emerged as the most capable designer, achieving a 100% success rate at the 90nm node within 20 iterations. This performance highlights that the ability to "reason" through trade-offs is more critical for EDA tasks than the sheer volume of training data. While models like Gemini 2.0 Flash offered faster iteration times (~1.5 minutes), they struggled with the complex trade-offs inherent in smaller technology nodes.

Zero-Shot Node Transfer

One of the most significant findings was EEsizer’s adaptability. The agent successfully optimized circuits at the 90nm node even when its internal knowledge was primarily based on older technology. By observing simulator feedback, the agent could "learn" the characteristics of the new node on the fly, demonstrating a level of flexibility that traditional ML models often lack.

Robustness and Interpretability

In a 50-sample variation test simulating manufacturing tolerances, the 90nm design optimized by EEsizer maintained a 100% pass rate for rail-to-rail metrics and over 76% for gain-related parameters. Furthermore, because the agent provides the reasoning behind every netlist change, it creates a transparent design history that human engineers can easily verify.

Limitations and Future Work

While EEsizer represents a significant step forward, several challenges remain:

  • Layout Parasitics: The current framework operates at the schematic level. Future iterations must account for physical layout effects (wire resistance and capacitance), which are dominant at advanced nodes.
  • Simulation Fidelity: The study used simplified Gaussian variation models. Transitioning to industrial-grade Monte Carlo simulations with foundry-specific models is a necessary next step.
  • Automation of Testbenches: Currently, analysis scripts are hand-coded. Future versions could utilize LLMs to automatically generate the simulation testbenches themselves.
  • Operational Costs: High-reasoning models like o3 involve higher API costs and latency, which may impact the feasibility of massive-scale optimization sweeps.

Conclusion

EEsizer demonstrates that LLM-based agents can effectively bridge the gap between human intuition and automated optimization in analog design. By combining reasoning-heavy models with established simulation tools, the framework achieves high success rates and provides an interpretable, node-agnostic solution for complex circuit sizing tasks.

Summary updated

BibTeX
@misc{liu2025eesizer,
  author = {Chang Liu and Danial Chitnis},
  title = {{EEsizer: LLM-Based AI Agent for Sizing of Analog and Mixed Signal Circuit}},
  year = {2025},
  eprint = {2509.25510},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.25510},
}
Figure