Module 6: Routing · 6.3 SKY130 Routing Rules

Reading a DRC Deck Section

Physical design tools do not parse descriptive text. Verification engines enforce geometric design rules through structured, machine-readable rule files called DRC decks. This article explains the syntax of DRC rule decks and shows how verification engines evaluate manufacturing rules.

Structure of a Rule Deck Entry

Every rule entry in a DRC deck defines three primary attributes:

  1. Target Layer: The physical layer or layer pair subject to the check.
  2. Geometric Condition: The measurement operation, such as minimum width, edge-to-edge spacing, or via enclosure.
  3. Numerical Threshold: The minimum or maximum allowable physical dimension.

The following example illustrates rule definitions using Magic technology file syntax:

# Representative syntax showing the structure of a Magic DRC
# rule deck entry, not a verbatim SKY130 rule.

drc rules met1 {
    # Minimum width: no met1 shape may be narrower than this
    width  0.14   "met1.1: metal1 minimum width violation"

    # Minimum spacing: two distinct met1 shapes must clear this gap
    spacing met1 met1 0.14 touching_illegal \
        "met1.2: metal1 minimum spacing violation"

    # Width-dependent spacing: wider shapes need more clearance
    spacing met1 met1 0.28 wide_spacing \
        "met1.3: metal1 wide-wire spacing violation"
}

drc rules via1 {
    # Enclosure: the met1/met2 pad must cover the cut by this margin
    enclosure via1 met1 0.06 "via1.1: via1 enclosure by metal1"
    enclosure via1 met2 0.06 "via1.2: via1 enclosure by metal2"
}

The table below breaks down the components of the met1.2 rule entry:

Rule Component Syntax in met1.2 Technical Function
Target Layers met1 met1 Applies between two distinct polygons on layer met1
Geometric Condition spacing ... touching_illegal Measures the euclidean distance between disconnected metal shapes
Numerical Threshold 0.14 Specifies the minimum allowable clearance in micrometers
Error Message "met1.2: metal1 minimum spacing violation" String displayed in layout reports when violations occur

Rule met1.3 enforces a larger threshold ($0.28\ \mu\text{m}$) for wide metal traces. The verification engine checks geometry against both entries to ensure compliance across all wire widths.

Enclosure Rules in the Deck

Via rules evaluate two distinct layers simultaneously:

drc rules via2 {
    enclosure via2 met2 0.08 "via2.1: via2 enclosure by metal2"
}

This statement instructs the engine to verify that the met2 landing pad extends at least $0.08\ \mu\text{m}$ beyond all edges of the via2 contact cut. The rule prevents connectivity failures caused by mask alignment tolerances.

Practice Exercise

Write a representative Magic DRC rule entry that enforces a minimum width of $0.14\ \mu\text{m}$ on the met2 layer with error code met2.1.

Solution
drc rules met2 {
    width  0.14   "met2.1: metal2 minimum width violation"
}

This entry instructs the DRC engine to measure all polygons on met2. If any shape features a width below $0.14\ \mu\text{m}$, the tool reports error met2.1.

You understand machine-readable design rule definitions. Section 6.4 examines special net routing for power, ground, and clock distribution.

← Antenna Rules, Previewed Power and Ground Routing →