diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-30 09:46:07 +0100 |
---|---|---|
committer | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-30 09:46:07 +0100 |
commit | 412c920e94b44451fab15069fa220a82025971b3 (patch) | |
tree | 5a291cce3831b5ca1aea9fa412438643e2834a6f /common/nextpnr.cc | |
parent | 3b9bde533a6a86f6ae5b3902e55a6f649d092608 (diff) | |
parent | 44726a1785ff060e4ce32da53418ccc03b6d5932 (diff) | |
download | nextpnr-412c920e94b44451fab15069fa220a82025971b3.tar.gz nextpnr-412c920e94b44451fab15069fa220a82025971b3.tar.bz2 nextpnr-412c920e94b44451fab15069fa220a82025971b3.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr into treemodel
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r-- | common/nextpnr.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc index 2c50c9a1..cf1b5982 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -91,6 +91,8 @@ WireId Context::getNetinfoSinkWire(NetInfo *net_info, int user_idx) const delay_t Context::getNetinfoRouteDelay(NetInfo *net_info, int user_idx) const { WireId src_wire = getNetinfoSourceWire(net_info); + if (src_wire == WireId()) + return 0; WireId cursor = getNetinfoSinkWire(net_info, user_idx); delay_t delay = 0; |