Tie routing documentation to user and developer workflows
This commit is contained in:
parent
2d77877fff
commit
2c7a7ea90a
1 changed files with 309 additions and 148 deletions
|
|
@ -1,18 +1,20 @@
|
|||
# Benchmark fixtures
|
||||
|
||||
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).
|
||||
Start with a board that exercises the behavior you want to measure. Use the [case guide](benchmarks.md#choose-a-case) to select it or the [corpus registry](../inire/tests/routing_corpus.py) to find its groups and effective profile settings.
|
||||
|
||||
## Automatic nine-net Terminal-Bench 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.
|
||||
To measure the bundle planner on the unseeded point-terminal input, export its routes.
|
||||
|
||||
```sh
|
||||
python -m scripts.route_terminal_bench --output /tmp/inire-terminal-bench.json
|
||||
```
|
||||
|
||||
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).
|
||||
The export should report nine verified routes. The upstream input is board 1 in the [pinned layout specification](https://raw.githubusercontent.com/harbor-framework/terminal-bench/249d125b59c0a5352d9e132195cfead6d81446be/tasks/photonic-waveguide-routing/environment/layout_spec.json). The unseeded export passed the pinned checker's cost and geometry requirements.
|
||||
|
||||
To verify a known layout or compare lane assignments, pass `--reference-lane-plan` or `--single-bottom-track` to replay the [authored lane plans](../inire/tests/terminal_bench_lane_plan.py). Use the unseeded command above for planner coverage and timing.
|
||||
|
||||
## Preplaced crossings
|
||||
|
||||
|
|
@ -26,12 +28,14 @@ Use unseeded runs to evaluate routing policy. For a separate check of geometry a
|
|||
|
||||
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 |
|
||||
| Cases | Pinned 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) |
|
||||
| Splitter tree, ring modulator, and MZM | [FLYR PIC Routing Benchmark archive](https://huggingface.co/datasets/FLYR/pic-benchmark/resolve/0c1f445792926d97fae01893c89e96b8a9393800/pic-benchmark.zip) | FLYR's bundled `LICENSE` specifies [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). |
|
||||
| Toy layout and subsets of the Clements and MRR weight-bank layouts | [LiDAR benchmark inputs](https://github.com/ScopeX-ASU/LiDAR/tree/4e7004d32b0b80d959553797fb30f0737513de0c/src/picroute/benchmarks) | [ScopeX@ASU's MIT license](../inire/tests/data/LiDAR-LICENSE.txt). |
|
||||
|
||||
The importer checks both pinned archive hashes. It requires PyYAML when regenerating the fixtures.
|
||||
### Regenerate the converted inputs
|
||||
|
||||
The importer checks both archive hashes before converting geometry. It uses PyYAML to read the layout files. Generate a scratch copy and compare it with the checked-in fixture data.
|
||||
|
||||
```sh
|
||||
mkdir -p /tmp/inire-external-routing
|
||||
|
|
@ -41,5 +45,8 @@ curl -fL 'https://codeload.github.com/ScopeX-ASU/LiDAR/tar.gz/4e7004d32b0b80d959
|
|||
-o /tmp/inire-external-routing/lidar.tar.gz
|
||||
uv run --with 'pyyaml==6.0.3' python -m scripts.import_external_routing_benchmarks \
|
||||
--pic-archive /tmp/inire-external-routing/pic-benchmark.zip \
|
||||
--lidar-archive /tmp/inire-external-routing/lidar.tar.gz
|
||||
--lidar-archive /tmp/inire-external-routing/lidar.tar.gz \
|
||||
--output /tmp/inire-external-routing/fixtures.json
|
||||
cmp inire/tests/data/external_routing_benchmarks.json \
|
||||
/tmp/inire-external-routing/fixtures.json
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue