Abstract
Optimizing the vast parameter space of electronic design automation (EDA) flows is a critical yet labor-intensive task in chip design. We introduce ORFS-agent, an automated system that leverages Large Language Models (LLMs) as agents capable of utilizing external tools to optimize chip design "knobs." Unlike traditional black-box optimization or specialized fine-tuned models, ORFS-agent uses a model-agnostic framework to interpret design logs and execute optimization strategies. Our results demonstrate that ORFS-agent outperforms state-of-the-art Bayesian Optimization by over 13% in key metrics while requiring 40% fewer iterations.
Introduction
The transition from Register-Transfer Level (RTL) descriptions to physical layouts (GDSII) involves navigating thousands of parameters—timing constraints, placement strategies, and routing heuristics. Small adjustments to these "knobs" significantly impact a chip's power, performance, and area (PPA). Traditionally, engineers rely on Bayesian Optimization (BO), which often fails to leverage domain-specific insights found in design logs. While LLMs offer potential for this task, previous approaches required expensive fine-tuning. ORFS-agent addresses these challenges by treating the LLM as an orchestrator that uses a toolbox of Python functions to navigate the design space efficiently.
System Architecture and Methodology
The ORFS-agent framework is modular and model-agnostic, integrating directly with the OpenROAD open-source design flow. The agent operates in an iterative loop consisting of observation, tool-based querying, and configuration alteration.
The agent utilizes a specialized toolbox:
- INSPECT tools: Perform statistical analysis and correlate metrics from design logs.
- OPTIMIZE tools: Propose new parameter sets using techniques like Gaussian Processes.
- AGGLOM tools: Select diverse and promising candidates for the next iteration.
A key feature of ORFS-agent is its ability to process natural language instructions, allowing engineers to specify complex multi-objective goals (e.g., "Optimize wirelength without dropping clock speed by more than 2%") which the agent translates into internal loss functions.
Experimental Evaluation
The system was evaluated using three circuit benchmarks—IBEX (RISC-V core), AES (encryption engine), and JPEG (image compression)—across two technology nodes: SKY130HD (130nm) and ASAP7 (7nm). Performance was compared against OR-AutoTuner, a state-of-the-art Bayesian Optimization baseline.
Results and Discussion
ORFS-agent demonstrated a significant leap in optimization efficiency. It improved routed wirelength (WL) and effective clock period (ECP) by over 13% compared to default settings. Notably, the agent achieved these gains with 40% fewer iterations than the BO baseline.
The "aha moment" of this research is the realization that the LLM functions best as a manager rather than a direct calculator. By reading intermediate logs, the agent can salvage information from failed or timed-out runs—data that standard optimization algorithms typically discard. Furthermore, the system is future-proof; testing with frontier models like Claude 3.5 Sonnet showed immediate performance scaling without additional training.
Conclusion and Future Work
ORFS-agent represents a paradigm shift in EDA optimization, moving from black-box algorithms to intelligent, tool-using agents. While highly effective, the agent can occasionally find "clever" local optima that degrade unconstrained metrics. Future work will explore integrating reasoning-based models (e.g., OpenAI o1), enabling dynamic tool generation, and utilizing Retrieval-Augmented Generation (RAG) to provide the agent with deep access to EDA documentation for enhanced troubleshooting.
Summary updated