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

Chang Liu, Emmanuel A. Olowe, Danial Chitnis

TL;DR

This paper introduces an AI agent powered by Large Language Models (LLMs) to automate the challenging transistor sizing process in analog and mixed-signal (AMS) circuit design. By integrating LLMs with circuit simulators and employing prompt engineering, the agent successfully optimized several circuits, demonstrating a promising new direction for efficient and intelligent EDA.

What Problem Does This Paper Address?

Designing Analog and Mixed-Signal (AMS) integrated circuits (ICs) is notoriously difficult and time-consuming, particularly the transistor sizing stage. This process involves navigating a high-dimensional design space with complex trade-offs between numerous performance metrics. Traditional methods often require significant manual effort, iterative fine-tuning, and deep domain expertise. While Machine Learning (ML) techniques have shown promise in automating aspects of circuit design, they often lack specific analog design knowledge, leading to inefficiencies and inconsistent results. This paper aims to bridge this gap by leveraging the advanced reasoning and knowledge capabilities of LLMs to automate and optimize the transistor sizing process.

Methods

The core of this work is an LLM-based AI agent designed for AMS circuit sizing. The agent operates through a "Reasoning and Acting" (ReAct) loop, inspired by human design processes. This loop involves:

  • Task Decomposition: Breaking down the user's request (circuit netlist and performance targets) into manageable tasks.
  • Prompt Engineering: Utilizing Chain-of-Thought (CoT) prompting to guide the LLM's reasoning. This involves a system prompt, specific parameters (circuit type, previous/current results, target performance), and CoT instructions to encourage step-by-step thinking.
  • Function Calling: Integrating LLMs with external tools like the Ngspice simulator and custom data analysis functions. The LLM intelligently selects and calls these functions to perform simulations and analyze results.
  • In-loop Simulation: An iterative process where the LLM proposes design modifications, these are simulated, and the results are fed back to the LLM for further refinement. This creates a closed-loop optimization system.
  • Output Generation: The agent provides not only the optimized netlist but also the reasoning behind each parameter adjustment, enhancing interpretability.

Datasets

The paper does not explicitly mention training datasets for the LLMs themselves, as it leverages pre-trained LLMs (Claude 3.5 Sonnet, GPT-4, etc.). The evaluation is performed on a set of seven basic circuits and a more complex operational amplifier. The performance of the agent is evaluated against predefined performance metrics for these circuits. No new benchmark datasets were introduced.

Key Insights and Ideas

  • LLMs as Circuit Designers: The research demonstrates that LLMs, when properly integrated with simulation tools and guided by sophisticated prompting, can effectively perform complex engineering tasks like transistor sizing, which was previously thought to require deep, specialized human expertise.
  • The Power of Prompt Engineering: The success of the agent heavily relies on prompt engineering, particularly the Chain-of-Thought (CoT) approach. This allows the LLM to "think" through the optimization process, leading to more informed decisions and better results.
  • Bridging the Gap: LLMs offer a way to inject domain-specific knowledge and reasoning into automated design processes, overcoming limitations of traditional ML methods that often treat circuits as black boxes.
  • Interpretability Matters: Providing the reasoning behind design choices alongside the optimized netlist is crucial for building trust and understanding in AI-driven design tools.

Key Results

  • LLM Performance Comparison: Claude 3.5 Sonnet was identified as the best-performing LLM among five tested, achieving the highest success rate and fewest iterations across various basic circuits.
  • Operational Amplifier Optimization: The agent successfully optimized a 20-transistor operational amplifier with a complementary input stage and class AB output stage.
  • For one configuration group (G1), the agent achieved a 60% success rate within 25 iterations.
  • For another group (G3), it prioritized higher bandwidth and power.
  • Success Rate: The agent achieved a success rate of up to 60% in meeting target performance requirements for the operational amplifier across different test groups.

Limitations and Future Work

  • Bias Voltage Dependency: The current op-amp test relies on bias voltages, which the authors suggest should be replaced with a current mirror network in future work.
  • Area and Layout Excluded: The study focuses solely on performance optimization, excluding considerations for transistor area and layout. Future work should integrate these aspects for a holistic Power, Performance, and Area (PPA) trade-off.
  • Input Common-Mode Range: The op-amp design's input common-mode range was not explicitly targeted, leading to variations in performance metrics like CMRR and DC gain across the input range.
  • Dynamic Parameter Simulation: Full rail-to-rail input/output performance requires simulating dynamic parameters across the entire input range.
  • Robustness and Monte Carlo: The paper acknowledges that more robust simulations, such as true Monte Carlo analysis with accurate device models, are needed to ensure design robustness, especially given observed variations.
  • Iteration Limits: The optimization was limited to 25 iterations and 5 trials due to rate limits, which might have restricted the exploration of the design space. The authors suggest exploring feedback mechanisms to prompt diverse solutions and improve reliability, as simply increasing iterations doesn't guarantee convergence.

Summary updated

Abstract

The design of Analog and Mixed-Signal (AMS) integrated circuits (ICs) often involves significant manual effort, especially during the transistor sizing process. While Machine Learning techniques in Electronic Design Automation (EDA) have shown promise in reducing complexity and minimizing human intervention, they still face challenges such as numerous iterations and a lack of knowledge about AMS circuit design. Recently, Large Language Models (LLMs) have demonstrated significant potential across various fields, showing a certain level of knowledge in circuit design and indicating their potential to automate the transistor sizing process. In this work, we propose an LLM-based AI agent for AMS circuit design to assist in the sizing process. By integrating LLMs with external circuit simulation tools and data analysis functions and employing prompt engineering strategies, the agent successfully optimized multiple circuits to achieve target performance metrics. We evaluated the performance of different LLMs to assess their applicability and optimization effectiveness across seven basic circuits, and selected the best-performing model Claude 3.5 Sonnet for further exploration on an operational amplifier, with complementary input stage and class AB output stage. This circuit was evaluated against nine performance metrics, and we conducted experiments under three distinct performance requirement groups. A success rate of up to 60% was achieved for reaching the target requirements. Overall, this work demonstrates the potential of LLMs to improve AMS circuit design.
BibTeX
@inproceedings{liu2025llm,
  author = {Chang Liu and Emmanuel A. Olowe and Danial Chitnis},
  title = {{LLM-Based AI Agent for Sizing of Analog and Mixed Signal Circuit}},
  booktitle = {Newcas},
  year = {2025},
  doi = {10.1109/newcas64648.2025.11107079},
}
Figure