Tie documentation links to reader workflows

This commit is contained in:
Jan Petykiewicz 2026-11-26 22:03:08 -08:00
commit a029791f33

View file

@ -1,16 +1,18 @@
# Benchmark fixtures
Use the checked-in inputs to repeat a routing comparison offline. The fixture catalogue gives the geometry, options, and expected bound for each case. [Choose a case and profile](benchmarks.md#choose-a-case) · [Fixture catalogue](../inire/tests/routing_corpus.py)
The checked-in fixtures let you repeat comparisons offline. To find a board for the behavior you want to measure, use the [benchmark case guide](benchmarks.md#choose-a-case). To inspect the case groups and the options used for each profile, open the [corpus registry](../inire/tests/routing_corpus.py).
## Automatic nine-net Terminal-Bench routing
Use this as a check on ordered placement and heading inference. The upstream task supplies point terminals, so `bundle` mode can infer headings and reserve room for the outer return and bend tangencies. The export command starts from the unseeded input. Its nine routes passed the pinned checker below the upstream cost limit. Use the fixed-heading `terminal-bench` fixture to check automatic routing when the headings are part of the input. [Bundle planner](../inire/router/_bundle.py) · [Pinned upstream task](https://github.com/harbor-framework/terminal-bench/tree/249d125b59c0a5352d9e132195cfead6d81446be/tasks/photonic-waveguide-routing)
Use `terminal-bench-point-terminals` to test heading inference and ordered tracks through shared openings. The bundle planner reserves room for the outer return and bend tangencies. Use `terminal-bench` to test automatic routing with fixed headings.
Export the nine routes from the unseeded point-terminal input.
```sh
python -m scripts.route_terminal_bench --output /tmp/inire-terminal-bench.json
```
The export CLI's `--reference-lane-plan` and `--single-bottom-track` flags replay authored layouts for comparison. Use the unseeded export to measure the planner and the reference flags to check feasibility or compare lane assignments. [Reference plan](../inire/tests/terminal_bench_lane_plan.py)
The unseeded export passed the checker's cost and geometry requirements in the [pinned Terminal-Bench task](https://github.com/harbor-framework/terminal-bench/tree/249d125b59c0a5352d9e132195cfead6d81446be/tasks/photonic-waveguide-routing). To check feasibility or compare lane assignments, use the CLI flags `--reference-lane-plan` and `--single-bottom-track` to replay the [authored lane plans](../inire/tests/terminal_bench_lane_plan.py).
## Preplaced crossings
@ -18,11 +20,16 @@ The export CLI's `--reference-lane-plan` and `--single-bottom-track` flags repla
- `crossing-obstructed-approaches` adds blocked approaches and a turning exit.
- `crossing-aligned-grid` and `crossing-staggered-grid` test multiple cells and short links between device banks.
Use unseeded runs to evaluate routing policy. The fixture witnesses are checked independently for geometry and clearance. [Crossing definitions](../inire/tests/routing_crossing_benchmarks.py)
Use unseeded runs to evaluate routing policy. For a separate check of geometry and clearance, use the reference paths in the [crossing fixtures](../inire/tests/routing_crossing_benchmarks.py).
## Imported fixtures
The six fixed-placement cases run offline from [converted inputs](../inire/tests/data/external_routing_benchmarks.json). Optical ports snap to a 0.1 µm grid. Device outlines become keepouts with access cutouts. PIC Routing Benchmark contributes splitter-tree, ring-modulator, and MZM cases. LiDAR contributes a toy layout and subsets of the Clements and MRR weight-bank layouts. These fixtures exercise waveguide routing between fixed devices. [PIC data and CC BY 4.0 attribution](https://huggingface.co/datasets/FLYR/pic-benchmark/blob/0c1f445792926d97fae01893c89e96b8a9393800/pic-benchmark/README.md) · [LiDAR source](https://github.com/ScopeX-ASU/LiDAR/tree/4e7004d32b0b80d959553797fb30f0737513de0c/src/picroute/benchmarks) · [LiDAR license](../inire/tests/data/LiDAR-LICENSE.txt)
The importer converts placed device outlines to keepouts with port openings and snaps optical ports to a 0.1 µm grid. The six converted layouts exercise routing between fixed devices. To inspect their ports and keepouts, open the [checked-in fixture data](../inire/tests/data/external_routing_benchmarks.json).
| Cases | Source | License |
| --- | --- | --- |
| Splitter tree, ring modulator, and MZM | [PIC Routing Benchmark](https://huggingface.co/datasets/FLYR/pic-benchmark/blob/0c1f445792926d97fae01893c89e96b8a9393800/pic-benchmark/README.md) | CC BY 4.0 |
| Toy layout and subsets of the Clements and MRR weight-bank layouts | [LiDAR benchmarks](https://github.com/ScopeX-ASU/LiDAR/tree/4e7004d32b0b80d959553797fb30f0737513de0c/src/picroute/benchmarks) | [LiDAR license](../inire/tests/data/LiDAR-LICENSE.txt) |
The importer checks both pinned archive hashes. It requires PyYAML when regenerating the fixtures.