Clarify routing documentation and refresh example figures

This commit is contained in:
Jan Petykiewicz 2026-11-27 11:59:22 -08:00
commit ab97281df3

View file

@ -11,14 +11,14 @@ python -m scripts.compare_topological_routing \
--mode automatic
```
Expect `3/4 valid` and a report of three tracks for four nets crossing the cut. The run reached the geometric bound. When trying another setting, check the bound and verified IDs before comparing cost. For a case whose bound comes from fixed ports, use `--case lidar-clements-8x8`.
Expect `3/4 valid`. All four nets need to cross a vertical cut where the openings have room for three tracks. Run the same command with `--case lidar-clements-8x8` to see `3/6 valid` with a bound set by port spacing.
## Choose a case
| If you are changing | Use `--case` |
| --- | --- |
| Overall coverage | `corpus` runs the regression suite. |
| Ordered tracks, shared gates, and barrier layouts | `all` exercises the original layouts, including fixed-heading Terminal-Bench. |
| Ordered tracks, shared gates, and barrier layouts | `all` selects the original comparison set, including fixed-heading Terminal-Bench. Use `corpus` for the full regression suite. |
| Seeds, custom bend geometry, and fallback behavior | `broad` includes caller seeds, custom bends, imported layouts, and held-out boards. |
| Ports on placed devices | `crossings` exercises external legs to preplaced crossing cells. |
| Lock ordering, tight turns, and competing passages | `stress` runs known-feasible folded returns, competing locks, and shared passages. |
@ -31,10 +31,10 @@ Run `python -m scripts.compare_topological_routing --list` to find individual ca
| Profile | Use it to |
| --- | --- |
| `public-defaults` | Measure the public policy and objective on the fixture geometry. |
| `corpus-regression` | Reproduce the routing regression settings. The profile retains fixture options and sets 500 search nodes, 500 seed nodes, and three configured congestion iterations. |
| `matched-budget` | Compare modes at shared configured budgets. It defaults to 500 search nodes and two configured iterations. Use CLI overrides to test a smaller budget. |
| `corpus-regression` | Reproduce the routing regression settings. The profile sets a 500-node search limit, a 500-node seed budget per net, and up to three congestion iterations per attempt. |
| `matched-budget` | Compare modes with the same configured search and iteration limits. Defaults to 500 nodes per search and up to two congestion iterations per attempt. |
The two budget profiles use benchmark weights for automatic candidate selection. Stages can use smaller budgets. Match the profile, options, and worker count when measuring a change.
Both budget profiles use benchmark weights when selecting an automatic candidate. A stage can use a smaller budget, and a net can be searched more than once. Match the profile, options, and worker count when measuring a change.
### Run the full regression corpus
@ -58,7 +58,7 @@ python -m scripts.compare_topological_routing \
--json /tmp/inire-modes.json
```
At 100 nodes per search, `off` stops short. Guide and seed both finish the same net at the same cost. Guide takes 4 expansions. Seed takes 37, all in seed search. If seed work increases after a change, inspect how the [corridor is realized as a path](topological-routing.md#corridor-planning-and-realization).
At 100 nodes per search, `off` verifies zero routes. Guide and seed both verify the single requested net at the same cost. Guide uses 4 search expansions and seed uses 37, all spent building its starting path. If this work changes, check how the [corridor becomes a path](topological-routing.md#corridor-planning-and-realization).
### Test a retry on holdouts
@ -76,6 +76,6 @@ Check which holdouts gained a verified net, then compare previously verified pat
## Compare the results
1. **Coverage and bounds.** Check verified IDs, requested nets, and any bound. The overloaded gate exercises passage capacity. The imported LiDAR Clements layout exercises fixed-port conflicts. Verify any feasibility witness separately from the timed run.
1. **Coverage and bounds.** Check which nets verified and whether their count reached the reported bound. A reference path shows that its exact route is feasible. Check it separately from an unseeded timing run.
2. **Cost on matching net sets.** Benchmark-weighted length weights physical straights, 90-degree bends, and S-bends by 1, 4, and 13. Native objective cost uses the run's configured objective. Compare costs on identical verified IDs, and report coverage changes separately.
3. **Search and time.** Compare expansions and repeated wall times at the same settings. Constructive stages can spend time planning and verifying even with zero expansions. To locate work that moved to a different stage, use the [automatic reports](routing-diagnostics.md#automatic-reports).