Abstract
Multi-stage amplifiers are widely applied in analog circuits. However, their large number of components, complex transfer functions, and intricate pole-zero distributions necessitate extensive manpower for derivation and parameter sizing to ensure stability. To achieve efficient derivation of the transfer function and simplify circuit design, we propose AmpAgent: a multi-agent system based on large language models (LLMs) for efficiently designing complex amplifiers from literature with process and performance porting. AmpAgent is composed of three agents: Literature Analysis Agent, Mathematics Reasoning Agent, and Device Sizing Agent. These agents retrieve key information from literature, decompose the design problem through mathematical derivation, and address the decomposed problem iteratively. AmpAgent was employed in the schematic design of seven types of multi-stage amplifiers, reducing iterations by 1.32–4× and execution time by 1.19–2.99× compared to conventional optimization algorithms, with success rates increasing by 1.03–6.79×. Circuit performance improved by 1.63–27.25× compared to original literature results.
Introduction: The "Black Art" of Analog Design
Designing multi-stage amplifiers is often considered a "black art" in analog integrated circuit (IC) design. Unlike single-stage amplifiers, multi-stage versions involve dozens of components and intricate feedback loops (compensation) required to maintain stability. The challenges are three-fold:
- Complexity: Deriving transfer functions and pole-zero distributions for stability requires intense manual calculus.
- Search Space: Automated optimization tools often fail because the design space—the possible combinations of transistor sizes—is too vast to search blindly.
- Knowledge Gap: While LLMs excel at coding, they lack specific "tribal knowledge" of analog design and struggle to interpret complex circuit diagrams or specialized formulas.
Methodology: The AmpAgent Framework
AmpAgent utilizes a "divide and conquer" strategy implemented through three specialized agents built on the LangChain framework.
1. Literature Analysis Agent
This agent employs Retrieval-Augmented Generation (RAG) to process research papers. By converting PDFs to Markdown or LaTeX via Mathpix, it extracts specific design formulas and stability conditions. Targeted prompting is used to filter out irrelevant information and focus strictly on the mathematical core of the design.
2. Mathematics Reasoning Agent
Taking the extracted formulas and the user's performance goals (e.g., Gain, Bandwidth), this agent uses the Python SymPy library to solve symbolic equations. It calculates specific targets for each stage, such as the required transconductance ($g_m$). This step effectively decomposes a massive optimization problem into several smaller, solvable sub-tasks.
3. Device Sizing Agent
The final agent interacts directly with circuit simulators like Cadence Spectre. It uses the targets from the Mathematics Reasoning Agent as a "warm start" for conventional optimization algorithms (e.g., Artificial Bee Colony or TuRBO), fine-tuning actual transistor dimensions to meet the final specifications.
Experimental Results and Insights
AmpAgent was evaluated on seven classic multi-stage amplifier architectures from IEEE literature, including Nested Miller Compensation (NMC) and Active Zero Compensation (AZC), across semiconductor processes like 0.18µm.
Key Performance Metrics
- Efficiency: AmpAgent reduced design iterations by 1.32x to 4x and cut execution time by up to ~3x.
- Performance: The resulting circuits showed a 1.63x to 27.25x improvement in the Figure of Merit (FOM) compared to the original published designs.
- Success Rate: AmpAgent achieved a near-100% success rate, whereas standalone optimization algorithms often failed on complex architectures like IAC or AZC.
Hybrid Intelligence
The success of AmpAgent stems from combining the symbolic reasoning of LLMs (understanding the "why" from literature) with the numerical power of classical optimization (calculating the "how much" in a simulator). The researchers found that decomposition is critical; LLMs should not attempt to pick every transistor size at once but should instead set the strategic mathematical targets.
Limitations and Future Work
Despite its success, AmpAgent faces a significant "image bottleneck." Current LLMs, including GPT-4o, often misidentify component connections in circuit diagrams, as shown in the figure below.
Because of these errors, researchers currently must manually convert circuit images into text-based netlists. Future work aims to automate this image-to-netlist conversion and integrate more advanced design methodologies like the $g_m/I_d$ technique to further enhance accuracy and reduce human intervention.
Conclusion
AmpAgent demonstrates that LLMs can play a transformative role in complex analog circuit design. By leveraging literature-derived knowledge to guide optimization, the system bridges the gap between theoretical research and practical silicon implementation, significantly outperforming both manual design and blind automated optimization.
Summary updated