inire/docs/topological-routing.md

3.8 KiB

Topological routing

Guide mode suggests routes through connected free space. Seed mode also tries to realize those suggestions as physical paths. Run corridor benchmarks

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.

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

  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 · Trace guide

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 · LiDAR 2.0

Moved benchmark sections