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

# Automatic AI PCB Routing for Your Board with DeepPCB

> Route your PCB automatically using DeepPCB's AI engine. Achieve 96% mean completion with DRC-clean traces, differential pairs, and multi-plane support.

DeepPCB's routing engine uses Reinforcement Learning to connect all nets on your board while respecting your design constraints. It achieves a [**96% mean routing completion rate**](https://docs.deeppcb.ai/introduction/why-deeppcb-is-different.md) and produces DRC-clean results at every iteration — not just the final one. Whether your board has a handful of nets or over a thousand connections across multiple copper layers, the engine adapts to your constraints and works to deliver a manufacturable result.

## Before You Run

Two decisions shape a routing job more than anything else, and both are made before you press start.

> [card] [What happens to existing wiring](#keeping-existing-wiring)
>
> Whether the engine starts from bare copper, or keeps the wiring already on your board for you to protect.

> [card] [Your board setup](https://docs.deeppcb.ai/guides/board-setup.md)
>
> Net classes, layer rules, net types, decoupling rules, and differential pairs. Review these in **Board Setup** first.

## Keeping Existing Wiring

If your board arrives with traces already on it — a tuned differential pair, a wide power trace with specific geometry, an RF stub — protect them in the editor before you start the run.

> [!WARNING]
>
> Existing wiring is **protected only where you have said so**. Starting a routing job on a partly routed board keeps your copper, but the engine is free to re-route or remove anything that is not protected.

Locks set in your EDA tool carry over for some formats:

| Your file | Tracks and vias you locked arrive |
| - | - |
| **KiCad** — `(locked yes)` on a segment or via | Protected |
| **Specctra DSN** — a wire or via marked `protect` | Protected |
| **DeepPCB** — `.deeppcb` | Protected |
| **Altium, EasyEDA, Zuken** | Unprotected — protect them in the editor |

Whatever the format, anything you did not lock arrives unprotected.

### Keep What You Have Already Routed

**1. Protect all existing wiring**

Open **Global Actions**, choose **Protect**, and tick **Wires** and **Vias**. Every track and via on the board is now fixed.

**2. Release anything you want redone**

Right-click a track or via you are not happy with and choose **Unprotect**, or **Delete** it outright.

**3. Start the routing job**

The engine connects the remaining nets and routes around everything still protected.

### Protecting Individual Items

Right-click any wire or via and choose **Protect**. Protected items will not be modified or removed. Right-click again and choose **Unprotect** to release one.

To do this in bulk, open **Global Actions** and apply **Protect**, **Unprotect**, or **Delete** to **Wires**, **Vias**, or **Components** across the whole board. See [Global Actions](https://docs.deeppcb.ai/tutorials/how-to/global-actions.md).

Components work the other way round: every component is protected on import, so a routing job never moves parts. See [Protect / Unprotect Components](https://docs.deeppcb.ai/tutorials/how-to/protect-unprotect-components.md).

> [!TIP]
>
> Keeping only a handful of nets and happy for the rest to be redone? Protect those few individually and leave everything else free, rather than protecting the board and unprotecting the majority.

> [!NOTE]
>
> Over the [API](https://docs.deeppcb.ai/quickstart/api.md), the `routingType` parameter sets how existing wiring is treated for the whole board: `EmptyBoard`, `CurrentProtectedWiring`, or `CurrentUnprotectedWiring` — `CurrentProtectedWiring` protects everything in the file as it loads. This field is API-only; in the web app, protect wiring in the editor as above.

## Planes

Copper planes are first-class board items. DeepPCB reads the planes already in your board file, and you can draw new ones or change existing ones in the editor. To add, edit, protect, or delete a plane, see [Planes](https://docs.deeppcb.ai/tutorials/how-to/planes.md).

> [!TIP]
>
> Protecting a large ground plane against both wires and vias keeps it electrically intact, but it also removes that layer as routing space. On dense boards, protecting against vias only is often the better trade — the plane stays whole where it matters while traces can still cross it.

## Vias

Which via structures the engine may use is driven by your via definitions and net classes rather than a global setting.

| Control | Where it lives | What it does |
| - | - | - |
| **Via definition** | Per net class, in [Board Setup](https://docs.deeppcb.ai/guides/board-setup.md) | The via padstack nets in that class use when changing layer. |
| **Via definitions** | On the board | The set of via padstacks available to be assigned. |
| **Via priority** | Per net class, in the board file | An ordered list of via configurations. The engine tries them in order, so you can express "prefer a blind via here, fall back to through-hole". |
| **At-SMD vias** | Board-level design rule | Whether vias may be placed directly at SMD pads, for escape routing on fine-pitch parts. |

> [!NOTE]
>
> Via priority is set in the board file rather than in the editor. If you build boards through the API, the [board schema](https://docs.deeppcb.ai/api/overview.md) defines the field on each net class. You can also ask [Cooper](https://docs.deeppcb.ai/concepts/cooper.md) to define vias for you from chat.

### Via Types Supported

DeepPCB supports all common via structures used in modern PCB fabrication:

| Via Type | Description |
| - | - |
| **Through-hole vias** | Span the full board stack; the standard via type |
| **Blind vias** | Connect an outer layer to one or more inner layers without going all the way through |
| **Buried vias** | Connect two inner layers with no exposure on outer layers |
| **At-SMD vias** | Vias placed directly at SMD pads for escape routing on fine-pitch components |

## What DeepPCB Routes

DeepPCB handles the full range of signal and power routing requirements found on modern industrial PCBs:

* **All signal nets** — standard, high-speed, and noise-sensitive signals
* **Differential pairs** — with automatic length matching and controlled gap (spacing) throughout the route
* **Power nets** — including multi-plane designs with split planes and multiple voltage domains
* **Up to 8 copper layers** — the engine manages layer assignment and via transitions across the full stack
* **Up to 1,200 connections** — suitable for complex multi-component boards including FPGAs, microprocessors, and dense mixed-signal designs

> [!NOTE]
>
> Need more than 8 layers or 1,200 connections, or constraints beyond the standard set? [Contact us](mailto:support@deeppcb.ai), or see [Enterprise Accounts](https://docs.deeppcb.ai/account-setup/enterprise-accounts.md).

> [!NOTE]
>
> DRC compliance is enforced throughout routing — every intermediate solution is DRC-clean, not just the final one. You can safely stop the job at any iteration and use that solution without running a separate DRC check.

## Running a Routing Job

For step-by-step walkthroughs, see [Running a Board](https://docs.deeppcb.ai/tutorials/how-to#running-a-board) in How to.

**1. Open your board in the editor**

From the **Boards** page, open the board you want to route. If you have not uploaded it yet, click **New Board** — see [Prepare Board File](https://docs.deeppcb.ai/guides/prepare-board-file.md).

**2. Review your board setup**

Open **Board Setup** and check your net classes, layer rules, net types, decoupling rules, and differential pairs. Fixing a misread differential pair or an unclassified power net here costs a minute; discovering it after a two-hour run costs the run.

**3. Select Routing in the job switcher**

Choose **Routing**. The switcher offers **Placement** and **Routing** as separate jobs — pick Routing when your components are already where you want them.

**4. Set your Time Allocation**

Set the time limit for the run. Longer allocations give the engine more time to raise completion and cut via count, and time is drawn from your balance. For complex boards, a larger allocation is strongly recommended.

**5. Start the job**

Click **Start Routing**. You will see the engine come up — resources are allocated, the engine starts, and the first revisions arrive shortly after.

## Watching Progress

Revisions stream into the editor as the engine works. Each one is a complete, usable solution, and you can inspect any of them while the job is still running.

The revision list shows every solution generated during the run, in order. Select one to load it into the board view and see its metrics:

> [card] Unrouted connections
>
> How many airwires are still unconnected. Zero means every net on the board is fully routed.

> [card] Vias added
>
> How many vias the solution uses. Fewer vias means simpler fabrication, lower cost, and better signal integrity — use this to choose between revisions with equal completion.

> [card] Total wire length
>
> The total length of copper laid down. Shorter is generally better for impedance, crosstalk, and cost.

> [card] Differential pairs
>
> How many differential pair connections are complete.

> [card] Run time
>
> Time spent on the current run and in total across all runs on this board.

Use the **Board Content** panel in the right sidebar to browse layers, components, nets and vias, and to show or hide each category.

### Choosing a Revision

* **If everything is routed:** compare vias added across the revisions that reached full completion and take the lowest. They are equivalent electrically, but fewer vias is easier to build.
* **If some connections are unrouted:** check whether they are ones you can finish by hand after import. If they are critical, resume with a larger time allocation instead.
* **If you are out of time:** stop and download the current best. Every revision is saved to your account, so you can resume later and keep improving.

## Stopping and Resuming

You are never locked into a running job. Click **Stop** at any time — the best solution found so far is saved to your account immediately and is available for download or review. No progress is lost.

To keep improving a stopped board, click **Resume**. The engine picks up from the current best state rather than starting over, so extra time always builds on what has already been achieved. Any changes you made in **Board Setup** or the editor since the last run are picked up on resume.

> [!TIP]
>
> Run [Cooper](https://docs.deeppcb.ai/concepts/cooper.md) — DeepPCB's AI design review assistant — before launching a routing job to catch any design rule issues in your board file. Even small constraint errors, such as a clearance conflict or an undefined net class, can significantly reduce completion rates by forcing the router to leave nets unconnected.

When you have a revision you are happy with, move on to [Downloading Results](https://docs.deeppcb.ai/guides/downloading-results.md).


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