aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/global.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nexus/global.cc')
-rw-r--r--nexus/global.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/nexus/global.cc b/nexus/global.cc
index 2d183e95..f7abb399 100644
--- a/nexus/global.cc
+++ b/nexus/global.cc
@@ -55,6 +55,14 @@ struct NexusGlobalRouter
WireId src = ctx->getNetinfoSourceWire(net);
WireId dst = ctx->getNetinfoSinkWire(net, net->users.at(user_idx));
+ if (src == WireId())
+ log_error("Net '%s' has an invalid source port %s.%s\n", ctx->nameOf(net), ctx->nameOf(net->driver.cell),
+ ctx->nameOf(net->driver.port));
+
+ if (dst == WireId())
+ log_error("Net '%s' has an invalid sink port %s.%s\n", ctx->nameOf(net),
+ ctx->nameOf(net->users.at(user_idx).cell), ctx->nameOf(net->users.at(user_idx).port));
+
if (ctx->getBoundWireNet(src) != net)
ctx->bindWire(src, net, STRENGTH_LOCKED);