What Is DRC? Find and Resolve Layout Rule Violations Safely
Design rule checking (DRC) tests whether selected layout geometry and wiring rules meet the requirements for the target foundry and process. When you receive violation markers, first confirm that the report was generated from the intended layout, PDK, rule deck, and run settings. Then group markers by rule, find the cause, correct the source design, and rerun. A clean DRC result applies only to the checks in the deck that ran; it does not guarantee circuit function, timing, or manufacturing yield.
What Is DRC? Find and Resolve Layout Rule Violations Safely
Design rule checking (DRC) tests whether selected layout geometry and wiring rules meet the requirements for the target foundry and process. When you receive violation markers, first confirm that the report was generated from the intended layout, PDK, rule deck, and run settings. Then group markers by rule, find the cause, correct the source design, and rerun. A clean DRC result applies only to the checks in the deck that ran; it does not guarantee circuit function, timing, or manufacturing yield.
Confirm the check basis before reviewing results
DRC evaluates layout data together with a process-specific rule deck. The deck defines conditions for layers and shape combinations; the tool can report violations for width, spacing, overlap, enclosure, and other configured rules. Which checks ran depends on the deck and its settings. A screen showing “0 violations” does not mean that other required decks or manual checks have also been completed.
Before classifying violations, verify the run information:
**Input layout:** Confirm that the run checked the intended GDS/OASIS or design database, including the submission candidate. Check the top cell, hierarchy, units, and layer mapping. If any differ from expectations, do not use the report as signoff evidence.
**PDK and rule deck:** Record the process and PDK release, deck/runset path and version, and options. Do not reuse width or spacing values from another process or a waiver from another project.
**Run and report:** Check the tool and version, flow step, completion status, and whether the report file is complete. An interrupted run or missing report is incomplete, not “DRC clean.”
Investigate markers by cause and make a source fix
**Open the report from the same run.** In the Marker Browser, inspect the rule name or ID, description, layer, cell or hierarchy, and coordinates. KLayout DRC reports can be stored in a report database and viewed in the Marker Database Browser.
**Review the geometry and rule text together.** Inspect the shapes around the marker and read the current foundry rule that applies to those layers and conditions. Do not infer design intent or an exception from the report description alone.
**Look for repeated patterns first.** If one rule clusters in a block or boundary region, check the IP revision, abutment, layer map, hierarchy conversion, or a shared routing cause. Marker count is not necessarily the number of independent root causes. When an initial chip-integration run has many markers, inspect larger patterns before moving isolated shapes one at a time.
**Fix the source layout and rerun under the same conditions.** Change only geometry or wiring whose cause is understood. After the fix, use the same PDK, deck, and options, and rerun any additional checks the project requires. If the final submission data changed, the old report no longer verifies the new data.
**Record differences between tools separately.** For example, the OpenLane 2 documentation describes separate Magic and KLayout DRC steps, each with its own report. The engines may cover each other’s blind spots, so a marker reported by only one tool is not automatically a false positive. Compare the inputs, deck, options, and rule coverage in both reports. Report paths and step numbers can vary with the flow configuration.
| Report pattern | Check first | Next action |
|---|---|---|
| Many similar markers overlap in one spot | Whether one shape violates multiple rules; whether hierarchy or units are correct | Find the source geometry and confirm a single fix resolves all affected rules |
| One rule clusters in a block or boundary | IP revision, abutment, layer mapping, and block/parent options | Align the block owner and integration inputs, then rerun at the same hierarchy |
| Magic and KLayout results differ | Input layout, deck, run options, and each engine’s coverage | Review both reports and confirm the rule interpretation with the PDK/deck owner |
| Tool failure or missing report instead of violations | Exit status, logs, and report database creation | Mark the run incomplete, correct the inputs or settings, and rerun the full check |
A waiver is an approval record, not a way to erase a marker
Exceptions can be considered when a rule does not apply to a technology option used by the design or when the rule is officially categorized as recommended. However, KLayout’s documentation generally discourages waivers: a manufacturer may reject a layout with remaining violations, and the tool itself does not provide the foundry’s formal approval process. A waived flag in a KLayout report database is a tool state with annotations; it is not foundry approval.
Use a waiver only after confirming applicability in the current PDK documentation and project/foundry process, and after approval by an authorized reviewer. Record the rule ID, scope, affected geometry, reason, supporting document, approver, and approval date; retain the original report. The KLayout 0.30.5 manual says waiver metadata is reapplied by matching shape, category, and cell. Renaming a cell can make a waiver disappear or, in the worst case, attach it to the wrong item. If hierarchy or cell names change, review whether each existing waiver still points to the right marker. If applicability is unclear, ask the PDK owner or foundry rather than waiving it. Do not disable broad rules or hide markers without approval.
Verify pass status and the final result
A successful DRC means every deck and check required by the project completed on the intended final layout, with no unresolved violations or only exceptions formally approved and recorded. Check the report summary, markers by rule, run input manifest, and waiver list—not just the exit code. This is a check of selected physical layout rules; it does not replace LVS connectivity comparison, STA, functional simulation, power integrity, or yield analysis.
The OpenLane 2 guide shows separate Magic and KLayout reports and opens the DRC XML in KLayout’s Marker Browser. It notes that the step number in the example directory path can vary with the flow configuration, so locate the report in the actual latest run instead of copying a fixed path. The guide says the two engines can cover different blind spots. This is an example of that flow, not a replacement for foundry-specific signoff rules.
References
[OpenLane 2: Newcomers — Signoff Steps / DRC](https://openlane2.readthedocs.io/en/stable/getting_started/newcomers/index.html)
[KLayout: Design Rule Checks (DRC) Basics](https://www.klayout.de/doc/manual/drc_basic.html)
[KLayout: DRC Runsets](https://www.klayout.de/doc/manual/drc_runsets.html)
[KLayout 0.30.5 User Manual: DRC Waiving Flow](https://www.klayout.de/doc-qt5/klayout.pdf)