Skip to main content
QUICK REVIEW

[Paper Review] ChatEDA: A Large Language Model Powered Autonomous Agent for EDA

Zhuolun He, Haoyuan Wu|arXiv (Cornell University)|Aug 20, 2023
Semiconductor materials and devicesEngineering5 citations
TL;DR

ChatEDA is an LLM-powered autonomous agent that enables natural language interaction with EDA tools for RTL-to-GDSII design flows. Powered by a fine-tuned LLM, AutoMage, it automates task planning, script generation, and execution via EDA tool APIs, outperforming GPT-4 in complex EDA tasks including parameter tuning and constraint-driven optimization.

ABSTRACT

The integration of a complex set of Electronic Design Automation (EDA) tools to enhance interoperability is a critical concern for circuit designers. Recent advancements in large language models (LLMs) have showcased their exceptional capabilities in natural language processing and comprehension, offering a novel approach to interfacing with EDA tools. This research paper introduces ChatEDA, an autonomous agent for EDA empowered by an LLM, AutoMage, complemented by EDA tools serving as executors. ChatEDA streamlines the design flow from the Register-Transfer Level (RTL) to the Graphic Data System Version II (GDSII) by effectively managing task decomposition, script generation, and task execution. Through comprehensive experimental evaluations, ChatEDA has demonstrated its proficiency in handling diverse requirements, and our fine-tuned AutoMage model has exhibited superior performance compared to GPT-4 and other similar LLMs.

Motivation & Objective

  • To address the complexity and inefficiency of traditional EDA tool interaction via scripting languages like TCL.
  • To enable circuit designers to interact with EDA tools using natural language, eliminating the need for manual script writing.
  • To develop an autonomous agent that plans, generates, and executes EDA workflows end-to-end using LLMs.
  • To improve LLM performance in EDA-specific tasks through instruction tuning on domain-specific corpora.
  • To demonstrate that a fine-tuned LLM can surpass general-purpose models like GPT-4 in EDA automation tasks.

Proposed method

  • ChatEDA uses AutoMage, a large language model fine-tuned on EDA-specific data, as the central controller for natural language understanding and task decomposition.
  • The system performs three-stage workflow: (1) task planning via natural language interpretation, (2) script generation in Python using EDA tool APIs, and (3) execution of generated scripts on target EDA platforms.
  • AutoMage is trained via instruction tuning on a curated corpus of EDA workflows, enhancing its ability to map natural language to executable EDA operations.
  • The framework integrates with EDA tools such as OpenROAD and iEDA through programmatic APIs, enabling full automation of RTL-to-GDSII flows.
  • Self-feedback mechanisms are employed to iteratively refine parameter settings based on evaluation metrics like WNS and TNS.
  • Evaluation includes benchmarking against GPT-4 on tasks such as parameter tuning, clock period minimization, and constraint validation.

Experimental results

Research questions

  • RQ1Can a fine-tuned LLM effectively interpret natural language instructions and map them to executable EDA workflows?
  • RQ2Can an LLM-powered agent outperform general-purpose LLMs like GPT-4 in complex EDA automation tasks?
  • RQ3To what extent can instruction tuning improve LLM performance in EDA-specific domains?
  • RQ4Can the agent autonomously plan, generate, and execute multi-stage EDA flows without human intervention?
  • RQ5How effective is the agent in solving constraint-based EDA problems, such as finding the minimal valid clock period?

Key findings

  • ChatEDA successfully automates the entire RTL-to-GDSII design flow using only natural language input, eliminating the need for manual scripting.
  • AutoMage, the fine-tuned LLM, outperforms GPT-4 in generating correct and efficient EDA scripts across diverse tasks.
  • In clock period minimization, AutoMage correctly identified the smallest valid clock period using self-feedback and metric evaluation, while GPT-4 failed to produce a working solution.
  • The agent demonstrated robust performance in parameter tuning tasks, such as optimizing core utilization, density, and TNS end percent, with correct script generation and execution.
  • AutoMage achieved superior results in constraint-based EDA problems, including correct handling of WNS (wire negative slack) validation for timing closure.
  • The framework proves effective in real-world EDA workflows, showing that LLMs can be reliably fine-tuned to serve as intelligent controllers for complex EDA toolchains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.