aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-21 17:23:20 +0000
committerDavid Shah <dave@ds0.me>2018-11-21 17:23:20 +0000
commit8471d4249c73830a142e066ec83dccf8211a123a (patch)
treebe959672d72e32681bbd2839c5c37314c3db6bbf /common
parent01377d3f8717884735113537c5502db689c88bfa (diff)
downloadnextpnr-8471d4249c73830a142e066ec83dccf8211a123a.tar.gz
nextpnr-8471d4249c73830a142e066ec83dccf8211a123a.tar.bz2
nextpnr-8471d4249c73830a142e066ec83dccf8211a123a.zip
router1: Fix unrouted, undriven nets
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r--common/router1.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/router1.cc b/common/router1.cc
index a3388fa8..aa4332aa 100644
--- a/common/router1.cc
+++ b/common/router1.cc
@@ -870,7 +870,12 @@ bool Context::checkRoutedDesign() const
}
auto src_wire = ctx->getNetinfoSourceWire(net_info);
- log_assert(src_wire != WireId());
+ if (src_wire == WireId()) {
+ log_assert(net_info->driver.cell == nullptr);
+ if (ctx->debug)
+ log(" undriven and unrouted\n");
+ continue;
+ }
if (net_info->wires.count(src_wire) == 0) {
if (ctx->debug)