aboutsummaryrefslogtreecommitdiff
path: root/tools/router/README.md
diff options
context:
space:
mode:
authorLouis <louis@dnge.de>2026-11-11 10:32:51 +0100
committerLouis <louis@dnge.de>2026-11-11 10:32:51 +0100
commita59e8e99243a895197a30d6cd6dd8d744dd606de (patch)
tree8910cc7476ff1317932257dfc8497a0f9ffc29f7 /tools/router/README.md
parent6f2bbe1f94e4321c329f92ec3420f6d32fd7b26d (diff)
downloadhw-toolchain-a59e8e99243a895197a30d6cd6dd8d744dd606de.tar.gz
Keep only the current router: drop the Python router, router-rs -> routerHEADmain
The sequential Python/C router (pcbroute.py, pipeline.py, astar.c) is gone. The Rust crate takes its place at tools/router/, next to the KiCad I/O scripts it uses (dump_board.py, write_board.py, plot_routes.py). knowledge/tooling/router.md is now the Rust router's reference; the small Python venv for plots and 3D checks moves to tools/.venv (tools/requirements.txt). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/router/README.md')
-rw-r--r--tools/router/README.md20
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/router/README.md b/tools/router/README.md
index a3f594e..847ed25 100644
--- a/tools/router/README.md
+++ b/tools/router/README.md
@@ -1,12 +1,18 @@
# Router
-Scripted 2-layer grid maze router (A* in `astar.c`, strategies in `pipeline.py`), the
-predecessor of the Rust router in `../router-rs`. Documentation, workflow and lessons:
-[knowledge/tooling/router.md](../../knowledge/tooling/router.md).
+Grid router for 2-layer KiCad boards with negotiated congestion (all nets at once, plane-net
+drops optionally included), cleanup passes, a pour-connectivity check and ordered steps, all
+configured per board in a `route.toml`. Footprint copper such as net-tie bridges is respected;
+`area = "pours"` keeps all copper inside the plane pours (a design block's area). The placer
+links the crate to route its candidates.
-Setup once:
+KiCad I/O (run with KiCad's Python, see `../kicad_env.sh`): `dump_board.py` writes board.json,
+`write_board.py` writes routes.json back into a board. `plot_routes.py` draws a route (plain
+Python with `../requirements.txt`).
- python3 -m venv tools/router/.venv
- tools/router/.venv/bin/pip install -r tools/router/requirements.txt
+Documentation and lessons: [knowledge/tooling/router.md](../../knowledge/tooling/router.md);
+end to end on your board: [knowledge/tooling/pnr.md](../../knowledge/tooling/pnr.md).
-The C core compiles itself (`cc`) on first import.
+ cargo build --release
+ target/release/router route board.json route.toml routes.json [--fixed NAME=FILE]... [--stop LABEL]
+ target/release/router place board.json placement.json moved.json