Retire routing archives and consolidate documentation tooling

Generate the guide, walkthrough, and gallery figures from one command. Keep benchmark fixtures and attribution with the tests and fold the durable findings from completed plans into the guides.
This commit is contained in:
Jan Petykiewicz 2026-12-02 20:33:19 -08:00
commit a05980e8af

View file

@ -5,7 +5,7 @@
## Micron-scale routing cases
The `expanded` group adds 75 deterministic, unseeded boards with independently constructed reference routes. The authored grid units are 10, 100, 250, 500, and 1000 nm. Bend radii span 10–100 µm and trace widths span 1–20 µm. The comparison script records `grid_nm` for these boards and the imported fixtures. Convert benchmark-weighted lengths to microns by multiplying by `grid_nm / 1000`.
The `expanded` group adds 75 deterministic, unseeded boards with independently constructed reference routes. The authored grid units are 10, 100, 250, 500, and 1000 nm. Bend radii span 10–100 µm and trace widths span 1–20 µm. The fixtures include `grid_nm` for these boards and the imported layouts. Convert benchmark-weighted lengths to microns by multiplying by `grid_nm / 1000`.
| Group | Boards | Coverage |
| --- | ---: | --- |
@ -14,9 +14,7 @@ The `expanded` group adds 75 deterministic, unseeded boards with independently c
| `search-challenges` | 11 | Alternating comb walls and other tight passages that require repeated turns or exercise search-budget exhaustion. |
| `scaling` | 8 | Banks and crossing arrays of up to 256 nets, obstacle fields with up to 320 keepouts, and a 240-net board with 240 keepouts and four blocked approaches. |
Pytest verifies the 75 reference layouts and checks that unseeded routing reaches the known bound on every board. Use `--case search-challenges` or `--case scaling` with an explicit budget to compare routing policies on the harder boards. For scaling comparisons, use the same grid, mode, and budget and collect repeated timings with `--repeat`.
To exercise the low-budget fallbacks on tight geometry, run `--case geometry-corners --profile corpus-regression --mode automatic --nodes 1 --seed-nodes 1 --iterations 1`.
Pytest verifies the 75 reference layouts and checks that unseeded routing reaches the known bound on every board. For a scaling comparison, use the same grid, mode, and budget across repeated runs.
- [Fixture definitions](../inire/tests/routing_expanded_benchmarks.py)
@ -24,18 +22,11 @@ To exercise the low-budget fallbacks on tight geometry, run `--case geometry-cor
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.
The Terminal-Bench tests verify the unseeded point-terminal bundle and replay both reference lane plans.
- [Example gallery](../examples/advanced.md#complex-routing-example-1)
- [Complex-routing 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.
- [Terminal-Bench tests](../inire/tests/test_terminal_bench.py)
## Preplaced crossings
@ -57,33 +48,14 @@ The layout tests use process dimensions to exercise routing and placement replay
| Coplanar waveguide | Route the conductor and gap envelope from the same seed. With a 29.5 µm envelope and 3 µm clearance, 28 and 32 µm pitches fail and 36 µm passes. |
- [Layout regression tests](../inire/tests/test_layout.py)
- [Fabrication study](../plans/full-project-review.md#31-preserve-authored-lengths-when-rerouting-phase-sensitive-connections--medium)
### Phase-sensitive routes
In the Raymond fabrication study, the authored arms of `MZI9` measured 286.770 µm and 183.637 µm. A geometrically valid replacement for the longer arm measured 127.208 µm. It passed the EBeam design-rule check and changed the signed arm-length difference from +103.133 µm to −56.429 µm. Replaying a separate Bézier-based waveguide with circular bends changed its reported length from 156.137 µm to 154.948 µm. Compare the reported lengths against the circuit's tolerance before replacing a phase-sensitive route. [Raymond fabrication layout](https://github.com/SiEPIC/openEBL-2025-02/blob/a887476a301db2a014be007717cd1821e111f58e/submissions/EBeam_hannahraymond_MZIv21.gds) · [EBeam bend definitions](https://github.com/SiEPIC/SiEPIC_EBeam_PDK/blob/363fbb52eefa8669100499ab531d3fe7befc4867/klayout/EBeam/WAVEGUIDES.xml#L3-L15) · [Reported lengths](user/api-reference.md#results)
## 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.
The converted fixtures have port openings cut into device keepouts and use a 0.1 µm grid. The test suite reads the checked-in layouts.
- [Converted fixture geometry](../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
```
- [Converted geometry](../inire/tests/data/external_routing_benchmarks.json)
- [Fixture sources and licenses](../inire/tests/data/README.md)