inire/docs/benchmark-fixtures.md

3.4 KiB

Benchmark fixtures

Use the checked-in inputs to repeat a routing comparison offline. The fixture catalogue gives the geometry, options, and expected bound for each case. Choose a case and profile · Fixture catalogue

Automatic nine-net Terminal-Bench routing

Use this as a check on ordered placement and heading inference. The upstream task supplies point terminals, so bundle mode can infer headings and reserve room for the outer return and bend tangencies. The export command starts from the unseeded input. Its nine routes passed the pinned checker below the upstream cost limit. Use the fixed-heading terminal-bench fixture to check automatic routing when the headings are part of the input. Bundle planner · Pinned upstream task

python -m scripts.route_terminal_bench --output /tmp/inire-terminal-bench.json

The export CLI's --reference-lane-plan and --single-bottom-track flags replay authored layouts for comparison. Use the unseeded export to measure the planner and the reference flags to check feasibility or compare lane assignments. Reference plan

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. The fixture witnesses are checked independently for geometry and clearance. Crossing definitions · Illustrated user workflow

Imported fixtures

The six fixed-placement cases run offline from converted inputs. Optical ports snap to a 0.1 µm grid. Device outlines become keepouts with access cutouts. PIC Routing Benchmark contributes splitter-tree, ring-modulator, and MZM cases. LiDAR contributes a toy layout and subsets of the Clements and MRR weight-bank layouts. These fixtures exercise waveguide routing between fixed devices. PIC data and CC BY 4.0 attribution · LiDAR source · LiDAR license

The importer checks both pinned archive hashes. It requires PyYAML when regenerating the fixtures.

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