aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-02-27 11:18:39 +0000
committerDavid Shah <dave@ds0.me>2019-03-22 10:31:54 +0000
commitf8a38c59f89b5f432dbd968ac577a4190cec7358 (patch)
treebd9f5a4d512c8fcead51ae314a74489a029d67ce /common
parentbd12c0a4866e0d67bedd1c40f1205e9168b5d428 (diff)
downloadnextpnr-f8a38c59f89b5f432dbd968ac577a4190cec7358.tar.gz
nextpnr-f8a38c59f89b5f432dbd968ac577a4190cec7358.tar.bz2
nextpnr-f8a38c59f89b5f432dbd968ac577a4190cec7358.zip
common: Add early return path to getNetinfoRouteDelay for fully unrouted nets
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr.cc3
1 files changed, 3 insertions, 0 deletions
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;