inire/docs/topological-routing.md
Jan Petykiewicz eac083a37d Refine routing geometry checks and streamline documentation
Report coincident terminals and unusable seeds per net, update custom bend handling and verification, and cover the revised behavior with regression tests.

Shorten the user and developer guides around reader tasks and keep the illustrated routing walkthrough and reference links easy to find.
2026-11-29 23:12:28 -08:00

3.9 KiB

Topological routing

guide suggests a passage for detailed search. seed tries to build a starting path through that passage first.

Corridor planning and realization

Three views of the offset-gates fixture. The first highlights proposed triangle edges to cross, the second connects chosen crossing points, and the third shows the solid verified path beside the dashed suggestion.

Read the panels from top to bottom. Follow the crossed triangle edges, the suggested crossing points, then the S-bend in the verified route.

  1. Find space for centerlines. Inset the board by half the widest guide's width. Expand obstacles by that amount plus clearance. Try a straight port lead to reach the mesh, or use the port itself. A flush port can reach the inset mesh via a lead whose flat end fits on the board. If a narrow net has no passage, retry with its own width.

    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.

  2. Choose a passage and a lane. Rank passages by distance and competing nets. Place lanes on shared triangle edges according to turn room and reservations. A joint retry can move lanes for several nets.

  3. Turn the sketch into a path. Guide mode suggests moves and adds a soft cost. Seed mode searches within a corridor and checks the resulting seed against obstacles and earlier seeds. With alternatives, it allocates at least half the seed budget to the first corridor.

    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.

Diagnose a missing or colliding route

In an explicit guide or seed run, run.topology.corridor_counts shows how many passages the planner found per net. In seed mode, run.topology.seeded_net_ids shows which nets received a generated starting path.

  • 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 and compare whether seed mode reaches the target.
  • The paths reach their ports and fail clearance checks. Use the conflict trace to identify the pair and locate the components. If they share an opening, check which lanes the routes used and where they turned. A turn inside the opening may leave too little room for the neighboring route.

Reproduce a routing comparison

Compare expansions and seeded IDs on offset gates at the same search budget.

Benchmark fixtures and prior runs