3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

cellhelp: Split gate-level and word-level cells

This commit is contained in:
Krystine Sherwin 2024-05-03 09:16:55 +12:00
parent 1a4ada40fe
commit d629aa6bf1
No known key found for this signature in database
5 changed files with 29 additions and 7 deletions

View file

@ -751,7 +751,10 @@ struct SimHelper {
string name;
inline string filesafe_name() {
if (name.at(0) == '$')
return name.substr(1);
if (name.at(1) == '_')
return "gate" + name.substr(1);
else
return "word_" + name.substr(1);
else
return name;
}