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):

ConfigurationCompletionTime
Search window ±24 mm60.5% (204/337)11 s
Search window ±160 mm, expansion cap 20M70.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

ConstraintDetailImpact
Power netsvcc/vss need many viasroute signals first, power last, or handle separately
Dynamic nodescan’t cross connectorsthe board split decides which nets must stay local
Keepoutsconnectors, mounting holes, crystal areathe router must know them or waste time
Layers6signal and power layers have fixed roles

5. Known parameters

ItemValue
Board size300 × 320 mm
Footprints5,339
Nets2,672
Small board (C_timing) nets337
Small-board completion70.9% (239/337)
Failed nets108/109 span > 30 mm, median 111 mm

6. Next steps

  1. Order nets by feature: short first, long nets get dedicated channels;
  2. Rip-up and reroute: tear up failed nets instead of one-shot routing;
  3. 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.

Get the next essay

New essays on products, business and tech — plus what the experiment's numbers actually say.