MCP4EDA: LLM-Powered Model Context Protocol RTL-to-GDSII Automation with Backend Aware Synthesis Optimization

Yiting Wang, Wanghao Ye, Yexiao He, Yiran Chen, Gang Qu, Ang LiarXiv 2025 · DOI

Abstract

MCP4EDA is the first framework to implement the Model Context Protocol (MCP) for chip design, enabling Large Language Models (LLMs) to autonomously orchestrate the RTL-to-GDSII flow. By establishing a "backend-aware" closed-loop system, MCP4EDA uses physical layout metrics to iteratively refine synthesis scripts. Experimental results demonstrate up to 30% timing improvement and 20% area reduction compared to standard automated flows.

Introduction

The transition from Register Transfer Level (RTL) hardware descriptions to a manufacturable GDSII layout is a complex process traditionally governed by rigid, template-based scripts. A significant challenge in this flow is the synthesis-to-layout gap. During synthesis, tools rely on Wire Load Models (WLMs) to estimate timing and area. At advanced nodes, these estimates often diverge significantly from the final physical reality. Consequently, designers must manually iterate through script adjustments—a labor-intensive task. While Large Language Models (LLMs) have shown promise in script generation, previous approaches were "blind" to backend physical results, limiting their optimization efficacy.

Methods: The MCP4EDA Framework

MCP4EDA addresses these challenges by leveraging Anthropic’s Model Context Protocol (MCP) to transform an LLM into an intelligent EDA orchestration agent. The system architecture consists of an MCP Server that provides a unified interface between the LLM and open-source EDA tools such as Yosys, OpenLane, and Icarus Verilog.

The framework employs a three-phase optimization workflow:

  1. Baseline Exploration: Establishing a performance floor using predefined scripts.
  2. LLM Analysis (with RAG): The LLM analyzes backend metrics (timing slack, area, power) and utilizes Retrieval-Augmented Generation (RAG) to query tool manuals for refinement strategies.
  3. Iterative Refinement: A closed-loop process where the LLM generates new scripts, observes post-layout results, and iterates until convergence.
The three-phase backend-aware TCL optimization workflow.

Experimental Evaluation

The framework was evaluated using a benchmark suite of nine digital designs, including ALUs, communication blocks (UART), and complex controllers. All designs were implemented using the open-source SkyWater Sky130 (130nm) PDK.

Results and Discussion

Experimental results indicate that MCP4EDA consistently outperforms both standard "best-effort" defaults and "blind" LLM script generation. Key findings include:

  • Timing: A 15-30% reduction in critical path delays.
  • Area: A 10-20% reduction in total chip area.
  • Aggregate Performance: A geometric mean improvement of 6% in timing and 9% in area utilization across all benchmarks compared to the best OpenLane defaults.
Scatter plots showing the Pareto frontier improvements in Critical Path vs. Area for various benchmarks.

The study highlights that closing the loop with physical feedback is critical; LLMs using fixed templates without backend feedback often performed worse than baselines.

Limitations and Future Work

While successful on small-to-medium designs, scaling to industrial-scale SoCs will require hierarchical strategies. Current runtime overhead is significant due to full synthesis and place-and-route iterations. Future work will focus on power optimization and extending support to commercial EDA suites from Cadence and Synopsys.

Summary updated

BibTeX
@misc{wang2025mcp,
  author = {Yiting Wang and Wanghao Ye and Yexiao He and Yiran Chen and Gang Qu and Ang Li},
  title = {{MCP4EDA: LLM-Powered Model Context Protocol RTL-to-GDSII Automation with Backend Aware Synthesis Optimization}},
  year = {2025},
  eprint = {2507.19570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.19570},
}
Figure