3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-05 06:45:46 +00:00
This commit is contained in:
Akash Levy 2024-09-23 04:25:10 -07:00
parent 0b8d951493
commit 0fd6e29e8e
6 changed files with 1 additions and 550 deletions

View file

@ -228,7 +228,7 @@ bool is_blackbox(Netlist *nl)
RTLIL::IdString VerificImporter::new_verific_id(Verific::DesignObj *obj)
{
std::string s = stringf("$%s", obj->Name());
while (seen_ids.count(s) > 0) s = "$" + s;
while (seen_ids.count(s)) s += stringf("$%d", autoidx++);
seen_ids.insert(s);
return s;
}