Use the effective net, seed, and search settings as the placement recipe. Remove the export-grid, whole-layer, and CPW mask assembly helpers and cover replay from resolved ports.
36 lines
2.4 KiB
Markdown
36 lines
2.4 KiB
Markdown
# Routing examples
|
|
|
|
## Start with a connection
|
|
|
|
The [quick start](../README.md#route-a-net) uses one call to `route()` to connect two ports 200 units apart.
|
|
|
|

|
|
|
|
## Route a challenging layout
|
|
|
|

|
|
|
|
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).
|
|
|
|
## Optional workflows
|
|
|
|
After [installing Inire](../README.md#install), run the example scripts with Python from the repository root. Each saves a PNG in `examples/`.
|
|
|
|
### Route around fixed geometry
|
|
|
|

|
|
|
|
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).
|
|
|
|
<a id="fit-bends-to-available-room"></a>
|
|
|
|
### Set the bend geometry
|
|
|
|
- **Choose allowed radii and offsets.** The [radii and S-bends example](04_sbends_and_radii.py) supplies two 90-degree bend radii and a 5-unit S-bend offset.
|
|
- **Supply a custom bend shape.** The [custom bends example](08_custom_bend_geometry.py) sets a physical polygon for the waveguide and a separate box for collision checks during search. The [bend proxy comparison](06_bend_collision_models.py) shows how the same circular bend can use different shapes for collision checks.
|
|
|
|
<a id="diagnose-congestion-or-an-incomplete-route"></a>
|
|
|
|
### 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).
|