From f8a38c59f89b5f432dbd968ac577a4190cec7358 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 27 Feb 2019 11:18:39 +0000 Subject: common: Add early return path to getNetinfoRouteDelay for fully unrouted nets Signed-off-by: David Shah --- common/nextpnr.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/nextpnr.cc b/common/nextpnr.cc index b0cbbbeb..54333b15 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -221,6 +221,9 @@ delay_t Context::getNetinfoRouteDelay(const NetInfo *net_info, const PortRef &us return 0; #endif + if (net_info->wires.empty()) + return predictDelay(net_info, user_info); + WireId src_wire = getNetinfoSourceWire(net_info); if (src_wire == WireId()) return 0; -- cgit v1.2.3