回路図とPCB上のネットを強調表示するための色の使用
Parent page: Working Between the Schematic and the Board
As the design builds up it quickly becomes dense and detailed - the schematic busy with wiring and the board a maze of connection lines and routed nets. To help bring clarity and visibility, the designer can apply color to the schematic wiring, PCB connection lines, and routing.
The ability to selectively override the color of specific nets is known as Net Color Override. Color can be applied to schematic nets and those color settings transferred to the PCB, or color settings can be applied directly in the PCB editor.
The image below shows a complex high-speed design using net color to help the designer easily identify groups of critical nets. Further down the page there is an image that shows the same board with and without color on the routed nets.
Applying Color to the Schematic Nets
A highlight color can be applied to a net or a bus in the schematic editor using the commands in the View » Set Net Colors sub-menu, as shown in the image below.
Click on a pin, wire, bus or net identifier (net label, sheet entry, port, power port or offsheet connector) to apply the selected color to that net (or all the nets in a bus). The command remains active after clicking on the first net, ready to color subsequent nets in that same color, if required.
When a color is applied to a net or a bus, it overrides any previous color setting. Note that net color settings cannot be undone, to remove a color setting use the Clear Net Color command, or the Clear All Net Colors command (View » Set Net Colors sub-menu).
The color is automatically applied to all sections of the net, on all schematic sheets in the project. This occurs automatically when the background compiler updates the connectivity of each sheet.
Where are the Color Settings for the Schematic Stored?
Because a net is a compiled object, determined from the current arrangement of wiring and net identifiers, the color setting for a net is not stored with the various objects placed on the sheets. The color settings are actually stored in the project file as a net-level setting, and are applied on each schematic sheet after it is opened and the background compiler has compiled that sheet.
► Learn more about Creating Connectivity.
Transferring the Colors Between the Schematic and the PCB
Net colors can be transferred between the schematic and PCB editors (in both directions), via the Design » Update command.
If the colors are not transferring, check that the following options are enabled in the Options for Project dialog:
- Comparator tab: Differences Associated with Nets - Changed Net Colors
- ECO Generation tab: Modification Associated with Nets - Change Net Colors
Applying Color to the PCB Nets
In the PCB editor a net has two representations; either as an unrouted connection line, or as a routed net defined by a series of track segments.
Net colors are always applied to the connection lines. Routed nets can be displayed either in layer color, or net color. The display of net colors in the PCB editor can be controlled at the individual net-level and also at the editor-level, more on this below.
Changing the Net Color in the PCB editor
When the design is transferred from the schematic into the PCB workspace, default color settings are applied to all nets. All of the net connection lines are assigned the default Connection Lines color, as defined in the System Colors section of the Layers & Colors tab of the View Configuration panel (L shortcut). Net colors defined in the schematic will override this default.
Alternatively, the net color can be selectively defined directly in the PCB panel, set to Nets mode:
- To change the color of one or multiple nets, select the required nets in the panel, then right-click on a selected net and choose the Change Net Color command, as shown below, or
- For an individual net, double-click the net name in the PCB panel to open the Edit Net dialog, where you can edit the connection line color.
Displaying the Net Color on Routed Nets
The default behavior for routed nets is to display them using the color of the layer that the routing objects have been placed on. You can also use the net color for routed nets, by enabling the Net Override Color feature for the required nets, and also for the PCB editor.
To use the Net Color Override feature:
- Apply the required color to the net(s) - Right-click on the net (or selected nets) in the PCB panel and use the Change Net Color command, as discussed earlier on this page.
- Enable Color Override for the net(s) - color override is enabled for each net using the checkbox next to its name in the PCB panel, as shown for the net
YOUT
in the image above. The checkboxes can be toggled for multiple selected nets via the Right-click » Display Override » Selected On/Off commands. - Configure the Color Override options - the net color overrides the layer color in accordance with the Color Override settings configured in the PCB Editor - Board Insight Color Overrides page of the Preferences dialog, as discussed below.
- Enable the Net Color Override feature - press F5 to globally toggle the Net Color Override feature on and off, or use the button in the View Options tab of the View Configuration panel.
How Color Override is Displayed
The PCB editor can display the override color in a variety of ways, including as a solid override of the chosen color, or in a number of different override patterns. This behavior is configured in the PCB Editor - Board Insight Color Overrides page of the Preferences dialog.
The Base Pattern option determines how the routing is displayed when you are zoomed in. The pattern options are included so that you can still see both the routing layer color and the override color. This is useful if you are tracing a net that is moving through the layers, and you also need to keep track of which layer it is currently on.
As you zoom out, this display behavior can be:
- maintained as you zoom out (Base Pattern Scales), or
- the pattern can fade away to restore the layer color (Layer Color Dominates), or
- the override color can strengthen (Override Color Dominates).
Each of the Zoom Out Behavior options is useful in a different situation.
How each net that has the Net Color Override checkbox enabled is displayed in the workspace, depends on the current Color Override settings. The image above shows an example of this.
- Zoomed in - any net with the Override Color checkbox enabled will display in the chosen Base Pattern. In the example image above it is a checkerboard mix of layer color and net color.
- Zoomed out - the Zoom Out Behavior in the image above is for the override (net) color to dominate, as shown in the smaller image on the right.
The image below shows how well multiple sets of critical nets in a high-speed PCB design stand out once they have been identified using different colors. In this example the Zoom Out Behavior is set to Override Color Dominates. Hover the cursor over the image to show the same layer with Net Color Override disabled.