Skip to main content

How to Run a Design Rule Check (DRC) for Your PCBs

Author Profile img: The Sierra Circuits Team

By The Sierra Circuits Team

November 30, 2023 | 1 Comments

how-to-run-a-design-rule-check-for-your-pcb-designs

Contents

webinar image

Seminar: Designing for High Speed, Signal Integrity and EMI Without Using Simulation

by Susy Webb

April 18th, 2024
9:00 am to 4:00 pm PT

DRC in PCB designs helps you validate whether your circuit board layout conforms to the predefined constraints such as trace width, clearances, hole sizes, and annular ring dimensions. It identifies design errors that may lead to manufacturing defects and impact the reliability of your board. 

In this article, you will learn the benefits of performing a design rule check and the steps involved in generating a DRC report in Altium Designer, Cadence Allegro PCB Designer, and KiCad

Highlights:

  • DRC detects electrical and physical violations such as power ground shorts, misaligned vias, and missing pins.
  • Running a DRC offers several advantages, including reduction in prototype iteration, efficient use of board space, and ensuring compliance with design requirements.

What is DRC in PCB design?

DRC is a comprehensive way of assessing your circuit board layout in terms of electrical and physical aspects of your design using an EDA tool

Layout design tools such as Altium Designer, Cadence Allegro PCB Designer, and KiCad feature a built-in design rule checker. You can customize the rules based on the design requirements. Running a DRC will only highlight the issues; it will not correct them. As a designer, you need to assess the violation and decide if modifications are necessary. 

5 reasons why you should run a design rule check for your PCB designs

By running a DRC, you can instantly check if your design adheres to the required standards. It will allow you to proactively address the layout issues and ensure manufacturability.

5-Reasons-to-Run-a-DRC-for-your-PCB-design.jpg
5 reasons to run a DRC for your PCB Designs

1. Reduces prototype iterations and avoids expensive rework

 Addressing design flaws early in the design phase using DRC helps avoid expensive and time-consuming prototype changes. This makes the product development process faster, reducing the time-to-market and overall costs.

2. Optimizes the use of board space

DRC aids in efficient component placement and routing optimization, guaranteeing effective utilization of available board space. 

3. Guarantees compliance with design requirements and regulatory standards

Design rule check ensures that your design adheres to specified requirements and regulatory standards such as IPC-6012. It serves as a virtual quality control, notifying any deviations from the established design guidelines.

4. Assures manufacturability of your circuit board

Running a DRC ensures that your design aligns with the limitations and capabilities of your CM. This enables you to get the design right the first time. It also paves the way for a seamless transition between prototype and manufacturing stages. 

5. Ensures signal integrity by maintaining optimum clearance between copper features

 DRC helps maintain signal integrity by imposing appropriate spacing between copper features, reducing the risk of signal integrity issues such as EMI and crosstalk.

 

Design for Manufacturing Handbook - Cover Image

Design for Manufacturing Handbook

10 Chapters - 40 Pages - 45 Minute Read
What's Inside:
  • Annular rings: avoid drill breakouts
  • Vias: optimize your design
  • Trace width and space: follow the best practices
  • Solder mask and silkscreen: get the must-knows

 

How to run a design rule check in Altium Designer

To run a DRC, you need to configure the design rules first. You can do this by using Altium Designer’s PCB Editor (user interface). These rules make up a set of instructions that the PCB editor needs to follow. Furthermore, these rules can be continuously monitored by the online design rule checker. This application runs in the background and flags any violations in real-time.

Here’s an infographic that summarizes the steps to run a DRC in Altium Designer.

how-to-set-up-and-run-drc-in-altium-designer.jpg
How to setup and run DRC in Altium Designer

Configuring design rules in Altium Designer

Follow these steps to configure design rules in Altium Designer:

Step 1: Navigate to the Design menu.

Step 2: Select the Rules option.

Step 3: Click on Rules, and then the PCB Rules and Constraints Editor window opens. 

Here, you can create and modify rules related to different design aspects, such as clearance, routing, and impedance.

pcb-rules-and-constraints-editor-in-altium-designer.jpg PCB rules and constraint editor in Altium Designer

Let’s look at the design rule categories and their DRC parameters in Altium Designer:

Design rule category DRC parameters
Electrical Clearance, short-circuit, un-routed net, unconnected pin, and modified polygon.
Routing Width, routing topology, routing priority, routing layers, routing corners, routing via style, fanout control, and differential pairs routing.
SMT SMD to corner, SMD to plane, SMD neck-down, and​ SMD entry.
Mask Solder mask expansion and paste mask expansion.
Plane Power plane connect style, power plane clearance, and polygon connect style.
Testpoint Fabrication testpoint style, fabrication testpoint usage, assembly testpoint style, and assembly testpoint usage.
Manufacturing Minimum annular ring, acute angle, hole size, layer pairs, hole to hole clearance, minimum solder mask sliver, silk to solder mask clearance, silk to silk clearance, net antennae, and board outline clearance.
High speedParallel segment, length, matched lengths, daisy chain stub length, vias under smd, maximum via count, and max via stub length (back drilling).
Placement Room definition, component clearance, component orientations, permitted layers, nets to ignore, and height.
Signal integritySignal stimulus, overshoot - falling edge, overshoot - rising edge, undershoot - falling edge, undershoot - rising edge, impedance, signal top value, signal base value, flight time - rising edge, flight time - falling edge, slope - rising edge, slope - falling edge, and supply nets.

Once the design rules have been established,  follow these steps to run a design rule check:

Step 1: Navigate to the Tools menu.

Step 2: Select Design Rule Checker.

Step 3: In the Design Rule Checker window, click on Run Design Rule Check to run the test.

running-design-rule-check-in-altium-designer.jpg Running design rule check in Altium Designer

The design rule checker window is broadly categorized into two main areas:

  1. Online design rule check
  2. Batch design rule check

The online design rule-checking process operates in the background, providing real-time monitoring and detection of design rule violations. It promptly identifies and flags any violations. While routing, it can even automatically prevent such errors from occurring.

Meanwhile, the batch DRC feature enables you to initiate a manual verification at any point. To enable this feature, you need to check the respective box in the Design Rule Checker dialog, as shown below. 

enable-batch-DRC-in-design-rules.jpg
Enabling Batch DRC in the design rule checker dialog box

 

tool-image

PCB DESIGN TOOL

Trace Width, Current Capacity and Temperature Rise Calculator

Calc TRY TOOL

 

Generating a DRC report in Altium Designer

Step 1: Click on the Report Options tab within the Design Rule Checker dialog.

Step 2: Check Create Report File and then click on Run Design Rule Check.

drc-reports-in-altium-designer.jpg
Generating DRC reports in Altium Designer

The report provides a comprehensive list of rules that were subjected to testing during the batch-checking process in accordance with the specifications outlined in the Design Rule Checker dialog.

How to run a DRC in Cadence® Allegro® PCB designer

Cadence Allegro PCB Designer provides a comprehensive solution for design auditing. It enables you to establish customized rules and perform thorough DRC to ensure an error-free PCB design.

The infographic below shows the steps to run DRC in Cadence Allegro PCB Designer.

how-to-configure-drc-cadence-allegro.jpg
How to configure DRC in Cadence Allegro PCB Design

Configuring design rules in Cadence Allegro PCB Designer

Follow these steps to set up your design rules in Cadence Allegro PCB Designer:

Step 1: Navigate to the Setup menu and select Constraints

Step 2: Choose Modes to open the Analysis Modes dialog. Here, you can enable/disable constraints according to your project requirements. 

setup-drc-in-allegro.jpg
Setting up DRCs in Cadence Allegro PCB Designer

The analysis modes settings window provides you with a comprehensive display of standard rules that are categorized based on their specific functionalities. This allows you to enable all the rules according to your project requirements. 

Let’s look at the standard design rule categories available in the analysis mode:

Design rule category DRC parameters
ElectricalStub length/net schedule, max via count, match via count, max exposed length, propagation delay, relative propagation delay, max parallel, impedance, total etch length, all differential pair checks and layer sets.
PhysicalMin neck width, max line width, allow etch on subclass, allow T junctions on subclass, min blind/buried via stagger, max blind/buried via stagger, pad-pad direct connect, and vialist DRC.
SpacingEnable/disable different spacing constraints between different attributes such as line, thru pin, SMD pin, test pin, thru via, test via, bond finger, hole, and min BB via gap.
Same net spacingCovers all the relevant spacing checks between attributes such as line, thru pin, SMD pin, test pin, thru via, test via, bond finger, hole, and min BB via gap.
AssemblyWire to wire, wire to wire end, wire to pin, wire to bond finger, min. bonding wire length, max. bonding wire length, wire to die edge angle, bond wire diameter, and bond finger to component.
Design for fabricationOutline, mask, annular ring, copper features, copper spacing, and silkscreen.
Design for assemblyOutline, pkg to pkg spacing, spacing, and paste mask.
Design for testOutline, mask and silkscreen, spacing, and probe.

Next, you need to set different constraint values for electrical, physical, and spacing constraints. Here, you can set allowable maximum and minimum values for different elements. 

Spacing constraint

Spacing constraints refer to the rules that dictate the maximum and minimum spacing required between elements on different nets. It is the distance that should be maintained between various components or traces on the circuit board. Spacing constraints help prevent issues such as short circuits, crosstalk, and EMI.

spacing-constrains-in-allegro.jpg Setting up spacing constraints in Cadence Allegro PCB Designer

Physical constraint 

It establishes rules that govern the creation of interconnections of an individual net.

They define specific limitations to ensure:

  • Consistent line widths across different areas and layers
  • Permissible connections on a specific layer
  • Acceptable vias for use with a specific net

physical-constrains-in-allegro.jpg Setting up physical constraints in Cadence Allegro PCB Designer

Electrical constraints

Electrical constraint sets consist of rules that govern the electrical behavior of components such as nets, buses, and differential pairs. They provide guidelines on how signals should propagate through different paths, ensuring that they arrive at their intended destinations without propagation delay

electrical-constrains-in-allegro.jpg
Setting up electrical constraints in Cadence Allegro PCB Designer

 

tool-image

PCB DESIGN TOOL

Impedance Calculator

Calc TRY TOOL

 

Generating DRC report in Cadence Allegro PCB Designer

Follow these steps to generate DRC in Cadence Allegro PCB Designer

To DRC check in Cadence Allegro PCB Designer:

Step 1: Navigate to the main menu.

Step 2: Select Display and then Status

Step 3: Click on update DRC to run standard design rule checks.

run-drc-check-in-allegro.jpg
Running DRC check in Cadence Allegro PCB Designer

Step 4: Navigate to the Export menu in Cadence Allegro PCB Designer.

Step 5: Select Quick Report and choose Design Rule Check to view the DRC report.

allegro-drc-quick-report.jpg
DRC quick report generated in Cadence Allegro PCB Designer

The resulting Design Rule Check (DRC) report conveniently appears in a new tab, facilitating easy access and review.

Steps to run a DRC in KiCad

Design rules in KiCad are responsible for controlling the behavior of the interactive router, managing the filling of copper zones, and ensuring the accuracy of the design rule checker. You can modify design rules at any time. However, it is advisable to establish all known design rules at the outset of the board design process.

KiCad’s design rule checker hel

setting-design-rules-and-running-a-drc-in-kicad.jpg
Running a DRC in KiCad

ps you to ensure that the PCB complies with the requirements set in the Board Setup dialog. It also verifies that all pads are connected in accordance with the netlist or schematic. 

The infographic below summarizes the steps to set up and run DRC in KiCad:

 

 

Configuring design rules in KiCad

Step 1: Go to File.

Step 2: Select Board Setup.

Step 3: Choose Design Rules to access the complete list of design rules.

You can now configure the design rules according to your project requirements.

drc-setup-in-kicad.jpg
Setting up DRCs in KiCad

The design rules dialog provides you with a comprehensive display of standard rules.  These rules are categorized based on their specific functionalities. Let’s look at the design rules available in KiCad:

Constraints

The design rules for constraints include minimum clearance required for copper, holes, microvia, silkscreen, arc/circle approximated by segments, zone fill strategy, and length tuning. 

constraints-setting-in-kicad.jpg
Setting up constraints in KiCad

Net classes

The net classes rules section enables you to set up specific routing and clearance regulations for different classes of nets. Every class can be assigned specific values for copper clearance, track width, microvia, via, and differential pair sizes.

net-classes-in-kicad.jpg
Setting up net classes in KiCad

Pre-defined sizes

The pre-defined sizes section enables you to define the preferred dimensions for tracks and vias that are readily accessible for use while routing.

pre-defined-sets-in-kicad.jpg
Setting up pre-defined sets in KiCad

Custom rules

The custom rules section contains a text editor for creating design rules using the custom rules language. These rules are meant to address requirements that aren’t covered by the fundamental constraints or net class settings.

custom-rules-in-kicad.jpg
Setting up custom rules in KiCad

Violation severity

The violation severity section allows you to change the level of seriousness associated with each sort of design rule evaluation. You can specify whether a rule should result in an error marker, a warning marker, or to be ignored.

violation-severity-in-kicad.jpg
Setting up violation severity in KiCad

 

KiCad Design Guide - Cover Image

KiCad Design Guide

8 Chapters - 98 Pages - 110 Minute Read
What's Inside:
  • Creating a component symbol library
  • Setting up board parameters and rules
  • How to route differential pairs
  • How to place of components

 

Generating a design rule check report in KiCad

Step 1: Navigate to the Inspect.

Step 2: Choose Design Rules Checker and click on DRC.

running-drc-in-kicad.jpg
Running DRC in KiCad

If your design has any discrepancies, it will be displayed as shown above.

The top section of the DRC Control window comprises a set of options that are responsible for regulating the behavior of the design rule checker:

Refill all zones before performing DRC: When this feature is enabled, zones will be automatically refilled each time the design rule checker is initiated. Disabling this option could lead to inaccurate DRC outcomes if zones haven’t been manually refilled.

Report all errors for each track: This option reports all clearance errors per track segment while disabling it only reports the first error. This option may slow down the design rule checker.

Test for parity between PCB and schematic: When enabled, the design rule checker checks both PCB design rules and discrepancies between the schematic and PCB. 

Check out Sierra Circuits’ KiCad Quote Plugin to get an instant quote for your PCBs without exiting the KiCad UI.

Key takeaways

  • To run a DRC, you need to first configure the design rules in your EDA.
  • Altium Designer, Cadence Allegro PCB Designer, and KiCad offer tools for configuring and managing design rules, allowing for efficient categorization and customization based on project requirements.

Knowing how to effectively navigate and utilize DRC procedures in EDA tools helps you to identify and rectify potential design flaws early in the design phase. This reduces prototype iterations and ensures a quick transition to the PCB manufacturing stage. 

Need assistance in designing your circuit board? Post your questions in the SierraConnect forum. We will be pleased to assist you!

sierra-connect-banner.jpg

post a question
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Talk to a Sierra Circuits PCB Expert today

24 hours a day, 7 days a week.

Call us: +1 (800) 763-7503
Book a Meeting with a Sales Rep
Email us: through our Customer Care form