3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-29 20:05:52 +00:00

Add better Yosys/Verific name aliasing and reenable dffe opt

This commit is contained in:
Akash Levy 2024-06-15 14:18:33 -07:00
parent 2337d97977
commit fce46d2a53
4 changed files with 6 additions and 2 deletions

View file

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