Illustrate the intermediate stages of complex-routing example 1

This commit is contained in:
Jan Petykiewicz 2026-11-27 19:28:48 -08:00
commit c3e420eadb

View file

@ -1,11 +1,11 @@
# 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 Terminal-Bench cases.
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.
- [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.
- [Placed crossings](#placed-crossings) for access slots and external detours.
- [Nine-net Terminal-Bench board](#nine-net-terminal-bench-board) for fixed and inferred headings on the same input.
- [Complex-routing example 1](#complex-routing-example-1) for fixed and inferred headings on the same input.
## Run a layout
@ -14,7 +14,7 @@ Select a case by its name below. Repeat `--case` to draw several layouts, or omi
```sh
python examples/advanced_layouts.py \
--case stress-crossings-shared-outside-detour \
--case terminal-bench \
--case complex-routing-example-1 \
--output-dir /tmp/inire-advanced-routes
```
@ -90,20 +90,20 @@ In `stress-crossings-shared-outside-detour`, a straight external waveguide joins
![Nine verified paths around two crossings. A straight route joins the devices, and a long lower detour passes beneath both approaches.](../docs/figures/example-stress-crossings-shared-outside-detour.png)
## Nine-net Terminal-Bench board
## Complex-routing example 1
Nine closely spaced source ports on the left feed routes around seven keepouts. Both examples use guides 2 units wide, a clearance of 6 units, and a radius of 50 units for bends and S-bends. For the original board data and the waypoint export command, see the [Terminal-Bench fixture guide](../docs/benchmark-fixtures.md#automatic-nine-net-terminal-bench-routing).
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)
To follow how the router builds and checks the paths in these figures, read the [Terminal-Bench walkthrough](../docs/terminal-bench-walkthrough.md).
To see the lane plan, turnaround, and refinement, follow the [illustrated walkthrough](../docs/complex-routing-example-1.md).
### Fixed eastbound headings
In `terminal-bench`, all routes must leave and arrive heading east. Follow `net_08` from the bottommost source around the board. Near the top edge, it turns back to approach its target from the west.
In `complex-routing-example-1`, all routes must leave and arrive heading east. Follow `net_08` from the bottommost source around the board. Near the top edge, it turns back to approach its target from the west.
![All nine fixed-heading nets verified. The outer return comes back around and makes an eastbound approach to its top target.](../docs/figures/example-terminal-bench.png)
![All nine fixed-heading nets verified. The outer return comes back around and makes an eastbound approach to its top target.](../docs/figures/example-complex-routing-example-1.png)
### Point terminals
In `terminal-bench-point-terminals`, the coordinates are the same and `infer_terminal_headings=True` lets the planner choose directions. The setup shows just the port positions. In the result, `net_08` enters its target from the east and avoids the final turnaround.
In `complex-routing-example-1-point-terminals`, `infer_terminal_headings=True` lets the planner choose directions at the same port coordinates. In the result, `net_08` enters its target from the east and avoids the final turnaround.
![The setup shows the port positions without arrows. All nine routes verify, and the outer return arrives westbound.](../docs/figures/example-terminal-bench-point-terminals.png)
![The setup shows the port positions without arrows. All nine routes verify, and the outer return arrives westbound.](../docs/figures/example-complex-routing-example-1-point-terminals.png)