mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-10-07 10:24:00 +02:00
setup_wires() marks wires bound above STRENGTH_PLACER (e.g. ECP5 global
clocks pre-routed at STRENGTH_LOCKED) with the RESERVED_UNAVAILABLE (-2)
sentinel. reserve_driver_wires_for_arc() already stops at that sentinel
(6b58ca1376), but reserve_sink_wires_for_arc() did not: it read -2 as a
reservation by another net, took the log_error branch, and
nets_by_udata.at(-2) threw std::out_of_range, aborting router2.
Mirror the driver-side guard on the sink walk.
Fixes #1823
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>