Research Careers Contact

GlossaryDesign rule check

Design rule check

A design rule check (DRC) is a software check of a circuit board layout against a set of geometric and electrical rules loaded in the layout tool, such as minimum trace width, clearance, annular ring, drill size and copper to edge. It flags every place where the drawn board breaks a rule.

How it works

The layout tool stores rules by layer, by net class and by area. A default rule sets the minimum trace and gap for the whole board. Net classes override it for groups of nets, such as wider traces for motor power or a set gap and width for a differential pair. Area rules tighten or relax limits in one region, for example under a fine-pitch BGA where the shop allows a smaller gap.

When DRC runs, it walks every copper shape, hole, pad and outline and measures it against the rules that apply there. It reports violations with a location and the rule that failed: a gap below minimum, an unconnected net, a via too close to a pad, a footprint courtyard overlapping its neighbor, copper too close to the board edge, or a silkscreen line on an exposed pad.

Most tools also run a connectivity check as part of DRC. It compares the copper to the netlist from the schematic and lists nets that are unrouted or shorted. That is how a layout that looks finished still shows an open connection.

DRC vs DFM

DRC only knows the rules someone loaded into the tool. Design for manufacturing (DFM) asks whether a specific shop can build the board, including process limits a layout tool does not model, such as plating in small holes, solder mask web on a given finish, or how the board sits in a panel. A clean DRC with rules copied from the shop is a strong start for DFM. A clean DRC with default rules says little about whether the board can be built.

Why it matters

If the rules in the tool are looser than the shop, DRC passes a board that cannot be built. The shop then rejects the files or builds them on a more expensive process, and the order slips. If the rules are tighter than they need to be, DRC flags work the shop can build, and routing takes longer than it should.

DRC also catches mistakes no one meant to make: a trace nudged across a gap during a late edit, a via dropped on a pad, an unrouted net left from a part swap. Those errors are easy to fix in the layout and expensive to find in a built board.

How to get it right

  • Load the shop's rule set. Set trace, gap, drill, ring and edge rules from the fabricator and assembler you plan to use. Save the rule set with the project.
  • Use net classes for intent. Put power, high-speed and high-voltage nets in their own classes, so DRC enforces widths, gaps and creepage and clearance where they matter.
  • Clear every violation or waive it in writing. An open violation is a defect unless there is a reason and the shop accepts it. Do not release files with open errors.
  • Rerun after every change. A moved via, a part swap or an autorouting pass can break a rule that was clean an hour earlier.

DRC in robotics and drone hardware

A robot joint controller carries high-current motor phases next to low-level encoder and current-sense signals. DRC on that board needs at least three classes: wide traces and larger gaps for the phases, normal rules for logic, and tight width and gap rules for any pair that leaves the board on a cable. If the board also carries a high-voltage bus, its class sets the spacing the safety standard requires.

Drone flight controllers are small, so the default rule set often sits close to the shop's limits. A DRC with the shop's real numbers loaded is the fastest way to know whether the dense area around the processor and IMU fits a standard process.

Learn more