TL;DR
DRC-Coder is an automated, multi-agent AI framework that generates Design Rule Checking (DRC) code for advanced semiconductor technology nodes. By combining Large Language Models (LLMs) and Vision Language Models (VLMs) with an automated debugging loop, it achieves a perfect 1.000 F1 score in replicating commercial DRC tool reports, slashing development time from weeks to under four minutes per rule.
What Problem Does This Paper Address?
In modern microchip design, ensuring a layout can actually be manufactured requires strict adherence to hundreds of complex geometric constraints called Design Rule Checks (DRC). While heavy-duty commercial DRC tools are the gold standard for final sign-off, internal routing tools (Place and Route) need lightweight, integrated DRC checkers to quickly optimize layouts for power, performance, and area.
Historically, writing these custom checkers has been an engineering nightmare. Human experts must manually interpret confusing, multi-modal foundry documents filled with text abbreviations and complex diagrams, write the code, test it against commercial tool reports, and debug it iteratively. Because every new technology node (such as sub-3nm) introduces entirely new rules, this labor-intensive process must be repeated constantly, creating a massive bottleneck in the hardware development cycle.
Methods
The authors introduce DRC-Coder, a training-free, multi-agent framework that splits the coding process into two specialized roles, mimicking the human engineering workflow:
- The Planner: An LLM agent tasked with understanding the rules. It uses two vision-enabled tools—Foundry Rule Analysis and Layout DRV Analysis—powered by a VLM to parse diagrams, text abbreviations, and visual layout reports.
- The Programmer: An LLM agent that takes the Planner's structured logic and translates it into executable Python code.
Crucially, the framework includes a DRC Code Evaluation tool. This function runs the generated code on a test layout dataset and compares its output directly against a commercial DRC tool's report. If there are mismatches (false positives or false negatives), it feeds detailed spatial feedback (e.g., exact coordinate distances of missed violations) back to the Planner. This kicks off an automated, iterative debugging loop until the code perfectly matches the commercial standard.
Datasets
To evaluate DRC-Coder, the authors created a custom dataset using NVCell (a state-of-the-art automated standard cell layout tool). They intentionally mutated routing behaviors without fixing DRC errors to generate 207 distinct standard cell layouts containing a diverse array of Design Rule Violations (DRVs). The evaluation covers 7 distinct design rules spanning metal and via layers (M0 to M2) for a sub-3nm technology node.
Key Insights and Ideas
- Multi-Modal Interpretation is Essential: Foundry rules are rarely just text; they rely heavily on visual diagrams to convey complex spatial constraints (like parallel run lengths). Standard text-only LLMs fail here, but integrating state-of-the-art VLMs (like GPT-4o) successfully bridges the gap.
- Divide and Conquer Beats Single Prompting: Splitting the task into a "Planner" (interpretation) and a "Programmer" (coding) significantly reduces LLM hallucination and reasoning errors compared to asking a single model to handle the entire pipeline.
- Targeted, Spatial Feedback for Debugging: Instead of just telling the LLM "your code failed," the evaluation tool provides precise geometric feedback (e.g., "missed a violation 2 units from the left boundary"). This structured feedback makes automated debugging highly effective.
Key Results
- Perfect Accuracy: Using GPT-4o as the backbone, DRC-Coder achieved a perfect F1 score of 1.000 across all seven evaluated design rules, meaning it perfectly replicated the commercial tool's violation reports with zero false positives or false negatives.
- Massive Speedup: Standard prompting techniques only managed an average F1 score of 0.631. DRC-Coder reached perfection in an average of just 2.3 debugging iterations, taking only 210 seconds (under 4 minutes) per rule.
- Model Generalization: Even when using an open-source model like Llama3, the framework improved performance by 42.2% over standard prompting, demonstrating that the multi-agent architecture itself provides significant value regardless of the underlying model.
Limitations and Future Work
- Grid-Based Limitation: The current implementation targets grid-based DRC checkers used in specific routing tools (like NVCell), rather than full polygon-based physical verification engines.
- Language Support: The generated code is currently in Python. The authors note that translating this framework to generate higher-performance languages like C++ will be necessary for production-scale Electronic Design Automation (EDA) tools.
- Broader EDA Applications: The authors plan to extend this multi-agent, vision-capable approach to other complex EDA tasks, such as automated test pattern generation, design rule optimization, and interactive DRC-explanation chatbots.
Summary updated