Abstract
Electronic Design Automation (EDA) toolchains are notoriously complex, requiring specialized knowledge of scripting languages and hundreds of parameters. ChatEDA introduces an autonomous agent powered by a fine-tuned Large Language Model (LLM) called AutoMage. By leveraging task decomposition and automated script generation, ChatEDA allows hardware designers to manage the RTL-to-GDSII flow using natural language, significantly outperforming general-purpose models like GPT-4 in design accuracy.
Introduction
The transition from Register-Transfer Level (RTL) descriptions to Graphic Data System II (GDSII) physical layouts is a cornerstone of semiconductor design. However, this process involves a fragmented ecosystem of tools for synthesis, floorplanning, placement, and routing. Designers face a steep learning curve to master tool-specific syntax (e.g., TCL) and manage interoperability issues. While general LLMs show promise in coding, they often lack the domain-specific logic required for EDA, leading to "hallucinations" or invalid design sequences.
System Architecture and Methods
ChatEDA addresses these challenges through a three-stage autonomous pipeline driven by AutoMage, a specialized controller fine-tuned from Llama2.
The system operates as follows:
- Task Decomposition: High-level natural language requirements are broken down into a structured sequence of sub-tasks (e.g., Setup → Synthesis → Floorplan).
- Script Generation: AutoMage generates executable Python scripts that interface with a wrapper around EDA tools like OpenROAD and iEDA.
- Task Execution: The generated scripts are executed within the toolchain. The agent can utilize self-feedback loops to refine parameters or correct errors.
To optimize performance, the authors developed AutoMage2, which incorporates "Instruction Tuning with Explanation." This method trains the model to explain its reasoning, enhancing logical consistency. Fine-tuning was performed using QLoRA (4-bit quantization) to enable efficient training of large-scale models (up to 70B parameters) on accessible hardware.
Datasets and Evaluation
The training of AutoMage relied on a specialized Instruction Pool of 1,500 requirement-response pairs, generated via a self-instruction paradigm and expert refinement. For AutoMage2, this was augmented with 110,000 general code instructions to improve broad logical reasoning.
Performance was measured using ChatEDA-Bench, a benchmark of 50 tasks ranging from simple flow calls to complex parameter tuning for Design Space Exploration (DSE).
Key Results and Insights
The evaluation utilized a grading scale where "Grade A" represents perfect execution.
- AutoMage2 achieved Grade A on 82% of tasks.
- GPT-4 followed at 62%.
- Claude2 and GPT-3.5 trailed at 46% and 28%, respectively.
A key insight is that domain-specific fine-tuning allows smaller models (like Llama2-based AutoMage) to outperform much larger general-purpose models. Specifically, AutoMage2 excelled at "Parameter Tuner" tasks, successfully constructing complex optimization loops that general LLMs failed to structure logically.
Limitations and Future Directions
Despite its success, ChatEDA faces several hurdles:
- API Scalability: The model currently depends on pre-defined API documentation and cannot yet autonomously learn to use new tools from raw manuals.
- Inference Latency: High-parameter models (70B) exhibit slow generation speeds, impacting real-time usability.
- Multi-turn Interaction: Future work aims to improve the agent's ability to handle iterative feedback and multi-turn dialogues for more nuanced design refinement.
Summary updated