Separate user guides, benchmarks, and routing internals
This commit is contained in:
parent
24559bb6aa
commit
e4d5952677
1 changed files with 846 additions and 270 deletions
|
|
@ -1,23 +1,35 @@
|
|||
# Routing examples
|
||||
|
||||
Run an example from the repository root after [installation](../README.md#install). Each script saves a PNG alongside its source.
|
||||
Run these scripts from the repository root after [installation](../README.md#install). Each script saves a PNG alongside its source.
|
||||
|
||||
```sh
|
||||
python examples/01_simple_route.py
|
||||
```
|
||||
|
||||
| Example | What it demonstrates | Plot |
|
||||
| --- | --- | --- |
|
||||
| [Simple route](01_simple_route.py) | Create a problem, route one net, and check validity. | [PNG](01_simple_route.png) |
|
||||
| [Congestion resolution](02_congestion_resolution.py) | Separate three nets that compete for routing space. | [PNG](02_congestion_resolution.png) |
|
||||
| [Locked paths](03_locked_paths.py) | See how a second net detours around an existing route. Use the API guide for the public version of this workflow. | [PNG](03_locked_paths.png) |
|
||||
| [S-bends and radii](04_sbends_and_radii.py) | Route compact offsets with specified bend radii. | [PNG](04_sbends_and_radii.png) |
|
||||
| [Port orientations](05_orientation_stress.py) | Route nets with perpendicular and opposing headings. | [PNG](05_orientation_stress.png) |
|
||||
| [Bend proxies](06_bend_collision_models.py) | Compare an arc, a bounding-box proxy for an arc, and a custom physical bend. | [PNG](06_bend_collision_models.png) |
|
||||
| [Fan-out](07_large_scale_routing.py) | Inspect where search spends work around a bottleneck. This advanced example adjusts the heuristic between iterations through the internal worker. | [PNG](07_large_scale_routing.png) |
|
||||
| [Custom bends](08_custom_bend_geometry.py) | Supply separate physical and proxy polygons. | [PNG](08_custom_bend_geometry.png) |
|
||||
| [Best-effort results](09_unroutable_best_effort.py) | Inspect the endpoint of a partial path when search runs with a deliberately tiny budget. | [PNG](09_unroutable_best_effort.png) |
|
||||
## Start with a connection
|
||||
|
||||
In route plots with the physical overlay enabled, dashed outlines show search proxies and solid outlines show physical geometry. Use the solid outlines to inspect physical clearance. Red paths need attention. Check `result.outcome` to tell an incomplete path from one that reached the target with a collision. [Read the result](../DOCS.md#read-the-result) · [Lock a route with the public API](../DOCS.md#incremental-routing-with-locked-geometry)
|
||||
- [Simple route](01_simple_route.py) connects one pair of ports and checks validity. For copyable code and its plot, use the [README quick start](../README.md#route-a-net).
|
||||
- [Port orientations](05_orientation_stress.py) explores routes with perpendicular or opposing headings. [Plot](05_orientation_stress.png)
|
||||
|
||||
To see the difference between an unfinished search and a blocked layout, try raising `node_limit` to `500` in the best-effort example. The same geometry then routes to completion. [Tune a run](../DOCS.md#tune-a-run)
|
||||
## Route around fixed geometry
|
||||
|
||||

|
||||
|
||||
The first route runs straight. The second must turn around its left end to reach the other side. Run the [locked-path example](03_locked_paths.py), or use the [public API workflow](../docs/user/route-a-layout.md#reuse-an-existing-route) to pass fixed polygons into another run.
|
||||
|
||||
## Fit bends to available room
|
||||
|
||||

|
||||
|
||||
The short path fits a small offset with an S-bend. The longer path has room for a pair of right-angle bends. Run [S-bends and radii](04_sbends_and_radii.py) to see both geometries.
|
||||
|
||||
- [Bend proxies](06_bend_collision_models.py) compares an arc, a box proxy for an arc, and a custom physical bend. [Plot](06_bend_collision_models.png)
|
||||
- [Custom bends](08_custom_bend_geometry.py) provides separate physical and proxy polygons. [Plot](08_custom_bend_geometry.png)
|
||||
|
||||
## Diagnose congestion or an incomplete route
|
||||
|
||||
- [Congestion resolution](02_congestion_resolution.py) separates nets that compete for the same space. [Plot](02_congestion_resolution.png)
|
||||
- [Best-effort result](09_unroutable_best_effort.py) stops after a tiny search budget. Try `node_limit=500` and compare the two outcomes on the [troubleshooting page](../docs/user/tune-and-troubleshoot.md#why-a-net-stopped-short).
|
||||
- [Fan-out](07_large_scale_routing.py) overlays search states around a bottleneck. This advanced example adjusts the heuristic between iterations through the internal worker. [Plot](07_large_scale_routing.png)
|
||||
|
||||
In plots with a physical overlay, dashed outlines show search proxies and solid outlines show physical geometry. Use the physical outlines to inspect clearance and `result.outcome` to interpret red paths. [Result guide](../docs/user/tune-and-troubleshoot.md#read-the-result)
|
||||
|
|
|
|||
Loading…
Reference in a new issue