From 3c8af04ca587aa8056bbc583e1ecd0fae49e6276 Mon Sep 17 00:00:00 2001 From: gatecat Date: Sat, 11 Dec 2021 19:25:59 +0000 Subject: router2: Error instead of hang in case of reservation conflicts Signed-off-by: gatecat --- common/router2.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') diff --git a/common/router2.cc b/common/router2.cc index b93e7b35..051aa7f8 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -464,6 +464,9 @@ struct Router2 if (ctx->debug) log(" %s\n", ctx->nameOfWire(cursor)); did_something |= (wd.reserved_net != net->udata); + if (wd.reserved_net != -1 && wd.reserved_net != net->udata) + log_error("attempting to reserve wire '%s' for nets '%s' and '%s'\n", ctx->nameOfWire(cursor), + ctx->nameOf(nets_by_udata.at(wd.reserved_net)), ctx->nameOf(net)); wd.reserved_net = net->udata; if (cursor == src) break; -- cgit v1.2.3