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:
parent
1a4ada40fe
commit
d629aa6bf1
5 changed files with 29 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue