Tie documentation links to reader workflows
This commit is contained in:
parent
ec2768853e
commit
a029791f33
3 changed files with 161 additions and 119 deletions
|
|
@ -27,7 +27,7 @@ Omitting `options` uses `RoutingOptions()`. To observe live congestion iteration
|
|||
|
||||
## Path seeds
|
||||
|
||||
`PathSeed(segments)` holds an ordered tuple of `StraightSeed(length)`, `Bend90Seed(radius, direction)`, and `SBendSeed(offset, radius)` moves. Bend directions are `"CW"` and `"CCW"`. A seed is materialized from the net's current start port using its width and the run's geometry options. [Seed and lock workflows](route-a-layout.md#reuse-an-existing-route)
|
||||
`PathSeed(segments)` holds an ordered tuple of `StraightSeed(length)`, `Bend90Seed(radius, direction)`, and `SBendSeed(offset, radius)` moves. Bend directions are `"CW"` and `"CCW"`. A seed is materialized from the net's current start port using its width and the run's geometry options. For a workflow that starts from an existing route, see [Reuse an existing route](route-a-layout.md#reuse-an-existing-route).
|
||||
|
||||
## Results
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ Omitting `options` uses `RoutingOptions()`. To observe live congestion iteration
|
|||
| `RoutingRunResult.automatic` | In automatic mode, the selected planner, verified IDs, stage history, and any capacity or port-conflict bound. `None` for explicit modes. |
|
||||
| `RoutingRunResult.topology` and `metrics` | Corridor counts and seed work when reported by the selected worker, plus work counters across the run. |
|
||||
|
||||
See [how to read the result](tune-and-troubleshoot.md#read-the-result) for export checks and [developer diagnostics](../routing-diagnostics.md) for reports and traces.
|
||||
Before using a route's physical polygons in your layout, follow the [export checks](tune-and-troubleshoot.md#read-the-result).
|
||||
|
||||
## Options and defaults
|
||||
|
||||
|
|
@ -121,4 +121,14 @@ Increase the iteration limit when later reroutes might resolve conflicts. Adjust
|
|||
|
||||
### DiagnosticsOptions
|
||||
|
||||
The flags default to `False`. Use `capture_expanded` to plot explored states or `capture_iteration_trace` to attribute search work per net and iteration. For clearance conflicts, `capture_conflict_trace` reports overlapping pairs, `capture_frontier_trace` examines prunes near final hotspots, and `capture_pre_pair_frontier_trace` examines the state before pair-local repair. [Trace fields and examples](../routing-diagnostics.md#traces)
|
||||
The flags default to `False`.
|
||||
|
||||
| Flag | Use it to |
|
||||
| --- | --- |
|
||||
| `capture_expanded` | Plot the states explored by search. |
|
||||
| `capture_iteration_trace` | Attribute search work to individual nets and iterations. |
|
||||
| `capture_conflict_trace` | Find overlapping pairs of routes. |
|
||||
| `capture_frontier_trace` | Examine pruning near a final overlap. |
|
||||
| `capture_pre_pair_frontier_trace` | Inspect the routing state before pair-local repair. |
|
||||
|
||||
For the corresponding result fields and a worked trace, see the [developer diagnostics](../routing-diagnostics.md#traces).
|
||||
|
|
|
|||
|
|
@ -7,8 +7,10 @@ Start with the [first route](../../README.md#route-a-net), then replace the exam
|
|||
1. **Choose a coordinate unit.** Inire snaps port coordinates to an integer grid. Choose a unit fine enough to preserve narrow gaps, and use it for widths, radii, clearance, and bounds too.
|
||||
2. **Set source and target headings.** Heading 0 points east and 90 points north. The source heading points along the launch. The target heading points along the arrival. If your device library labels the target port with its outward heading, reverse it by 180 degrees.
|
||||
3. **Add a net for each connection.** Give each `NetSpec` a unique ID and the guide width. Set your process limits through `SearchOptions` and choose the required clearance on `RoutingProblem`.
|
||||
4. **Add keepouts.** Supply Shapely polygons in `static_obstacles` and use `bounds` for the board rectangle. Leave enough access at the ports for the guide and its permitted bends. [Input fields](api-reference.md#layout-inputs)
|
||||
5. **Run and check.** Call `route(problem, options=options)` and check each `result.is_valid`. Start with automatic mode for general layouts. [Read the result](tune-and-troubleshoot.md#read-the-result)
|
||||
4. **Add keepouts.** Supply Shapely polygons in `static_obstacles` and use `bounds` for the board rectangle. Leave enough access at the ports for the guide and its permitted bends.
|
||||
5. **Run and check.** Call `route(problem, options=options)`. Start with automatic mode for general layouts and [check each net before export](tune-and-troubleshoot.md#read-the-result).
|
||||
|
||||
For the constructor signatures and field defaults, see the [layout input reference](api-reference.md#layout-inputs).
|
||||
|
||||
<a id="connect-a-preplaced-crossing"></a>
|
||||
|
||||
|
|
@ -67,7 +69,7 @@ Before export, check the port joins and clearance against the actual placed-cell
|
|||
|
||||
## Reuse an existing route
|
||||
|
||||
- **Give the router a route it can move.** Put `result.as_seed()` in `initial_paths` under the net's ID. A seed uses the current start port, width, and geometry settings. A partial seed can suggest an approach.
|
||||
- **Give the router a route it can move.** Put `result.as_seed()` in `initial_paths` under the net's ID. A seed uses the current start port, width, and geometry settings. A partial seed can suggest an approach. To build a hint from turns and straights, see the [path seed reference](api-reference.md#path-seeds).
|
||||
- **Hold a route fixed.** Add `result.locked_geometry` to `static_obstacles` while routing other nets. The next run applies its own clearance.
|
||||
|
||||
To reuse the verified routes from a first problem as fixed obstacles, add them to a second problem that contains the remaining nets.
|
||||
|
|
@ -93,4 +95,4 @@ second = route(replace(
|
|||
))
|
||||
```
|
||||
|
||||
See the [locked-path example](../../examples/README.md#route-around-fixed-geometry) for the resulting detour and the [seed reference](api-reference.md#path-seeds) for building a hint by hand.
|
||||
To see the second route detour around a fixed path, run the [locked-path example](../../examples/README.md#route-around-fixed-geometry).
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ Check whether the layout can fit the connection before spending more search time
|
|||
| `partial` | Inspect where the path ends. Check the next turn, available radius, and search limit. |
|
||||
| `unroutable` | No path was returned. Check the launch heading and room for the first straight or bend. |
|
||||
|
||||
Check `is_valid` before exporting. With explicit `off`, `guide`, or `seed` mode, also check that the physical polygons fit the board if your export requires containment. Automatic mode includes that check in candidate verification. [Result fields](api-reference.md#results)
|
||||
Check `is_valid` before exporting. With explicit `off`, `guide`, or `seed` mode, also check that the physical polygons fit the board if your export requires containment. Automatic mode includes that check in candidate verification.
|
||||
|
||||
## Why a net stopped short
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ Check `is_valid` before exporting. With explicit `off`, `guide`, or `seed` mode,
|
|||
|
||||

|
||||
|
||||
Both runs use the best-effort example's ports, obstacles, radii, and iteration settings. At three nodes per search, the dashed path stops before the obstacles. At 500, the solid path reaches the westbound target. [Runnable best-effort example](../../examples/09_unroutable_best_effort.py)
|
||||
The dashed route stops short at three nodes per search. To reproduce both outcomes, try 3 and 500 with the same layout and options in the [best-effort example](../../examples/09_unroutable_best_effort.py).
|
||||
|
||||
## Choose a routing mode
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ Set `TopologyOptions(mode=...)` and pass it as `topology` in `RoutingOptions`.
|
|||
|
||||
- Guide and seed modes require constrained triangulation from Shapely 2.1 with GEOS 3.10 or newer. Caller-supplied seeds take precedence, and nets without a corridor can use ordinary lattice search.
|
||||
- Enable `infer_terminal_headings` for point terminals with flexible headings. Preserve fixed headings when a device requires a specific arrival direction.
|
||||
- In automatic mode, smaller initial budgets make the first attempts cheaper. If coverage remains below the bound, a lattice fallback can use your configured ceiling. Automatic also uses lattice for custom bend geometry or when constrained triangulation is unavailable. [Automatic stage order](../architecture.md#automatic-routing)
|
||||
- In automatic mode, smaller initial budgets make the first attempts cheaper. If coverage remains below the bound, a lattice fallback can use your configured ceiling. Automatic also uses lattice for custom bend geometry or when constrained triangulation is unavailable.
|
||||
|
||||
## Choose the next setting
|
||||
|
||||
|
|
@ -63,4 +63,4 @@ faster_refinement = replace(
|
|||
run = route(problem, options=faster_refinement)
|
||||
```
|
||||
|
||||
[Option defaults](api-reference.md#options-and-defaults) · [Deeper diagnostics](../routing-diagnostics.md)
|
||||
For accepted values and defaults, use the [option reference](api-reference.md#options-and-defaults).
|
||||
|
|
|
|||
Loading…
Reference in a new issue