inire/docs/benchmark-fixtures.md

3.7 KiB

Benchmark fixtures

Start with a board that exercises the behavior you want to measure. Use the case guide to select it or the corpus registry to find its groups and effective profile settings.

Automatic nine-net Terminal-Bench routing

Use terminal-bench-point-terminals to test heading inference and ordered tracks through shared openings. The bundle planner reserves room for the outer return and bend tangencies. Use terminal-bench to test automatic routing with fixed headings.

To measure the bundle planner on the unseeded point-terminal input, export its routes.

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

The export should report nine verified routes. The upstream input is board 1 in the pinned layout specification. The unseeded export passed the pinned checker's cost and geometry requirements.

To verify a known layout or compare lane assignments, pass --reference-lane-plan or --single-bottom-track to replay the authored lane plans. 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.

Imported fixtures

The importer converts placed device outlines to keepouts with port openings and snaps optical ports to a 0.1 µm grid. The six converted layouts exercise routing between fixed devices. To inspect their ports and keepouts, open the checked-in fixture data.

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