Report coincident terminals and unusable seeds per net, update custom bend handling and verification, and cover the revised behavior with regression tests. Shorten the user and developer guides around reader tasks and keep the illustrated routing walkthrough and reference links easy to find.
58 lines
3.2 KiB
Markdown
58 lines
3.2 KiB
Markdown
# Benchmark fixtures
|
|
|
|
- [Choose a benchmark case](benchmarks.md#choose-a-case)
|
|
- [Corpus registry and profiles](../inire/tests/routing_corpus.py)
|
|
|
|
## Complex-routing example 1
|
|
|
|
Use `complex-routing-example-1` to test fixed eastbound arrival and `complex-routing-example-1-point-terminals` to test heading inference.
|
|
|
|
Export the bundle planner's verified waypoints for the point-terminal board.
|
|
|
|
```sh
|
|
python -m scripts.route_complex_routing_example --output /tmp/inire-complex-routing-example-1.json
|
|
```
|
|
|
|
Expect nine verified routes. The unseeded export met the original checker's cost and geometry requirements.
|
|
|
|
- [Compare the resulting layouts](../examples/advanced.md#complex-routing-example-1)
|
|
- [Follow the illustrated walkthrough](complex-routing-example-1.md)
|
|
|
|
To replay a known layout, pass `--reference-lane-plan` for the shared bottom passage or `--single-bottom-track` for the one-track version. Use the unseeded command above for planner coverage and timing.
|
|
|
|
## Preplaced crossings
|
|
|
|
- `crossing-single` isolates port access on one placed cell with four straight external legs.
|
|
- `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. 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 importer cuts port openings in device keepouts and snaps optical ports to a 0.1 µm grid. One layout unit is 0.1 µm.
|
|
|
|
- [Converted geometry for all six cases](../inire/tests/data/external_routing_benchmarks.json)
|
|
|
|
| Cases | Pinned source | License |
|
|
| --- | --- | --- |
|
|
| 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). |
|
|
|
|
### 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
|
|
curl -fL 'https://huggingface.co/datasets/FLYR/pic-benchmark/resolve/0c1f445792926d97fae01893c89e96b8a9393800/pic-benchmark.zip' \
|
|
-o /tmp/inire-external-routing/pic-benchmark.zip
|
|
curl -fL 'https://codeload.github.com/ScopeX-ASU/LiDAR/tar.gz/4e7004d32b0b80d959553797fb30f0737513de0c' \
|
|
-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 \
|
|
--output /tmp/inire-external-routing/fixtures.json
|
|
cmp inire/tests/data/external_routing_benchmarks.json \
|
|
/tmp/inire-external-routing/fixtures.json
|
|
```
|