From 4451a562efaab259c46d0ce2308fc4f1f1963708 Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 17 Dec 2021 14:51:00 +0000 Subject: frontend: Consider net aliases when uniquifying name Signed-off-by: gatecat --- frontend/frontend_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/frontend_base.h b/frontend/frontend_base.h index 6d2ee6f6..ed9354b6 100644 --- a/frontend/frontend_base.h +++ b/frontend/frontend_base.h @@ -229,7 +229,7 @@ template struct GenericFrontend } name = ctx->id(comb); incr++; - } while (is_net ? ctx->nets.count(name) : ctx->cells.count(name)); + } while (is_net ? (ctx->nets.count(name) || ctx->net_aliases.count(name)) : ctx->cells.count(name)); return name; } -- cgit v1.2.3