Initial buildout

This commit is contained in:
Jan Petykiewicz 2026-03-07 08:26:29 -08:00
commit 84b76d0f6a

View file

@ -0,0 +1,61 @@
# Benchmark fixtures
- [Benchmark cases](benchmarks.md#choose-a-case)
- [Corpus registry and profiles](../inire/tests/routing_corpus.py)
## 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 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 |
| --- | ---: | --- |
| `geometry-corners` | 32 | Exact four-bend spans, tight returns and paired routes, exact-span S-bend slots, mixed widths, and saturated or overloaded apertures. |
| `complex-layouts` | 24 | Serial aperture banks with opposing tracks, concave and fixed-route keepouts, and staggered crossing arrays. |
| `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. For a scaling comparison, use the same grid, mode, and budget across repeated runs.
- [Fixture definitions](../inire/tests/routing_expanded_benchmarks.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.
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)
- [Terminal-Bench tests](../inire/tests/test_terminal_bench.py)
## 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).
## Fabrication regression cases
The layout tests use process dimensions to exercise routing and placement replay.
| Case | Checks |
| --- | --- |
| Optical ports | Matching widths allow a direct link. A wider target needs a taper. |
| Authored lengths | Custom bend lengths are retained when the route is replayed. |
| Layers and process profiles | Independent planes retain layer assignment. Ordered profiles reserve earlier routes and apply their own bend limits. |
| 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)
### 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 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 geometry](../inire/tests/data/external_routing_benchmarks.json)
- [Fixture sources and licenses](../inire/tests/data/README.md)