CROP: Circuit Retrieval and Optimization with Parameter Guidance using LLMs

Jingyu Pan, Isaac Jacobson, Zheng Zhao, Tung-Chieh Chen, Guanglei Zhou, Chen-Chia Chang, Vineet Rashingkar, Yiran Chen

Introduction

In the realm of modern Very Large Scale Integration (VLSI) design, Electronic Design Automation (EDA) tools are the backbone of the transformation from Register-Transfer Level (RTL) code into physical hardware. However, these tools are notoriously complex, often featuring hundreds or thousands of tunable parameters that govern critical factors such as density, congestion, timing, and power consumption. The resulting search space is astronomical—exceeding $10^{15}$ possible configurations in some instances—making manual tuning by human experts both laborious and suboptimal.

To address this, the industry has turned to automated black-box optimization methods like Bayesian Optimization (BO) or Genetic Algorithms. While useful, these methods are typically "design-agnostic"; they treat every circuit as an opaque entity, failing to leverage the inherent functional differences between a CPU core and a memory controller. This lack of "circuit awareness" leads to inefficient search patterns and significant computational waste. This paper introduces CROP (Circuit Retrieval and Optimization with Parameter Guidance), the first LLM-powered framework designed to provide optimization processes with functional intuition through Retrieval-Augmented Generation (RAG).

The CROP Methodology

CROP bridges the gap between circuit semantics and parameter optimization through a two-stage framework that utilizes Large Language Models (LLMs) to "remember" and apply successful configurations from similar designs.

Stage 1: Database Construction and Hierarchical Summarization

The first challenge in making optimization circuit-aware is processing massive RTL codebases that often exceed the context windows of standard LLMs. CROP employs a Hierarchical Summarization strategy:

  1. Module-Level Summarization: GPT-4o is used to summarize individual RTL modules.
  2. System-Level Synthesis: These module summaries are concatenated and summarized again to create a high-level "semantic fingerprint" of the entire circuit.
  3. Embedding: These summaries are converted into dense vectors (embeddings). Each entry in the CROP database pairs a circuit's embedding with its "Parameter Guidance"—the specific parameter sets that yielded the best performance in previous optimization runs.

When a new design is submitted for optimization, CROP executes a retrieval-based search to seed the optimization process:

  • Retrieval: The system generates an embedding for the new design and uses Maximum Inner Product Search (MIPS) to identify the most semantically similar circuit in its database.
  • LLM-Guided Search: CROP utilizes a reasoning-capable LLM (OpenAI o1) as an autonomous design engineer. The LLM is prompted with the retrieved "Parameter Guidance" from the similar design. By seeding the search with these high-quality starting points, the LLM can iteratively suggest new configurations based on the results of previous trials, effectively navigating the search space with the "intuition" of a seasoned engineer.

Experimental Evaluation

The authors evaluated CROP using both open-source and industrial benchmarks:

  • RTLRewriter: A diverse set of open-source designs including ALUs, multipliers, and decoders.
  • Industrial Cores: Two high-performance processor cores—Prior Core (7nm node) and Target Core (5nm node). These were specifically chosen to test CROP's ability to transfer knowledge across different technology generations.

Key Results and Insights

CROP demonstrates significant improvements over state-of-the-art (SOTA) design-agnostic baselines in both performance and efficiency.

1. Superior Power Reduction

On the industrial Target Core, CROP achieved a 9.9% reduction in total power consumption compared to baselines like Optuna and standard Bayesian Optimization. This highlights the value of functional awareness in the tuning process.

2. Extreme Search Efficiency

One of the most compelling findings is CROP's speed. CROP reached a power result of 127.08 mW in just 5 iterations. In contrast, the best-performing baseline required 75 iterations to reach a comparable result (133.17 mW). This represents a massive reduction in the computational cost of EDA tool runs, which can often take hours per iteration.

3. The Power of RAG and Semantic Mapping

Ablation studies confirmed that the RAG component is the primary driver of this efficiency. Using RAG-based guidance resulted in 8.66% lower power usage compared to using the same LLM search engine without the retrieval component. Furthermore, the embedding system achieved an average precision of 0.906 at $k=1$, proving that LLM-generated summaries successfully capture the functional intent of hardware.

4. Cross-Node Knowledge Transfer

CROP successfully utilized tuning data from a 7nm design to optimize a 5nm design. This suggests that effective parameter strategies are often tied to the logical structure of the circuit rather than the specific manufacturing process, allowing knowledge to be reused across technology nodes.

Conclusion and Future Work

CROP represents a paradigm shift in EDA parameter tuning by replacing design-agnostic black-box search with a semantically aware, retrieval-augmented approach. By leveraging the reasoning capabilities of LLMs and a database of prior successes, CROP achieves superior power optimization with a fraction of the computational effort.

Future work will focus on expanding the diversity of the database to handle more varied designs and exploring parallelized search instances. Additionally, integrating early-stopping mechanisms for unpromising EDA runs could further enhance the framework's efficiency, making it an even more robust tool for the next generation of chip design.

Summary updated

BibTeX
@inproceedings{pan2025crop,
  author = {Jingyu Pan and Isaac Jacobson and Zheng Zhao and Tung-Chieh Chen and Guanglei Zhou and Chen-Chia Chang and Vineet Rashingkar and Yiran Chen},
  title = {{CROP: Circuit Retrieval and Optimization with Parameter Guidance using LLMs}},
  booktitle = {ICCAD},
  year = {2025},
  doi = {10.1109/iccad66269.2025.11240643},
}
Figure