aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-07-29 09:17:37 +0100
committerGitHub <noreply@github.com>2021-07-29 09:17:37 +0100
commit0991003de9f3aa8870728ce70e5a247747eb302e (patch)
tree0d10e943f0eda3794d06d8c6a2fcd8b89a3dd17f /common
parent39a7381928359934788aefd670c835dedbbf2cd7 (diff)
parent504199e70e07b85da36d14ba546285fffb19cc99 (diff)
downloadnextpnr-0991003de9f3aa8870728ce70e5a247747eb302e.tar.gz
nextpnr-0991003de9f3aa8870728ce70e5a247747eb302e.tar.bz2
nextpnr-0991003de9f3aa8870728ce70e5a247747eb302e.zip
Merge pull request #785 from YosysHQ/gatecat/nexus2glb2fabric
nexus: Fix routeing of global clocks that also drive fabric
Diffstat (limited to 'common')
-rw-r--r--common/router2.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/router2.cc b/common/router2.cc
index eb889e12..2994038c 100644
--- a/common/router2.cc
+++ b/common/router2.cc
@@ -444,6 +444,8 @@ struct Router2
// and LUT
if (iter_count > 7)
return false; // heuristic to assume we've hit general routing
+ if (wire_data(wire).unavailable)
+ return true;
if (wire_data(wire).reserved_net != -1 && wire_data(wire).reserved_net != net->udata)
return true; // reserved for another net
for (auto bp : ctx->getWireBelPins(wire))