cuprio

What is a design rule check (DRC)?

A design rule check (DRC) is an automated scan of a PCB layout that compares every piece of copper, every hole and the board outline against a set of rules: minimum spacing between nets, trace widths, hole sizes, annular rings, distance to the board edge, and whether every connection in the netlist is actually routed. A clean DRC is the last gate before generating Gerber files, because the fab will either reject a violation or build it and give you a faulty board.

  • 3 min read
  • 4 sections
  • 3 sources

What does a DRC check?

KiCad's documentation groups its checks in a way that applies to most tools. Electrical checks find items shorting two nets, tracks crossing, clearance and creepage violations, vias connected on only one layer, track ends left unconnected and pads with too few thermal relief spokes. Manufacturing checks cover copper-to-edge clearance, hole-to-copper clearance, holes too close to other holes, co-located holes and track widths outside the allowed range. Other checks flag items placed inside a keep-out zone, zones of different nets intersecting, isolated islands of copper and overlapping footprint courtyards.

Two more results sit beside the rule violations: unconnected items, meaning ratsnest lines still unrouted, and, when the option is enabled, parity between the PCB and the schematic, which catches footprints missing from one side or nets that differ. KiCad lets each check be set to error, warning or ignore, and lets individual violations be excluded.

Where do the rule values come from?

Two places. The floor is the manufacturer's published capability. JLCPCB, for example, lists 0.10 mm trace and space for 1 oz two-layer boards and 0.09 mm for multilayer, a minimum via of 0.15 mm hole and 0.25 mm diameter (0.2 mm hole preferred), annular rings of 0.18 mm absolute minimum on two-layer boards, and copper at least 0.2 mm from a routed edge or 0.4 mm from a V-cut. PCBWay's standard service lists 0.1 mm trace and space and a 0.15 mm minimum drill.

On top of that come the design's own needs: wider traces and larger gaps for power and high-voltage nets set through net classes, impedance-controlled widths, and spacing for creepage and clearance. Setting rules at the absolute fab minimum everywhere passes DRC but lowers yield; most designers use the fab's recommended values and drop to the minimum only where a part needs it.

How do you run DRC in KiCad?

  1. Set the rules

    Enter the fab's limits in Board Setup (constraints and net classes) or load a rule file, and add custom rules for special nets.

  2. Refill zones

    Keep 'Refill all zones before performing DRC' enabled; stale copper pours give wrong results.

  3. Include the schematic

    Enable 'Test for parity between PCB and schematic' so footprint and net differences are reported.

  4. Run and review

    Open Inspect, Design Rules Checker. Click each violation to jump to it; use the clearance resolution tool to see which rule applied.

  5. Fix, do not hide

    Exclude a violation only when it is intentional, such as a net tie, and save the report with the fabrication files.

How is DRC different from ERC?

An electrical rule check runs on the schematic and looks at logic: an output driving another output, an unpowered power pin, an unconnected input. DRC runs on the physical board and looks at geometry. A board can pass DRC perfectly and still be wrong if the schematic or a footprint is wrong, because DRC only checks the layout against the netlist it was given.

Cuprio checks the routed copper against the chosen manufacturer's design rules, with JLCPCB and PCBWay presets; see how Cuprio designs a board.

Sources

  1. KiCad 9.0 documentation: PCB Editor, Design rules checking

    DRC options, list of electrical, manufacturing and miscellaneous checks, severities, exclusions, schematic parity

    docs.kicad.org
  2. JLCPCB: PCB Manufacturing Capabilities

    Trace and space, via, annular ring and board-edge clearance limits

    jlcpcb.com
  3. PCBWay: PCB Capabilities

    Standard trace and space and minimum drill

    pcbway.com
Close view of the two-wheel robot controller, a board designed in Cuprio

Be first in when we open.

Start with 600 welcome credits and get 30% off your first 12 months.