frontend: Consider net aliases when uniquifying name

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-12-17 14:51:00 +00:00
parent a120577773
commit 4451a562ef

View File

@ -229,7 +229,7 @@ template <typename FrontendType> 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;
}