aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-01-16 11:35:24 +0000
committerDavid Shah <dave@ds0.me>2020-02-03 11:38:31 +0000
commitf82e133c7c93b4589b2149631e6b72185148ada9 (patch)
treef7ca0ce3b385f106d4c9794a4dfec068487eeb5e /common
parentd2c77fd9ae3ca4af2f8235a5502f73d8ebd297d0 (diff)
downloadnextpnr-f82e133c7c93b4589b2149631e6b72185148ada9.tar.gz
nextpnr-f82e133c7c93b4589b2149631e6b72185148ada9.tar.bz2
nextpnr-f82e133c7c93b4589b2149631e6b72185148ada9.zip
router2: Fix case of undriven unsunk arcs
Signed-off-by: David Shah <dave@ds0.me>
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 480b7a09..3dad4583 100644
--- a/common/router2.cc
+++ b/common/router2.cc
@@ -141,6 +141,8 @@ struct Router2
nets.at(i).src_wire = src_wire;
if (ni->driver.cell == nullptr)
src_wire = dst_wire;
+ if (ni->driver.cell == nullptr && dst_wire == WireId())
+ continue;
if (src_wire == WireId())
log_error("No wire found for port %s on source cell %s.\n", ctx->nameOf(ni->driver.port),
ctx->nameOf(ni->driver.cell));