From 42f48b6dc0042d56a896514fe2421486ffdc359e Mon Sep 17 00:00:00 2001 From: gatecat Date: Thu, 29 Jul 2021 13:04:59 +0100 Subject: router2: Improve debugability of pip conflicts Signed-off-by: gatecat --- common/router2.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/router2.cc') diff --git a/common/router2.cc b/common/router2.cc index 2994038c..667d906e 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -329,7 +329,11 @@ struct Router2 if (b.first == 1) { b.second = pip; } else { - NPNR_ASSERT(b.second == pip); + if (b.second != pip) + log_error("internal inconsistency: attempting to bind pip %s to net %s, but wire %s is already driven " + "by pip %s\n", + ctx->nameOfPip(pip), ctx->nameOf(net), ctx->nameOfWire(flat_wires.at(wire).w), + ctx->nameOfPip(b.second)); } } -- cgit v1.2.3