aboutsummaryrefslogtreecommitdiffstats
path: root/common/router2.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-07-28 15:34:54 +0100
committergatecat <gatecat@ds0.me>2021-07-28 15:35:19 +0100
commit504199e70e07b85da36d14ba546285fffb19cc99 (patch)
tree0d10e943f0eda3794d06d8c6a2fcd8b89a3dd17f /common/router2.cc
parent39a7381928359934788aefd670c835dedbbf2cd7 (diff)
downloadnextpnr-504199e70e07b85da36d14ba546285fffb19cc99.tar.gz
nextpnr-504199e70e07b85da36d14ba546285fffb19cc99.tar.bz2
nextpnr-504199e70e07b85da36d14ba546285fffb19cc99.zip
nexus: Fix routeing of global clocks that also drive fabric
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/router2.cc')
-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))