> ## 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.

# How DeepPCB's AI Routing and Placement Engine Works

> DeepPCB uses Reinforcement Learning to place and route PCBs. Learn how a learned routing policy delivers fast, high-quality results.

DeepPCB uses Reinforcement Learning (RL) — the same AI technique behind AlphaGo and modern robotics — to solve PCB routing, an NP-hard combinatorial optimisation problem. Unlike traditional autorouters that apply fixed heuristics, the RL engine applies a trained routing policy, and keeps improving the result on your board for as long as the run lasts — completing connections, minimising vias, and satisfying design rules under real-world constraints.

## The AI Workflow

**1. Board Upload**

Submit your PCB design — netlist, constraints, and board outline — directly from your EDA tool. DeepPCB accepts DSN files from Specctra-compatible tools and native KiCad exports.

**2. Cooper Review**

Before routing begins, Cooper — DeepPCB's AI design review assistant — scans your board for constraint violations, DRC issues, missing net assignments, and other problems that would cause a failed route or a board respin. You confirm any fixes before the job proceeds.

**3. AI Engine Runs**

The RL agent places components and routes nets across your board, generating a continuous stream of solutions — each one progressively better than the last. You can watch completion rate, via count, and wire length improve in real time on the job dashboard.

**4. Download**

When you are satisfied with a solution, stop the job and download your routed board in your preferred EDA format. You only pay for the compute time used so far.

## Why Reinforcement Learning?

Most PCB routing approaches fall into one of two camps — each with a fundamental trade-off:

* **Heuristic routers** are fast but produce sub-optimal results. They apply the same fixed rules to every board and never learn from experience. When they get stuck, they leave unrouted connections for you to finish manually.
* **Constraint solvers** can find mathematically optimal solutions, but their computational complexity grows exponentially with board size. They do not scale to real-world boards with hundreds or thousands of connections.

DeepPCB's RL engine occupies a different position entirely. Its trained policy makes strong routing decisions quickly — without exhaustive search — and adapts to board topologies it has not seen before.

> [!NOTE]
>
> DeepPCB is end-to-end autonomous — there is no human in the loop during routing.

## What the AI Optimises

The RL engine balances multiple objectives simultaneously during every routing run:

* **Connection completion rate** — DeepPCB achieves a [96% mean completion rate](https://docs.deeppcb.ai/introduction/why-deeppcb-is-different.md)
* **Via count minimisation** — fewer vias means lower manufacturing cost and better signal integrity
* **DRC compliance** — every generated solution is design-rule-clean; violations are never deferred to a post-processing step
* **Wire length** — shorter routes reduce parasitic inductance and board congestion
* **Signal integrity** — differential pairs are kept matched in length and gap throughout routing
* **Design constraints adherence** — net class rules, clearance matrices, keep-out zones, and layer restrictions are enforced at every step

## Board Complexity Supported

DeepPCB is built for professional-grade boards. The engine supports:

* Up to **8 copper layers**
* Up to **1,200 connections** (airwires) per job
* **Multi-plane support** — dedicated power and ground planes
* **Differential pairs** with length matching and gap control
* **Blind, buried, and at-SMD vias**

## Run Time

Most jobs complete within a few hours, depending on board complexity and the number of connections. You can stop a job at any time and download the best solution found so far — you are never locked into waiting for a job to finish. If you need to step away, jobs can be paused and resumed without losing progress.


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