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

# Run AI Component Placement for Your PCB with DeepPCB

> Use DeepPCB's AI engine to automatically place components on your PCB — upload your board with its schematic, protect the parts you want left alone, and let the engine place the rest.

DeepPCB's placement engine analyses your netlist and board constraints to arrange components in positions that minimise routing complexity. Good placement is the foundation of a clean, manufacturable PCB — it directly determines how many vias the router needs, how long traces are, and how much board area the final design occupies. Starting with an AI-optimised placement gives the routing engine the best possible conditions to achieve full completion.

## What AI Placement Does

The placement engine explores many candidate component arrangements, scored against your board constraints and electrical connectivity. Specifically, it:

* **Analyses electrical connectivity** — reads your full netlist to understand which components are tightly coupled and should sit close together
* **Minimises total estimated wire length** — shorter average trace lengths reduce impedance, crosstalk, and manufacturing cost
* **Reduces via count** — components placed to minimise layer changes during routing result in fewer vias and simpler fabrication
* **Respects keepout zones and the board outline** — placement keepouts and the board boundary are treated as hard constraints
* **Groups related components** — decoupling capacitors are pulled close to the pins they support

For a longer write-up of how the engine approaches placement, see [AI-Powered PCB Placement](https://deeppcb.com/ai-powered-pcb-placement-by-deeppcb/).

## Upload Your Schematic

Placement needs your schematic. The board file alone describes footprints, pads, and which pins are wired to which. What it cannot say is *why* those connections exist. A netlist says `U3-12` connects to `C41-1`; it does not say that `C41` is decoupling that pin.

The schematic supplies that missing layer:

> [card] Support relationships
>
> Decoupling and other supporting components are placed against the pins they serve, in the right order when several support the same pin. Review these in [Decoupling Capacitors](https://docs.deeppcb.ai/guides/board-setup.md#decoupling-capacitors) in Board Setup.

> [card] Net classification
>
> Nets are classified as power, ground, analog, or by speed, so a sensitive analog net is treated differently from a slow control line. Review these in [Net Types](https://docs.deeppcb.ai/guides/board-setup.md#net-types) in Board Setup.

**1. Choose a format that takes a schematic**

On the **New Board** dialog, select **KiCad File** or **EasyEDA Std** as the input format. For KiCad, add both the `.kicad_pcb` and the `.kicad_pro` under **Required Files**.

**2. Attach your schematic under Optional Files**

Add your `.kicad_sch` sheets (multi-sheet schematics are fine) or the EasyEDA schematic `.json`. The section is called **Optional Files** because routing runs without a schematic; placement does not.

![The New Board dialog with the KiCad board and project under Required Files and a schematic under Optional Files](https://mintcdn.com/deeppcb/4U0o544YQLW2m18K/images/placement/new-board-schematic.png?fit=max\&auto=format\&n=4U0o544YQLW2m18K\&q=85\&s=5e1d2fe054ec26b4885cdda945447209)

Attach the schematic under Optional Files when you create the board.

An EasyEDA Pro `.epro` carries its schematic inside it, so there is nothing extra to attach.

Once uploaded, you can switch the editor between the **PCB** and **schematic** views to check that the schematic came through as you expect.

## Protecting Components

By default, **every component on your board starts protected** — locked in its current position and orientation. Protected components are treated as fixed obstacles: the placement engine works around them but never moves them. This is exactly what you want for anything whose location is already decided.

**Protect a component** by right-clicking it in the board editor and choosing **Protect** (or press **Shift + P**). Protected parts are marked with a lock overlay on the board, and the selection panel shows **Status: Protected**.

![The component context menu showing Unprotect with its Shift plus P shortcut, beside the selection panel reading Status: Protected](https://mintcdn.com/deeppcb/4U0o544YQLW2m18K/images/placement/protect-context-menu.png?fit=max\&auto=format\&n=4U0o544YQLW2m18K\&q=85\&s=a58ec56df5dda9563e090b6508a67d4f)

Right-click a component to protect or unprotect it. This one is protected, so the menu offers Unprotect.

> [!NOTE]
>
> You cannot move, rotate, flip, or delete a protected component. Unprotect it first (right-click → **Unprotect**, or **Shift + P**) to edit it.

Typical things to keep protected:

| Protect these | Why |
| - | - |
| **Connectors** — USB, headers, board-edge I/O | Position is fixed by the enclosure and mating parts. |
| **Mounting holes and mechanical parts** | Constrained by the physical assembly. |
| **A crystal/oscillator and its load caps** you have already tuned next to the MCU | Tight, sensitive layout you do not want disturbed. |
| **Thermally or mechanically critical parts** — power devices, heatsinked ICs | Position dictated by cooling and mechanical needs. |
| **Any pre-placed subcircuit** you are happy with, such as a tuned RF front end | Preserve a known-good layout. |

> [!TIP]
>
> To lock many parts at once, open **Global Actions**, choose **Protect**, and apply it to **Components**. Protecting a component fixes both its **position and orientation** together — there is no separate orientation-only lock.

![The Global Actions panel with protect, unprotect, unplace and delete across components, wires and vias](https://mintcdn.com/deeppcb/4U0o544YQLW2m18K/images/placement/global-actions.png?fit=max\&auto=format\&n=4U0o544YQLW2m18K\&q=85\&s=7f21adfbc56c52276a33192ab463a93f)

Global Actions applies protect, unprotect, unplace, or delete in bulk.

## Telling DeepPCB What to Place

Because components start protected, you signal the engine's job by **unprotecting** the parts you want it to arrange. The rule is simple:

* **Protected component** → kept exactly as-is.
* **Unprotected component** → the engine will (re)place it.

When you launch a placement job, DeepPCB automatically moves every **unprotected** component to a staging area just outside the board outline before it starts — so you will see those parts hop outside the boundary, along with an info note such as *"Unprotected component U3 will be repositioned during placement."* That is expected: everything outside the outline is the engine's to place, and everything protected inside stays put.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/4U0o544YQLW2m18K/images/placement/placement-staging.mp4?fit=max&auto=format&n=4U0o544YQLW2m18K&q=85&s=c0a4b705d5aaa4321714cd4b0c80aa96" />

Global Actions → Unplace → Components moves every unprotected part outside the outline, ready for placement.

**1. Unprotect what you want re-placed**

Select the components the engine should arrange and choose **Unprotect** (**Shift + P**), or use **Global Actions → Unprotect → Components** to release them in bulk.

**2. Optionally unplace or drag parts outside the outline**

You can also use **Global Actions → Unplace**, or simply drag a part outside the board outline yourself. Anything outside the boundary is treated as "needs placing" — a handy way to hand the engine a specific group while leaving the rest fixed.

**3. Run placement**

Start the **Placement** job. The engine keeps every protected component fixed and finds positions and orientations (0°, 90°, 180°, or 270°) for the unprotected ones.

> [!WARNING]
>
> If **every** component is protected, the placement engine has nothing to move and the job produces no changes. Make sure the parts you want arranged are unprotected before you run.

## Running a Placement Job

**1. Create a board**

On the **Boards** page, click **New Board** and upload your board with its schematic: the `.kicad_pcb` and `.kicad_pro` plus your `.kicad_sch` sheets for KiCad, or the EasyEDA board and schematic. See [Upload Your Schematic](#upload-your-schematic). Your components can be already placed, loosely scattered, or a mix.

**2. Set what to keep and what to place**

In the board editor, **protect** the components you want left exactly where they are, and **unprotect** the ones the engine should arrange (see the two sections above). This replaces any notion of "fixed locations" on the run screen — locking is done here, in the editor.

**3. Review your board setup**

Open **Board Setup** and check your net classes, layer rules, net types, and decoupling capacitor rules. Placement quality depends on these as much as routing does — a capacitor with no decoupling rule is just another part to the engine. See [Board Setup](https://docs.deeppcb.ai/guides/board-setup.md).

**4. Choose Placement and set your Time Allocation**

Select **Placement** in the job switcher, then set the **Time Allocation** (time limit) for the run — longer allocations let the engine explore more arrangements. Time is drawn from your balance.

**5. Start the job**

Click **Start Placement**. The engine begins immediately and streams placement revisions back to the web app in real time.

**6. Monitor progress**

Each new revision appears in the revision list with a snapshot of the board. You can watch the layout improve revision by revision.

**7. Stop when satisfied**

Click **Stop** when you are happy with a revision — the best solution so far is saved and available immediately. You can then start a routing job on that placement, or download it to review in your EDA tool first.

## From Placement to Routing

Placement and routing are **separate jobs**. When you are satisfied with a placement revision, switch to routing in the control panel at the bottom of the editor:

**1. Switch the job to Routing**

In the job switcher next to the start button, click the **Routing** icon. The button changes from **Start Placement** to **Start Routing**.

**2. Start the routing job**

Click **Start Routing**. The router works from the positions the placement engine produced.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/4U0o544YQLW2m18K/images/placement/switch-to-routing.mp4?fit=max&auto=format&n=4U0o544YQLW2m18K&q=85&s=d98bb52437d78b0062af645b7b001468" />

Click Routing in the job switcher, and the start button changes to Start Routing.

> [!WARNING]
>
> Copper does not behave like parts. Every component is protected on import, so routing never moves them — but **wires and vias are protected only where you asked for it**, by locking them in your EDA tool or protecting them in the editor. A routing job may re-route or remove any copper that is not. See [Keeping Existing Wiring](https://docs.deeppcb.ai/guides/routing.md#keeping-existing-wiring).

> [!TIP]
>
> Running placement before routing almost always produces better routing outcomes than starting from a manual placement. Even a short placement pass on an existing layout can meaningfully reduce via count and improve completion rates.

## Reviewing Placement Results

The editor lets you step through every placement revision generated during your job. For each revision you can inspect:

* A **board view** showing component positions and orientations
* The **revision number** — later revisions have had more compute time applied to them

Use the **Board Content** panel to browse components and show or hide each category. Once you have a revision you want to route, [switch to routing](#from-placement-to-routing) and start a routing job from it.

![The placement revision list beside the placed board](https://mintcdn.com/deeppcb/4U0o544YQLW2m18K/images/placement/placement-revisions.png?fit=max\&auto=format\&n=4U0o544YQLW2m18K\&q=85\&s=a699303140db1bd1727c5efc5ab4c645)

Placement revisions in the revision list.


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