diff options
author | David Shah <dave@ds0.me> | 2019-02-27 11:18:39 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-03-22 10:31:54 +0000 |
commit | f8a38c59f89b5f432dbd968ac577a4190cec7358 (patch) | |
tree | bd9f5a4d512c8fcead51ae314a74489a029d67ce | |
parent | bd12c0a4866e0d67bedd1c40f1205e9168b5d428 (diff) | |
download | nextpnr-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>
-rw-r--r-- | common/nextpnr.cc | 3 |
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; |