Module 8: Physical Verification · 8.1 Design Rule Checking

Fixing a Real DRC Violation

The previous article identified four DRC violations in the routed UART layout. Generating a violation report is only the first step. Physical designers must locate each error, analyze the surrounding geometry, apply repairs, and verify closure. This laboratory exercise resolves a metal 1 spacing violation (met1.2).

Locating the Violation in Magic

Review the error entry from the DRC report:

Metal1 spacing < 0.14um (met1.2)
----------------------------------------
88.050 55.900 88.190 56.100

Launch Magic interactively with the SkyWater 130nm setup file:

magic -rcfile "$PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc" &

In the Magic console, load the GDSII layout and navigate directly to the bounding coordinates:

gds read runs/uart_full/results/final/gds/uart_top.gds
load uart_top
box 88.05um 55.9um 88.19um 56.1um
findbox zoom
zoom 0.2
drc why

The box command positions the cursor box on the violation. The drc why command prints the specific rule violated within the area. Two unrelated met1 signal traces jog past a congested standard cell pin, leaving only $0.09\ \mu\text{m}$ of clearance against the $0.14\ \mu\text{m}$ requirement.

Selecting a Remediation Strategy

Layout engineers evaluate three remediation methods based on error scope:

  1. Local Geometry Shifting: Nudge one wire segment away from its neighbor if adjacent space is available. This low-impact edit introduces minimal risk.
  2. Local Rerouting: Promote a segment to an adjacent metal layer using vias when planar space is exhausted.
  3. Upstream Parameter Adjustment: Modify router parameters or placement density when hundreds of violations stem from systemic congestion.

Choosing a DRC fix
Figure 1: Choosing a fix by whether the violation is isolated or systemic, then re-running DRC until clean

Figure 1 outlines the decision flow. Because this is an isolated violation with available adjacent space, shifting the segment resolves the error cleanly.

Executing the Geometric Repair

Select the eastern met1 wire segment and shift it away from the neighboring trace:

box 88.05um 55.9um 88.12um 56.1um
select area metal1
what
move e 0.06um

The command moves the segment 60 nm east. This opens the physical gap from $0.09\ \mu\text{m}$ to $0.15\ \mu\text{m}$, satisfying the $0.14\ \mu\text{m}$ design rule with 10 nm of margin. Verify that the moved trace remains connected to its terminal vias. Save the updated layout:

save uart_top
gds write uart_top_fixed.gds

Verifying DRC Closure

Apply the identical 60 nm shift to the second met1.2 violation located at coordinate $(91.410, 62.230)\ \mu\text{m}$. Rerun the batch Magic DRC script on uart_top_fixed.gds:

Metal2 overlap of via1 < 0.055um (met2.4)
----------------------------------------
102.870 40.115 102.930 40.175

Local interconnect spacing < 0.17um (li.3)
----------------------------------------
45.230 102.415 45.400 102.585

COUNT: 2

Both met1.2 violations are resolved. The total violation count decreases from four to two without introducing new geometric errors.

Practice Exercise

The report contains a met2.4 enclosure violation: via cut via1 at $(102.870, 40.115)\ \mu\text{m}$ lacks $0.02\ \mu\text{m}$ of required met2 enclosure margin on its southern edge. Explain whether you should modify the via cut or the metal pad.

Solution

Modify the met2 metal pad, not the via cut.

Via cuts are standardized contact geometries characterized in the foundry PDK. Modifying via dimensions alters contact resistance and violates fixed via size rules. Extend the met2 metal pad $0.03\ \mu\text{m}$ southward beyond the via edge to satisfy the enclosure requirement. Then rerun DRC to ensure the extended pad satisfies spacing rules to adjacent tracks.

DRC confirms that physical shapes satisfy foundry lithographic limits. Section 8.2 introduces Layout Versus Schematic (LVS) verification to confirm that physical geometries match the intended netlist.

← Running Magic's DRC Engine on the UART Why a DRC-Clean Layout Can Still Be Functionally Wrong →