Tie routing documentation to user and developer workflows
This commit is contained in:
parent
2d77877fff
commit
2c7a7ea90a
1 changed files with 309 additions and 148 deletions
|
|
@ -2,37 +2,46 @@
|
|||
|
||||
# Topological routing
|
||||
|
||||
Guide mode suggests routes through connected free space. Seed mode also tries to realize those suggestions as physical paths.
|
||||
Guide mode helps detailed search choose a passage through free space. Seed mode also tries to build a physical path through the passage before detailed search starts.
|
||||
|
||||
## Corridor planning and realization
|
||||
|
||||

|
||||
|
||||
The offset-gates fixture has two openings at different heights. The highlighted triangle edges form the corridor's portals. The dashed line shows the lane suggestion, and the solid S-bend shows the physical route that guide mode found.
|
||||
In offset gates, a route must change height between two openings. Read the panels from top to bottom. The highlighted triangle edges show the chosen portals, the dashed line joins the suggested crossing points, and the solid S-bend shows where detailed search fits a physical turn.
|
||||
|
||||
1. **Find connected space for centerlines.** Inset the board by half the widest net's width and expand obstacles by that half-width plus clearance. Shared edges of a constrained Delaunay triangulation act as portals. A short lead tries to attach each terminal to the mesh along its heading. Using the widest net gives the planner a common representation. Narrower nets may still find a path in lattice search through a passage this mesh excludes.
|
||||
2. **Choose a passage and a lane.** Rank portal sequences by distance, occupancy, and estimated overflow. Use lane samples and estimated turn room to select where to cross each portal without crowding another net's access. A different lane through the same portal can make space for a turn. Joint retries use that distinction to revise a shared passage assignment.
|
||||
3. **Turn the sketch into a path.** Guide mode adds soft costs and move suggestions, so detailed search can leave an awkward corridor. Seed mode first tries to find a physical path inside a corridor and verifies it against obstacles and earlier seeds. It gives the first corridor at least half the per-net budget when there are alternatives. Later detailed iterations can move an incumbent or try another guide. Final verification checks the actual routed geometry.
|
||||
1. **Find connected space for centerlines.** Inset the board by half the widest net's width and expand obstacles by that half-width plus clearance. A short lead tries to attach each terminal to the constrained Delaunay mesh along its heading. The common padding can exclude passages that a narrower net can still use in lattice search.
|
||||
|
||||
## When a corridor does not lead to a route
|
||||
<a id="design-background"></a>
|
||||
|
||||
- **No corridor reported.** Inspect `run.topology` from an explicit guide or seed run. Check snapped port access, mesh padding, and which passages remain connected.
|
||||
- **A corridor exists but seed search stalls.** Check terminal headings and the turn room around each chosen portal.
|
||||
- **Seeds reach their targets and the final routes overlap.** Inspect lane order and congestion before adding seed nodes. To locate each overlapping component, capture a [conflict trace](routing-diagnostics.md#traces).
|
||||
A portal is an edge shared by adjacent free-space triangles. For an earlier representation of a route by its crossings of triangle edges, see Section III-A and Figure 1 of [Hama and Etoh's curvilinear detailed-routing paper](https://www.cecs.uci.edu/~papers/compendium94-03/papers/1998/aspdac98/pdffiles/06c_3.pdf).
|
||||
|
||||
To investigate how passages and lane order are chosen, start with the [corridor planner](../inire/router/_topology.py).
|
||||
2. **Choose a passage and a lane.** Rank portal sequences by distance, occupancy, and estimated overflow. Along each chosen portal, sample crossing points and rank them by turn room and access reserved for other nets. A joint retry can move nets to different lanes through the same opening to make room for a turn. To change how candidate points are ranked, inspect [`assign_lanes()`](../inire/router/_topology.py#L214).
|
||||
|
||||
## Design background
|
||||
3. **Turn the sketch into a path.** Guide mode uses the corridor to suggest moves and add a soft cost, so search can leave it to make a turn. Seed mode first searches inside a corridor and checks any seed against obstacles and earlier seeds. With alternatives, the first corridor gets at least half the per-net seed budget. Later detailed iterations can move an incumbent or use another guide. Final verification checks the installed geometry.
|
||||
|
||||
- For the use of shared triangle edges in detailed routing, see [Curvilinear detailed routing](https://websrv.cecs.uci.edu/~papers/compendium94-03/papers/1998/aspdac98/pdffiles/06c_3.pdf).
|
||||
- For constraints specific to photonic waveguides, see [LiDAR 2.0](https://scopex-asu.github.io/files/publications/PD_TCAD2025_LiDARv2.pdf).
|
||||
A passage can be connected in the mesh and leave too little room to bend onto the target port's heading. For the bend-radius and port-alignment rules that constrain the physical route, see Section II-B of [LiDAR 2.0](https://arxiv.org/html/2505.17239v1#S2.SS2).
|
||||
|
||||
<a id="when-a-corridor-does-not-lead-to-a-route"></a>
|
||||
|
||||
## Diagnose a missing or colliding route
|
||||
|
||||
In an explicit guide or seed run, check `run.topology.corridor_counts` and `seeded_net_ids` when the worker returns a topology report.
|
||||
|
||||
- **No corridor is reported for the net.** Check that the snapped port can launch into free space along its heading. Inspect the keepouts and the padding at the suspected opening to see whether that passage is connected in the mesh.
|
||||
- **A corridor exists and the path stops short.** Look at the next turn from the end of the partial path. Compare the available space with the allowed radii and arrival heading. If the geometry fits, vary the [per-net seed budget](user/api-reference.md#topologyoptions) and compare whether seed mode reaches the target.
|
||||
- **The paths reach their ports and overlap.** Use the [conflict trace](routing-diagnostics.md#find-overlapping-components) to identify the nets and the overlapping components. Locate those components on the board. If both nets compete for the same opening, inspect their lane order and available turn room before increasing the seed budget.
|
||||
|
||||
<a id="moved-benchmark-sections"></a>
|
||||
|
||||
## Reproduce a routing comparison
|
||||
|
||||
- <a id="benchmark-corpus"></a>To select a board that exercises the behavior you are studying, use the [benchmark case guide](benchmarks.md#choose-a-case).
|
||||
- <a id="reproduce-a-comparison"></a>To compare off, guide, and seed on offset gates, run the [matched-budget example](benchmarks.md#compare-routing-modes).
|
||||
- <a id="probe-budget-and-coverage"></a><a id="retry-experiments"></a>To check a change to probe limits or retry order, see the [prior experiments](benchmark-results.md#near-port-probe-and-retry-experiments).
|
||||
- <a id="automatic-nine-net-terminal-bench-routing"></a><a id="imported-fixtures"></a>To reproduce an upstream workload, see the [Terminal-Bench and imported fixtures](benchmark-fixtures.md).
|
||||
- <a id="experiment-archive"></a>To recover prior measurements and their commands, consult the [experiment archive](benchmark-results.md#experiment-archive).
|
||||
<a id="reproduce-a-comparison"></a>
|
||||
|
||||
On offset gates, guide and seed can finish at the same cost. To see whether the seed saves search work at a shared node budget, compare expansions and seeded IDs in the [matched-budget example](benchmarks.md#compare-routing-modes).
|
||||
|
||||
### Benchmark fixtures and prior runs
|
||||
|
||||
- <a id="benchmark-corpus"></a>To repeat the comparison on a different geometry, pick a layout from the [benchmark case guide](benchmarks.md#choose-a-case).
|
||||
- <a id="automatic-nine-net-terminal-bench-routing"></a><a id="imported-fixtures"></a>For pinned inputs and regeneration commands, see the [Terminal-Bench and imported fixtures](benchmark-fixtures.md).
|
||||
- <a id="probe-budget-and-coverage"></a><a id="retry-experiments"></a><a id="experiment-archive"></a>For measured changes to probe limits or retry order and the commands that produced them, see the [prior experiments](benchmark-results.md#near-port-probe-and-retry-experiments).
|
||||
|
|
|
|||
Loading…
Reference in a new issue