What DRC Actually Checks, and Why Every Rule Exists
A physical design can satisfy all static timing constraints while remaining completely unmanufacturable. Foundries do not visually inspect GDSII files for manufacturing feasibility. Before fabrication begins, automated verification engines check every polygon across thousands of geometric rules. A single clearance error measuring a few nanometers stops tapeout execution.
Physical Justification of Design Rules
Design rules represent the physical boundaries of foundry manufacturing equipment. In wafer fabrication, photolithography systems project light through quartz masks onto photosensitive resist. Chemical etching then transfers the pattern into silicon, polysilicon, dielectric, or metal layers.
Every processing step exhibits physical variability:
- Optical light diffraction limits image resolution.
- Chemical etching creates undercut and line-edge roughness.
- Mechanical stage alignment tolerances cause layer-to-layer misregistration.
The table below summarizes the primary design rule categories and their physical justifications:
| Rule Category | Verification Condition | Physical Manufacturing Limitation |
|---|---|---|
| Minimum Width | Feature dimension must satisfy $W \geq W_{\min}$ | Lithographic resolution limits prevent reliable printing of sub-minimum features, causing open circuits |
| Minimum Spacing | Edge separation must satisfy $S \geq S_{\min}$ | Optical diffraction and chemical over-etching merge closely spaced features, causing bridging shorts |
| Enclosure | Surrounding metal must extend by $E \geq E_{\min}$ | Mask-to-mask misregistration causes interlayer vias to fall outside the target metal pad |
| Minimum Area | Total polygon area must satisfy $A \geq A_{\min}$ | Sub-minimum metal shapes lift off the wafer substrate during chemical mechanical planarization |
| Notch / Extension | Interior notch spacing must satisfy $N \geq N_{\min}$ | Lithographic corner rounding distorts sharp interior angles and narrow stubs |
Figure 1 illustrates minimum width, spacing, and via enclosure errors. These rules reflect the capabilities of specific manufacturing equipment.
Manual Spacing Calculation
Consider the SkyWater 130nm metal 1 spacing rule (met1.2), which requires a minimum edge-to-edge separation of $0.14\ \mu\text{m}$.
Two parallel segments on met1 occupy the following coordinates along the x-axis:
- Segment A: $x = 10.000\ \mu\text{m}$ to $x = 10.230\ \mu\text{m}$
- Segment B: $x = 10.320\ \mu\text{m}$ to $x = 10.500\ \mu\text{m}$
Calculate the physical separation distance:
$$\text{Clearance} = 10.320 - 10.230 = 0.090\ \mu\text{m}$$
Compare clearance against rule met1.2:
$$0.090\ \mu\text{m} < 0.140\ \mu\text{m} \implies \text{VIOLATION}$$
The segments violate rule met1.2 by $0.050\ \mu\text{m}$. The DRC engine evaluates millions of geometric pairs across the chip without analyzing electrical net identities. DRC evaluates pure physical geometry.
Inspecting Design Rules in the PDK
Locate the DRC technology files in your PDK installation directory:
# Search for metal 1 and local interconnect rules in the Magic tech file
grep -n "met1.2\|li.3" "$PDK_ROOT/sky130A/libs.tech/magic/sky130A.tech" | head
# View available KLayout DRC deck files
ls "$PDK_ROOT/sky130A/libs.tech/klayout/drc/"
SkyWater 130nm rules follow a standardized layer.number format. The technology files specify numerical thresholds and error messages for automated verification.
Practice Exercise
The SkyWater 130nm rule for spacing between two via cuts is $0.17\ \mu\text{m}$. Via A spans $x = 20.00\ \mu\text{m}$ to $x = 20.15\ \mu\text{m}$. Via B spans $x = 20.29\ \mu\text{m}$ to $x = 20.44\ \mu\text{m}$ along the same vertical interval. Determine if this layout complies with design rules.
Solution
Calculate edge-to-edge clearance between the via cuts: $$\text{Clearance} = 20.29 - 20.15 = 0.14\ \mu\text{m}$$
Compare against the design rule requirement: $$0.14\ \mu\text{m} < 0.17\ \mu\text{m} \implies \text{VIOLATION}$$
The via cuts are $0.03\ \mu\text{m}$ too close together, violating the rule. The physical design tool must reassign via locations or shift tracks to satisfy the $0.17\ \mu\text{m}$ minimum spacing.
You understand the manufacturing constraints behind geometric design rules. The next article executes Magic DRC on the routed UART design and analyzes violation logs.