Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

PathFinder

Also known as Negotiated congestion

routing connector-routing

PathFinder routes many connectors together by negotiated congestion: connectors compete for channels (stretches of free space between obstacles) of limited capacity, and the ones with alternatives move away. Each iteration routes the connectors one by one with A*, and an edge costs more where its channel would be over capacity. After each iteration, the history cost of every overused channel grows and the present penalty doubles. Later iterations rip up and reroute only the connectors on an overused channel, until none is overused or an iteration limit is reached. It is a heuristic with no optimality guarantee; it reports the overuse that is left.

Pseudocode

algorithm RouteAll(C, G, k)input: connectors C on the orthogonal visibility graph G, at most k iterationsoutput: one route per connector, the overuse left and the certain crossingsC ← sort(C)                         ▷ by decreasing port distance, ties by indexhistory[r] ← 0                      ▷ for every resource r: a (slab, gap) channel cross-sectionpresent ← p₀for i in 1, …, k doU ← connectors c with route[c] = nil or route[c] on an overused resourceif U = ∅ thenbreakfor each c in U do                ▷ in the order of Crip-up(route[c])                ▷ frees its tracks and straight passesroute[c] ← a-star(G, c, congestion-cost)commit(route[c])if overuse() = 0 thenbreakfor each r in resources dohistory[r] ← history[r] + Δh · over[r]present ← 2 · presentreturn route, overuse(), crossings()function congestion-cost(e)▷ over[r] counts this connector too; capacity[r] = ⌊height[r] / separation⌋ + 1▷ plus a crossing penalty for passing straight through a perpendicular straight passreturn ∑ over r in resources(e) of base[r] · (1 + history[r]) · (1 + present · over[r])

In the crates

  • connector-routing

    Global routing with PathFinder negotiated congestion over channel capacities, crossing penalties and deterministic net order.

    route_all

Lineage

Comes from

builds on A*

combines Rip-up and reroute

Led to

Orthogonal drawing pipeline combines it

Papers

  1. PathFinder: A Negotiation-Based Performance-Driven Router for FPGAs Larry McMurchie, Carl Ebeling · 1995· ACM Third International Symposium on Field-Programmable Gate Arrays (FPGA '95) introduces doi 10.1145/201310.201328