> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deeppcb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Net Classes, Layers, Net Types and Constraints in DeepPCB

> Use the Board Setup dialog to review and refine net classes, layer rules, net types, decoupling capacitor rules, and differential pairs before you run a placement or routing job.

Your board file already carries most of the rules the engine needs — net classes, clearances, track widths, layer stack. **Board Setup** is where you review what DeepPCB read from your file, correct anything it got wrong, and add the design intent that no export format captures. A few minutes here is usually the highest-leverage thing you can do before starting a run.

To open it, switch the board editor header from **PCB** to **Setup**. It has five tabs.

![The board editor header with the Setup, SCH and PCB view switch](https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/board-setup/entry-point.png?fit=max\&auto=format\&n=X7Hy0HgSSYrG7K_B\&q=85\&s=4fba02319d42a1ae1e940f651fead530)

Setup sits next to PCB in the board editor header.

This page is the reference: what each tab controls, and what the values mean. Jump to a tab below, or go straight to its walkthrough, which has recordings of the dialogs in use.

> [card] [Net Classes](#net-classes)
>
> Clearance, track widths, and via definition per group of nets.

> [card] [Layers](#layers)
>
> Layer type, and which nets each layer accepts.

> [card] [Net Types](#net-types)
>
> Classify nets as power, ground, analog, or by speed.

> [card] [Decoupling Capacitors](#decoupling-capacitors)
>
> Which capacitors support which pins, and in what order.

> [card] [Differential Pairs](#differential-pairs)
>
> Paired nets, intra-pair gap, and pin-to-pin mapping.

> [!NOTE]
>
> Board Setup edits the board itself, so your changes apply to the next run you start — including a **Resume**. Revisions already generated are not retroactively changed.

> [!WARNING]
>
> While a job is running, Board Setup is read-only. Stop the job if you need to change something, make your edits, then resume — the new setup is picked up on the next run.

## Net Classes

A net class groups nets that share electrical rules, so you set them once rather than net by net. The tab lists every class on the board with its **Name**, **Clearance**, **Track Width**, **Via Definition**, and **Assigned Nets**.

| Field | What it controls |
| - | - |
| **Net Class Name** | The identifier for this group of nets. |
| **Clearance** | The minimum distance items of other nets must keep from items of this net class. |
| **Track Widths** | The trace width for nets in this class. You can set a single width, or a different width per layer. |
| **Via Definition** | The via padstack used when nets in this class change layer — see [Via Definitions](https://docs.deeppcb.com/tutorials/how-to/via-definitions.md). |
| **Assigned Nets** | Move nets between **Nets in this Net Class** and **Unassigned Nets** to change membership. |

> [!TIP]
>
> Per-layer track widths are worth setting when your stack-up has thinner inner layers. A single global width forces the router to use the most conservative value everywhere, which costs you routing space on the layers that could take a wider trace.

To read, add and edit classes step by step, see [Net Classes](https://docs.deeppcb.com/tutorials/how-to/net-classes.md).

## Layers

A layer's type decides what the engine does with it: **Signal** layers carry tracks, **Power** layers are kept clear of signal routing so a plane can own the copper. Each layer also carries a preferred **Routing Direction**, the **Planes** already on it, and the nets it will and will not accept.

Moving nets between **Allowed Nets** and **Forbidden Nets** keeps a net off a layer entirely — useful for keeping a noisy or high-current net away from a layer you want quiet. This applies to **Signal** layers only, since DeepPCB does not route traces on **Power** layers.

> [!WARNING]
>
> Forbidding a net from too many layers can leave the engine with no viable path, which shows up as an unrouted connection rather than an error. If completion drops after you restrict layers, relax the restriction on your least critical nets first.

To change a layer's type and set the per-layer options, see [Set Layers to Power](https://docs.deeppcb.com/tutorials/how-to/set-layers-to-power.md).

## Net Types

Net types tell the engine *what a net is for*, which is something no netlist states outright. DeepPCB classifies your nets automatically when the board is created, and this tab is where you check and correct that classification.

| Category | Typical contents |
| - | - |
| **Analog** | Signals that need isolation from digital switching noise |
| **High Speed** | Fast digital signals |
| **Medium Speed** | Mid-rate digital signals |
| **Low Speed** | Slow control and housekeeping signals |
| **Power** | Power distribution nets |
| **Ground** | Ground reference nets |
| **Unknown** | Nets that could not be classified |

Nets left in **Unknown** are the ones worth your attention. The engine has no design intent to work from for those, so it treats them as ordinary signals — which is the wrong call for a sensitive analog line or a high-current rail.

> [!TIP]
>
> Attaching your schematic when you upload the board improves net type classification accuracy. See [Prepare Board File](https://docs.deeppcb.com/guides/prepare-board-file.md) for which schematic formats are accepted.

To reclassify nets, see [Net Types](https://docs.deeppcb.com/tutorials/how-to/net-types.md).

## Decoupling Capacitors

Decoupling capacitors only work if they sit close to the pin they serve, and in the right order when several support the same pin. This tab shows the decoupling relationships DeepPCB extracted from your board.

Each entry is a **decoupling chain**: the pin being supported, and the capacitors supporting it. A chain with more than one level is ordered — level 1 is the capacitor that should sit closest to the pin, level 2 next, and so on.

### Uploading a Rules File

Click **Upload Rules** and provide a `.json` rules file to replace the extracted rules wholesale. Use this when you already maintain decoupling rules outside DeepPCB. Pins are named `component_id-pin_id` — for example `C12-1` — and the file is validated against your board before it is accepted, so a typo in a component or pin name is reported rather than silently ignored.

> [!NOTE]
>
> A rules file you upload replaces the automatically extracted rules rather than merging with them. Include every rule you want applied, not only the ones you are changing.

To review, add and delete individual rules, see [Decoupling Rules](https://docs.deeppcb.com/tutorials/how-to/decoupling-rules.md). To check a long list quickly, [ask Cooper to walk them with you](https://docs.deeppcb.com/tutorials/how-to/cooper/decoupling-rules.md).

## Differential Pairs

A differential pair tells the engine that two nets travel together — matched in length, held at a fixed gap.

| Field | What it controls |
| - | - |
| **First Net** / **Second Net** | The two nets routed together as a coupled pair. |
| **Gap** | The spacing held between the two traces along the route. |

You can also refine a pair at the pin level — excluding specific pins, or adjusting which pins are paired with which — for pairs where the default mapping is not what you want.

> [!TIP]
>
> Differential pairs are the most common casualty of a format conversion. If a pair was defined in your EDA tool but does not appear here, add it before you run rather than routing the two nets independently and fixing it afterwards.

To pair nets and pins, and to route a pair single-ended, see [Differential Pairs](https://docs.deeppcb.com/tutorials/how-to/differential-pairs.md).

## Where to Go Next

> [card] [Placement](https://docs.deeppcb.com/guides/placement.md)
>
> Let the engine arrange your components. Net classes, layers, and decoupling rules shape placement too.

> [card] [Routing](https://docs.deeppcb.com/guides/routing.md)
>
> Run a routing job with the setup you just configured.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.