inire/docs/benchmark-fixtures.md

5.7 KiB
Raw Blame History

Benchmark fixtures

Micron-scale routing cases

The expanded group adds 72 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. 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 8 Alternating comb walls that force repeated turns and 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.

The 72 reference layouts run in pytest. The corner and complex groups and seven scaling boards also have unseeded coverage assertions at the regression budget. Use --case search-challenges or --case scaling with an explicit budget to measure search and coverage 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.

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.

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.

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.

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.

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.

Cases Pinned source License
Splitter tree, ring modulator, and MZM FLYR PIC Routing Benchmark archive FLYR's bundled LICENSE specifies CC BY 4.0.
Toy layout and subsets of the Clements and MRR weight-bank layouts LiDAR benchmark inputs ScopeX@ASU's MIT license.

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.

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