# Topological routing Guide mode suggests routes through connected free space. Seed mode also tries to realize those suggestions as physical paths. [Run corridor benchmarks](benchmarks.md#compare-routing-modes) ## Corridor planning and realization ![Three views of the offset-gates fixture. The first highlights crossed triangle edges. The second links sampled lanes. The third shows the solid physical route deviating from the dashed lane sketch.](figures/corridor-realization.png) The offset-gates fixture has two openings at different heights. The mesh highlights the portals used by the chosen corridor. The dashed lane remains angular, while detailed guide-mode search fits an S-bend between the openings. [Reproduce the mode comparison](benchmarks.md#compare-routing-modes) 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. ## When a corridor does not lead to a route - **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. [Mesh and lane allocation](../inire/router/_topology.py) · [Trace guide](routing-diagnostics.md#traces) For the design background on routing through shared triangle edges and on constraints specific to photonic waveguides, see the earlier detailed-routing work. [Curvilinear detailed routing](https://websrv.cecs.uci.edu/~papers/compendium94-03/papers/1998/aspdac98/pdffiles/06c_3.pdf) · [LiDAR 2.0](https://scopex-asu.github.io/files/publications/PD_TCAD2025_LiDARv2.pdf) ## Moved benchmark sections - [Choose a benchmark case](benchmarks.md#choose-a-case) - [Compare routing modes](benchmarks.md#compare-routing-modes) - [Probe and retry measurements](benchmark-results.md#near-port-probe-and-retry-experiments) - [Early and late retries](benchmark-results.md#early-and-late-retries) - [Reproduce Terminal-Bench routing](benchmark-fixtures.md#automatic-nine-net-terminal-bench-routing) - [Sources and regeneration](benchmark-fixtures.md#imported-fixtures) - [Find the archived measurements and scripts](benchmark-results.md#experiment-archive)