Refine routing geometry checks and streamline documentation

Report coincident terminals and unusable seeds per net, update custom bend handling and verification, and cover the revised behavior with regression tests.

Shorten the user and developer guides around reader tasks and keep the illustrated routing walkthrough and reference links easy to find.
This commit is contained in:
Jan Petykiewicz 2026-11-29 23:12:28 -08:00
commit eac083a37d

View file

@ -1,6 +1,6 @@
# Advanced routing examples
Compare the input board and the calculated routes on layouts with tight turns, shared openings, or preplaced crossing cells. The layouts come from Inire's stress tests and the nine-net example.
Route stress-test boards with shared openings, tight turns, and placed crossings.
- [Competing passages](#competing-passages) for different guide widths and routes travelling in both directions.
- [Bend and return room](#bend-and-return-room) for alternating detours, short shifts, and branches.
@ -18,7 +18,7 @@ python examples/advanced_layouts.py \
--output-dir /tmp/inire-advanced-routes
```
The [layout data](advanced-layouts.json) lists board bounds, polygon keepouts in well-known text (WKT), clearance, and allowed radii. Each net row contains its ID, source port, target port, and width. A port is `[x, y, heading_in_degrees]`, with the target heading giving the direction of arrival. The [example script](advanced_layouts.py) turns the data into a `RoutingProblem` and routes it automatically.
The [layout data](advanced-layouts.json) describes keepouts as WKT and ports as `[x, y, heading_in_degrees]`. The [runner](advanced_layouts.py) loads each case into a `RoutingProblem` and uses automatic routing.
In the figures, gray shapes are keepouts. Open circles mark sources and filled squares mark targets. Arrows indicate the direction of travel at those ports. The result panel draws the physical waveguides and reports the number of nets that passed verification.
@ -70,7 +70,9 @@ In `stress-retry-mixed-port-bank`, the two short routes connect offset ports on
## Placed crossings
The crossing cells are already placed. The board supplies keepouts with slots at their ports, and each routed net represents an external connection. To set up the keepouts for your own devices, follow the [placed crossing walkthrough](../docs/user/route-a-layout.md#route-between-placed-crossings).
The cells are already placed. Slots in their keepouts give the external routes access to each port.
- [Set up your own crossing cells](../docs/user/route-a-layout.md#route-between-placed-crossings)
### Opposed S-bends beside a crossing
@ -92,9 +94,10 @@ In `stress-crossings-shared-outside-detour`, a straight external waveguide joins
## Complex-routing example 1
Nine closely spaced source ports on the left feed routes around seven keepouts. Both variants use guides 2 units wide, a clearance of 6 units, and a radius of 50 units for bends and S-bends. [Fixture and waypoint export](../docs/benchmark-fixtures.md#complex-routing-example-1)
Nine source ports feed routes around seven keepouts. Both variants use width 2, clearance 6, and bend radius 50.
To see the lane plan, turnaround, and refinement, follow the [illustrated walkthrough](../docs/complex-routing-example-1.md).
- [Lane assignment, turnaround, and refinement](../docs/complex-routing-example-1.md)
- [Fixture and waypoint export](../docs/benchmark-fixtures.md#complex-routing-example-1)
### Fixed eastbound headings