inire/docs/topological-routing.md
Jan Petykiewicz a05980e8af Retire routing archives and consolidate documentation tooling
Generate the guide, walkthrough, and gallery figures from one command. Keep benchmark fixtures and attribution with the tests and fold the durable findings from completed plans into the guides.
2026-12-02 20:33:19 -08:00

5.7 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. Nets can reuse shared corridors when the mesh has open space around both ports and the area between them. A narrower mesh can recover missing corridors and add passages near keepouts or board edges. If a shared guide fails and a reserved route occupies that shared space, the worker can build a narrower mesh on demand. A straight path that fits in the shared mesh can supply its own alternate guide.

    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. Assign lanes jointly by reserving space on shared triangle edges as each net is planned.

  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. With at least two iterations and positive guidance strength, an explicit guided run that leaves unresolved nets can retry with the guidance cost disabled. Guide and seed modes can verify a complete supplied layout before building corridors.

    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

Near-port probe and retry experiments

In the November 26, 2026 experiments, a two-iteration cap reduced public-default corpus expansions by 23% against the full probe budget. Verified paths and costs matched on the corpus and holdouts under public-defaults and corpus-regression. The splitter tree still verified all six nets with less work. The mixed port bank used more expansions because the last net moved to a larger retry.

A one-iteration cap increased the cost of a crossing approach. The clipped-proxy case needed the full probe to find its cheaper route. The current two-iteration cap applies to the arc proxy. Automatic stage sequence

The pre-cap trials showed that failed early retries added work before fallback. Early incumbent recovery chose a higher-cost route at the same coverage on one holdout. In the public-default holdout sweep, the experimental late-residual-3000 policy recovered the last net on two crossing boards and a return shelf while preserving the verified paths. It required room in the caller's budget and connected residual ports with those paths locked. When changing retry order, measure failed attempts as well as recoveries.

The original probe tables are in git show 2b02c6e:docs/topological-routing.md. The earlier retry triggers, sweeps, and lane comparisons are in git show ea5cfe7:docs/topological-routing.md.