1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-04 07:43:23 +00:00

common: Add early return path to getNetinfoRouteDelay for fully unrouted nets

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah
2019-02-27 11:18:39 +00:00
parent bd12c0a486
commit f8a38c59f8

View File

@@ -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;