After splitting, the remaining question is simple: connect the nets. It sounds like “click auto-route,” but it turned out to be the most time-consuming part of the whole project.
1. FreeRouting: it works, but it stalls
The KiCad DSN/SES flow is standard:
pcbnew.ExportSpecctraDSN(board, 'x.dsn') # export the design
java -jar freerouting.jar -de x.dsn -do x.ses
# then import the .ses back into KiCad
On small boards (C_timing, 337 nets) it works well. On large boards we hit:
- It stalls partway through (progress stops moving) and has to be killed;
- Oversized vias/pads cause many unroutable escapes, and shrinking them creates new DRC problems;
- Power nets (vcc/vss) with many vias wreck the routing space — we tried emptying the power net pins and handling them separately.
2. A custom A* router
For control, we wrote a small router (tools/router.cpp):
- Input: endpoint coordinates per net (exported from the KiCad board);
- Algorithm: A* search with multi-direction expansion, short nets first;
- Output: a segment list, imported back into KiCad.
Results (small board C_timing):
| Configuration | Completion | Time |
|---|---|---|
| Search window ±24 mm | 60.5% (204/337) | 11 s |
| Search window ±160 mm, expansion cap 20M | 70.9% (239/337) | 23 s |
3. A counterintuitive finding
Failures aren’t “pins can’t escape” — they’re long nets:
Of 109 failed nets, 108 span more than 30 mm, with a median of 111 mm.
Short nets almost always connect; failures concentrate on wires that must cross the whole board. That explains why widening the search window jumped completion by 10 points — long nets need more detour space.
4. Four constraints on full-board routing
| Constraint | Detail | Impact |
|---|---|---|
| Power nets | vcc/vss need many vias | route signals first, power last, or handle separately |
| Dynamic nodes | can’t cross connectors | the board split decides which nets must stay local |
| Keepouts | connectors, mounting holes, crystal area | the router must know them or waste time |
| Layers | 6 | signal and power layers have fixed roles |
5. Known parameters
| Item | Value |
|---|---|
| Board size | 300 × 320 mm |
| Footprints | 5,339 |
| Nets | 2,672 |
| Small board (C_timing) nets | 337 |
| Small-board completion | 70.9% (239/337) |
| Failed nets | 108/109 span > 30 mm, median 111 mm |
6. Next steps
- Order nets by feature: short first, long nets get dedicated channels;
- Rip-up and reroute: tear up failed nets instead of one-shot routing;
- Record completion and DRC per iteration: turn tuning into comparable experiments.
7. The honest state
- Whole-board routing of the single board (300×320 mm, 5,339 footprints) is not finished;
- Completion is measured per net, not “DRC clean”;
- All boards’ geometry, DRC and connector maps are verified, but the final “manufacturable” step is still missing.
That’s not failure; it’s normal engineering: large-scale auto-routing is a loop of tuning → measuring → reverting, and recording the completion rate at each step honestly is more valuable than declaring victory.
8. Summary
- FreeRouting fits small scale; at large scale you need to control the search strategy yourself;
- Attribute failures to net characteristics (short/long, crossing/local), not “it won’t route”;
- Routing progress must be measurable and reproducible (record completion at every tuning step).
Together, the four posts are one chain from netlist to board: schematic → discretization → splitting → routing. Every layer shares one rule: prove equivalence/correctness first, then talk about looks and manufacturability.
Related
- Splitting the Board: Dynamic Nodes Can’t Just Be Cut
- Building the 6502 from 4,000 Discrete Transistors: The MOnSter6502 Route
- Code Agents and FPGA Development: A 97-Round Experiment Log
Get the next essay
New essays on products, business and tech — plus what the experiment's numbers actually say.