Design Rule Checking (DRC) error fixing remains a time-consuming bottleneck in physical design, often requiring manual intervention despite advanced EDA optimizations. Existing LLM-agent approaches fall short due to redundant contextual shapes, limited spatial reasoning over raw coordinates, and inefficient flat layout representations. We propose AgentDRC, which formulates iterative DRC correction as a multi-agent algorithm and introduces a spatial-aware verification and correction algorithm that reconstructs structured spatial relations among critical shapes and validates fixes through geometric and semantic constraint checking. The system coordinates four specialized agents to perceive multi-level, multi-modal geometric features, filter irrelevant shapes, and iteratively correct violations. Experiments show that AgentDRC achieves up to 30.4% pass@1 and 55.7% pass@5 on challenging violations, with 13.8% pass@5 improvement over the best baseline. We will open-source all code and benchmark tasks upon acceptance.
Figures & tables
Figure 1. Illustration of challenges in Agent-based DRC error understanding and resolution: (1) redundant surrounding shapes that distract the agent from constraint-related ones; (2) limited ability to infer spatial relationships and corrective actions from coordinate data; and (3) difficulty extracting meaningful geometric or semantic information from flat, sequential representations.
Figure 2. Overview of the proposed multi-agent algorithm, AgentDRC , for automatic DRC error fixing.
Figure 3. Structured Spatial Relations. The Spatial-Awareness Agent transforms raw geometric coordinates around a DRC error into structured spatial relations.
Figure 4. Multi-Level and Multi-Modal Representation of Context Shapes. (Left) Example of a DRC error and its affected layout region. (Right) Three context levels are constructed around the error marker.
L1
class 1(%)
class 2(%)
class 3(%)
overall(%)
Method
Open Source
Model Size
pass@1
pass@5
pass@1
pass@5
pass@1
pass@5
pass@1
pass@5
Different Base Models
ReAct(GPT5-mini)
✗
N/A †
94.8
98.9
91.7
99.9
96.7
100.0
94.3
99.2
ReAct(Gemini-2.0)
✗
N/A †
72.4
94.2
53.3
95.8
90.0
100.0
70.3
95.1
ReAct(DeepSeek-V3.1)
✓
671B
85.2
94.2
66.7
91.3
90.0
100.0
82.0
94.2
Table 1. Overall comparison on L1. L1 evaluates the base model’s fundamental abilities.
L2
class 1(%)
class 2(%)
class 3(%)
overall(%)
Method
Open Source
Modality
pass@1
pass@5
pass@1
pass@5
pass@1
pass@5
pass@1
pass@5
Single-Agent
ReAct(GPT5-mini)
✗
T
24.0
51.7
16.0
34.8
6.7
33.3
18.3
41.9
ReAct(Gemini-2.0)
✗
T
10.0
29.1
8.00
27.5
16.7
56.5
10.0
32.0
ReAct(DeepSeek-V3.1)
✓
T
10.0
26.9
14.0
37.5
10.0
50.0
11.7
34.5
Table 2. Comparison of AgentDRC against various baseline models on L2.
Variants
L2
Pass@5 Δ
pass@1
pass@5
Baseline (ReAct)
10.0
32.0
↓ 9.3
w/o Observation Agent
18.3
38.7
↓ 2.6
w/o Context Selection Agent
11.3
30.9
↓ 10.4
w/o Spatial-Awareness Agent
11.7
33.5
↓ 7.8
AgentDRC
14.8
41.3
=
Table 3. Ablation study on L2. Pass@5 Δ indicates the drop relative to the full AgentDRC model.
Figure 5. Effectiveness of Multi-Level and Multi-Modal Geometric Information
Figure 6. Effect of top- k selected shapes on L2 overall performance. Fewer selected shapes yield better results, as excessive context introduces noise.
Figure 7. Effect of max iterations on L2 performance and cost. (a) Overall pass@1 and pass@5 largely saturate beyond 6 iterations. (b) API cost per run increases steadily with the iteration budget.
Resolving Design Rule Violations (DRVs) in layouts entails an iterative loop of geometric edits and verification. We present DRC-Aid, a closed-loop agentic framework that automates local DRC repair by formulating it as verification-in-the-loop search. To constrain the combinatorial geometric repair space, a deterministic Rule Engine converts physical verification tool-reported violations into a bounded menu of geometric edits. An off-the-shelf Large Language Model (LLM) evaluates local geometric context to select edits from this menu, with budgeted depth-first search and backtracking. Immediate feedback from verification tools such as Calibre nmDRC/nmLVS enforces geometric compliance and guards against electrical-topology degradation, while a global Memory Bank prevents cyclic re-exploration. Evaluated on FreePDK45 layouts containing DRVs, DRC-Aid achieves DRC-clean, LVS-equivalent repairs in ~92.5% of cases with a ~98% total violation reduction, while residual cases yield partially repaired LVS-equivalent candidates. Under an identical search and verification infrastructure, LLM-based selection outperforms random (54.4%) and deterministic-heuristic (83.3%) policies, with the gap widening on cases with six or more violations.
Manufacturable chip layouts must satisfy thousands of geometry-based design rules, and design rule checking (DRC) enforces them by running executable DRC scripts on layouts. Translating natural language rules into correct DRC scripts is labor-intensive and requires specialized expertise, motivating LLM agents for DRC script synthesis and debugging. However, existing benchmarks have small evaluation sets and often evaluate scripts by code similarity rather than execution correctness, and prior machine learning-based methods either ignore execution feedback or require labeled test layouts as agent's input. To this end, we introduce Rule2DRC, a large-scale benchmark for DRC script coding agents with 1,000 rule-to-script tasks and 13,921 evaluation chip layouts for execution-based scoring. Rule2DRC provides an evaluation pipeline that measures functional correctness via DRC execution outcomes without requiring evaluation layouts as input to the agent. We also propose SplitTester, a tester agent for program selection that uses execution feedback to generate discriminative test cases and separate previously indistinguishable candidate scripts, substantially improving Best-of-N selection performance in this domain. We release the code at https://github.com/snu-mllab/Rule2DRC.
Jinuk Kim, Junsoo Byun, Donghwi Hwang +2
Department of Computer Science and Engineering, Seoul National University · Neural Processing Research Center · Samsung Electronics Co., Ltd.
Design rule check (DRC) closure remains a major bottleneck in advanced-node physical design. Although detailed routers are rule-aware, residual design rule violations (DRVs) often require manual engineering change order iterations. Automating this process is challenging because repairs must account for complex geometric interactions, preserve circuit connectivity, and avoid introducing new violations. We present EvoDRC, a skill-evolution framework for agentic block-level DRC repair. EvoDRC initializes layer-specific repair skills using knowledge distilled from an unrelated reference design and continuously evolves these skills using traceable repair experience collected from the target design. EvoDRC decomposes the layout into bounded repair regions and assigns an LLM repair agent to each region. Local DRC analysis, connectivity-checking, and impact-preview tools provide feedback on proposed modifications. Repair operations and their resulting DRV changes are stored in a knowledge database and used to evolve the repair skills. Experiments on seven block-level designs from the DAC26 DRC Benchmark show that EvoDRC achieves a 73.5% overall reduction compared to the reported baseline.