Tutorial - Setting Up the Design Rules in Altium Designer

Main pages: Defining, Scoping & Managing PCB Design Rules, PCB Design Rule Types

Do I have the PCB Rules and Constraints Editor dialog?

Altium Designer suggests two distinct approaches to design constraint management: the PCB Rule and Constraints Editor dialog and the Constraint Manager. The Constraint Manager is available in a PCB design project only if the Constraint Management option was enabled in the Create Project dialog when this project was created.

Note that this tutorial page applies only if the Constraint Manager was not enabled for the tutorial project and, therefore, is not available for it. To quickly check if the Constraint Manager is available for the tutorial project, open the Design main menu from the schematic or PCB editor and check for the Constraint Manager command. If the Constraint Manager is available, skip this page and go to the next page: Placing Components and Routing the Board.

Altium Designer's PCB editor is a rules-driven environment. With a well-defined set of design rules, you can successfully complete board designs with varying and often stringent design requirements.

Design rules are configured in the PCB Rules and Constraints Editor dialog. The rules are divided into categories, which are then further divided into design rule types.

The constraints that are needed will depend on the nature of your design and manufacturing capabilities. There is no specific set of constraints that suits every design.

Defining the Width Design Rules

The width of the routing is controlled by the applicable Width design rule, which is automatically selected when you start routing a net.

  • When you are configuring the rules, the basic approach is to set the lowest priority rule to target the largest number of nets, and then add higher-priority rules to target nets with special width requirements, such as power nets. There is no issue if a net is targeted by multiple rules because Altium Designer always looks for and only applies the highest priority rule. For example, the tutorial design includes a number of signal nets and two power nets. The default routing width rule can be configured at 0.25 mm for the signal nets. This rule will target all nets in the design by setting the rule scope to All. Even though a scope of All also targets the power nets, these can be specifically targeted by adding a second, higher-priority rule, with a scope of (InNet('12V') OR InNet('GND')). The image below shows the summary of these two rules.

    Two Width design rules have been defined. The lowest priority rule targets all nets, and the higher priority rule targets objects in the 12V net or the GND net.
    Two Width design rules have been defined. The lowest priority rule targets all nets, and the higher priority rule targets objects in the 12V net or the GND net.

  • A Width design rule includes minimum, maximum, and preferred settings. Use these if you prefer to have some flexibility during routing.

  • Avoid using the minimum and maximum settings to define a single constraint value to suit all sizes required in the entire design. Doing this means you forgo the ability to get Altium Designer to monitor that each design object is appropriately sized for its task.

Defining the Width Design Rule for the Signal Nets 

  1. With the PCB as the active document, open the PCB Rules and Constraints Editor dialog by selecting the Design » Rules command from the main menus i.

  2. Each rules category is displayed under the Design Rules structure (left-hand side) of the dialog. Double-click on the Routing category entry to expand it and see the related routing rules, then double-click on the Width rule type entry to display the currently defined width rules.

    Javascript ID: Tutorial_Dlg_PCBRulesAndConstraintsEditor_AD24
  3. Click once on the existing Width rule to select it. When you click on the rule, the right-hand side of the dialog displays the settings for that rule including the rule's Where The Object Matches in the top section (also referred to as the rule's scope – what you want this rule to target) with the rule's Constraints below that.

    The default Width design rule
    The default Width design rule

  4. Since this rule is to target the majority of nets in the design (the signal nets), confirm that the Where The Object Matches setting is set to All as shown in the image above.

  5. Set the constraints for the rule by entering the following values:

    • Min Width = 0.2

    • Preferred Width = 0.25

    • Max Width = 0.25

    It is not necessary to enter the measurement units because the default measurement units will be added to the entered values automatically.

  6. The rule is now defined. Click Apply to save it and keep the dialog open.

Defining the Width Design Rule for the Power Nets

The next step is to add another design rule to specify the routing width for the power nets.

  1. With the existing Width rule selected in the Design Rules tree on the left of the PCB Rules and Constraints Editor dialog, right-click and select New Rule to add a new Width rule.

  2. A new rule named Width_1 appears. Click on the new rule in the Design Rules tree to configure its properties.

  3. Click in the Name field and enter the name Width_Power in the field.

  4. Set the rule scope so the rule targets objects that belong to the 12V or GND net. We will use the Query Builder dialog to build the query for the scope. To do this (the process is also shown in the video below):

    1. Click in the drop-down in the Where The Object Matches region and select Custom Query from the list. The dialog will change to include an edit box where the custom query is entered.

    2. Click the  button to open the Query Builder dialog.

    3. Click the Add first condition text, select Belongs to Net, then set the Condition Value to 12V.

    4. Click the Add another condition text, select Belongs to Net, then set the Condition Value to GND.

    5. The AND operator will have appeared between the two condition statements. Click on it and select OR from the drop-down.

    6. Click the OK button to accept the query and return to the PCB Rules and Constraints Editor dialog. The rule scope will change to (InNet('12V') OR InNet('GND')).

  5. Set the constraints for the rule to allow power net routing widths in the range of 0.25 to 0.5 mm. To do this, enter the following values:

    • Min Width = 0.25

    • Preferred Width = 0.5

    • Max Width = 0.5

  6. Click Apply to save the rules and keep the dialog open.

Defining the Clearance Design Rule

The next step is to define how close electrical objects belonging to different nets can be to each other. This requirement is handled by the Clearance design rule. For the tutorial, a clearance of 0.25 mm between all objects is suitable.

  1. Expand the Electrical category in the tree of design rules, then expand the Clearance rule type.

  2. Click to select the existing rule of this type.

    Note that this rule has two query fields: Where The First Object Matches and Where The Second Object Matches. That is because this is a binary rule; it is a rule that applies between two objects. The rules engine checks each object targeted by the Where The First Object Matches setting and checks it against the objects targeted by the Where The Second Object Matches setting to confirm that they satisfy the specified Constraints settings.

    For this design, this rule will be configured to define a single clearance between All objects.

     
     
     
     
     

  3. In the Constraints region of the dialog, set the Minimum Clearance to 0.25.

     
     
     
     
     

    Note that entering a value into the Minimum Clearance field will automatically apply that value to all of the fields in the grid region at the bottom of the dialog. You only need to edit in the grid region when you need to define a clearance based on the object type.

  4. Click Apply to save the rule and keep the dialog open.

Defining the Routing Via Style

As you route and change layers, a via is automatically added. In this situation, the via properties are defined by the applicable Routing Via Style design rule.

  1. Expand the Routing category in the tree of design rules then expand the Routing Via Style rule type and select the existing design rule of this type.

  2. Set the constraints for the rule to set the allowed via diameter to 1 mm and the allowed via hole size to 0.6 mm. In this case, we will set all fields (minimum, maximum, and preferred) to the same size:

    • Via Diameter: Minimum, Maximum, Preferred = 1

    • Via Hole Size: Minimum, Maximum, Preferred = 0.6

    Since it is highly likely that the power nets can be routed on a single side of the board, it is not necessary to define a routing via style rule for signal nets and another routing via style rule for power nets.

  3. Click OK to save the changes and close the PCB Rules and Constraints Editor dialog.

  4. Save the PCB document locally by right-clicking its entry in the Projects panel and selecting Save from the context menu.

Defining the design rules is now complete. The next step is placing the components and routing the board.

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
참고

Altium 제품에 접근할 수 있는 레벨에 따라 사용할 수 있는 기능이 달라집니다. 다양한 레벨의 Altium Designer Software Subscription에 포함된 기능과 Altium 365 플랫폼에서 제공하는 애플리케이션을 통해 제공되는 기능을 비교해보세요.

소프트웨어에서 논의된 기능을 찾을 수 없는 경우, Altium 영업팀에 문의하여 자세한 정보를 확인해주세요.

콘텐츠