Updated 5 min readDesign Rule Checking
Anatomy of a design rule check deck
What is inside a DRC rule deck: layer definitions, width, spacing, enclosure and density checks, antenna and DFM rules, with SVRF examples and overlay habits.
By the SkyCadEda engineering teamHow these notes are written
On this page
A DRC deck is a program in a rule language (SVRF for Calibre, PVL for Pegasus, PXL for IC Validator) that maps GDSII/OASIS layer numbers to names, derives intermediate layers with Boolean operations, measures them, and reports each violation under a rule name. Its core is width, spacing, enclosure, area and density checks, plus antenna, multi-patterning and recommended (DFM) rules at advanced nodes. Knowing how it is structured is what lets you debug a violation from the rule text instead of guessing from the marker.
Layer definitions and derived layers
The top of every deck is housekeeping: the layout path and format, the results database, precision, and a LAYER statement for each drawn layer and datatype. Foundry decks then derive the layers the rules actually talk about: gate as poly over diffusion, N and P diffusion from implant layers, resistor bodies from marker layers, and so on. Most of a large deck is derivation, and most surprising results come from a derivation that does not mean what you assumed.
Decks also carry preprocessor switches (#DEFINE, #IFDEF ... #ENDIF in SVRF) for metal stack options, optional devices and check groups. A wrong switch for your stack produces either false errors or, worse, silently skipped checks.
Width, spacing, enclosure, area
The backbone is dimensional checks. Minimum width keeps a shape wide enough to survive lithography and etch. Minimum spacing keeps neighbours from bridging. Minimum area stops shapes so small they vanish with process variation. Enclosure requires one layer to surround another by a margin, typically metal around a via, so the via still lands when masks are misaligned. Current-carrying capacity is not a width rule; that is electromigration, checked separately.
Here is the shape of these checks in SVRF. The layer numbers and values are invented for illustration:
LAYER M1 31
LAYER VIA1 51
M1.W.1 { @ M1 width < 0.05
INT M1 < 0.05 ABUT < 90 SINGULAR REGION
}
M1.S.1 { @ M1 space < 0.05
EXT M1 < 0.05 ABUT < 90 SINGULAR REGION
}
M1.A.1 { @ M1 area < 0.01 um2
AREA M1 < 0.01
}
V1.EN.1 { @ M1 enclosure of VIA1 < 0.01
ENC VIA1 M1 < 0.01 ABUT < 90 SINGULAR REGION
}Real decks add conditional variants on top: spacing that grows with wire width or parallel run length, end-of-line spacing, and different enclosure on the two axes of a via. These interact, so fixing one rule by hand often breaks another. That is why the full deck runs against the full database rather than being applied from memory.
Density and fill
CMP polishes at a rate that depends on how much material is in a region, so local rules are not enough. Density rules set a minimum and often a maximum coverage for each layer in a sliding window, and advanced decks also limit the density difference between neighbouring windows, because a sharp gradient causes local dishing even when the average is fine.
In the deck, each density rule names the layer, the coverage limit, the window size and the step by which the window moves across the chip. Fill fixes low density, but fill shapes obey the same spacing rules as functional metal, and floating fill couples to nearby signals differently from tied fill. Run fill and density before final extraction, or the timing you signed off will not match the layout you ship.
Antenna, multi-patterning and DFM rules
Process-behaviour rules sit beside the geometric ones. Antenna rules limit conductor-to-gate area ratios per layer and need connectivity, which the deck builds itself with CONNECT statements; see antenna checks in physical verification. At nodes with double or multiple patterning, the deck checks that same-mask shapes can be decomposed (coloured) legally. A layout can meet every spacing rule and still fail decomposition.
DFM rules are usually a separate recommended-rule deck or a selectable group: via doubling where space allows, wider spacing and longer line ends than the minimum, litho-hotspot pattern checks (Calibre LFD, pattern matching), and critical area analysis. They do not block tapeout by default, but foundries track them because they correlate with yield. Recommended rules that are cheap to meet are worth meeting while the layout is still open.
Overlays, not edits
Never edit the foundry deck. Keep it read-only and put local control in a small overlay that includes it. A deck update then becomes a file swap, and every result traces to an unmodified foundry revision plus a versioned overlay. This assumes the foundry file leaves the layout and results statements to the caller, which is the usual convention and the way Calibre Interactive builds its control file:
// project overlay, version-controlled
LAYOUT PATH "top.oas"
LAYOUT SYSTEM OASIS
LAYOUT PRIMARY "top"
DRC RESULTS DATABASE "top.drc.results" ASCII
INCLUDE "/pdk/v1.2/calibre/drc/main.svrf"
DRC UNSELECT CHECK M1.DN.1Unselecting a density check for an early block run like this is fine. Signing off with checks unselected is not, so the final run uses an overlay that selects everything the foundry requires. Record which deck revision, overlay version and tool version produced every signoff result; when the foundry ships a new deck mid-project, diff it, decide what to rerun, and log the change.
Incremental and full-chip runs
Interactive checks in the layout editor (with a reduced rule set) keep layout moving. Block-level runs with the full deck catch most problems. Hierarchical engines verify each cell once and check only the interactions where instances overlap or abut, which makes full runs affordable. The final run is the full deck on the full chip with the released revision. Nothing less counts as DRC clean.
When debugging, start from the rule name and read its definition in the deck, not just the marker. A spacing error next to fill, an enclosure error under a rotated instance, and a density error in a block corner need different fixes, and the rule text tells you which. The same violation repeated across many cells usually points to a PCell, a library cell, or a router rule setup, not to individual layout mistakes.
We write and maintain runsets and overlays as part of our DRC/LVS runset development work.
Frequently asked questions
What is the difference between a DRC deck and a runset?
The terms are often used interchangeably. Where teams distinguish them, the deck is the foundry rule file (for example an SVRF file for Calibre), and the runset is the deck plus the local control settings for a specific run: layout path, top cell, selected checks, results database and switches.
Why do density rules exist if every local rule passes?
CMP removes material at a rate that depends on local pattern density. Too little or too much metal in a window, or a sharp density change between neighbouring windows, causes dishing and erosion that change wire thickness. Density rules keep each layer inside the window the process can planarize.
Should we edit the foundry deck?
No. Keep the foundry deck read-only and put local changes (check selection, switches, extra project rules) in a separate overlay file that includes it. That way a deck update is a file swap, and every result can be traced to an unmodified foundry revision plus a versioned overlay.
Related reading
- serviceDRC/LVS runset development
- noteCalibre SVRF and TVF rule decks
- noteAntenna checks in physical verification
- noteDRC baselines and waivers
More engineering notes
Working through a problem like this?
Tell us about your flow: the tools, the PDK, what is failing and when it needs to be clean.