From a59e8e99243a895197a30d6cd6dd8d744dd606de Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 11 Nov 2026 10:32:51 +0100 Subject: Keep only the current router: drop the Python router, router-rs -> router 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 --- tools/router/README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'tools/router/README.md') 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 -- cgit v1.3