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:
parent
8b32d68496
commit
eac083a37d
2 changed files with 1034 additions and 594 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Start with a connection
|
||||
|
||||
The [quick start](../README.md#route-a-net) uses one call to `route()` to connect two ports 200 units apart.
|
||||
- [Run the quick start](../README.md#route-a-net)
|
||||
|
||||

|
||||
|
||||
|
|
@ -10,7 +10,9 @@ The [quick start](../README.md#route-a-net) uses one call to `route()` to connec
|
|||
|
||||

|
||||
|
||||
Inire verifies all nine connections on this board. One waveguide links the two preplaced crossings, and the long lower route passes beneath both south approaches. For the runnable setup and more boards, see the [advanced gallery](advanced.md).
|
||||
All nine routes verify. Follow the long lower route beneath both south approaches.
|
||||
|
||||
- [Run this layout and browse other advanced cases](advanced.md)
|
||||
|
||||
## Optional workflows
|
||||
|
||||
|
|
@ -20,7 +22,10 @@ After [installing Inire](../README.md#install), run the example scripts with Pyt
|
|||
|
||||

|
||||
|
||||
The first call routes a straight waveguide. `FixedRoute.from_result()` reserves its exact polygons, so the new connection detours around one end of the fixed route. Run [`03_locked_paths.py`](03_locked_paths.py) to plot the detour and print its resolved net and placement recipe. To hold a route fixed in your own design, follow the [route reuse workflow](../docs/user/route-a-layout.md#reuse-an-existing-route).
|
||||
`FixedRoute.from_result()` reserves the straight route. The next connection detours around its end.
|
||||
|
||||
- [Runnable fixed-route example](03_locked_paths.py)
|
||||
- [Reuse a route in your own layout](../docs/user/route-a-layout.md#reuse-an-existing-route)
|
||||
|
||||
<a id="fit-bends-to-available-room"></a>
|
||||
|
||||
|
|
@ -33,4 +38,7 @@ The first call routes a straight waveguide. `FixedRoute.from_result()` reserves
|
|||
|
||||
### Inspect an incomplete route
|
||||
|
||||
In the [best-effort example](09_unroutable_best_effort.py), the path stops after its first turn at `node_limit=3` and reaches its target at 500. Compare the two paths to see [where the node budget matters](../docs/user/tune-and-troubleshoot.md#why-a-net-stopped-short).
|
||||
At `node_limit=3`, the route stops after its first turn. At 500 it reaches the target.
|
||||
|
||||
- [Run the best-effort example](09_unroutable_best_effort.py)
|
||||
- [Diagnose a partial route](../docs/user/tune-and-troubleshoot.md#why-a-net-stopped-short)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue