Merge pull request #878 from YosysHQ/gatecat/fix-876

frontend: Consider net aliases when uniquifying name
This commit is contained in:
gatecat 2021-12-17 15:51:45 +00:00 committed by GitHub
commit cc603a612b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}