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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user