mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Add "hdlname" attribute
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
c863796e9f
commit
d0b9b1bece
2 changed files with 5 additions and 0 deletions
|
@ -87,6 +87,8 @@ struct UniquifyPass : public Pass {
|
|||
smod->name = newname;
|
||||
cell->type = newname;
|
||||
smod->set_bool_attribute("\\unique");
|
||||
if (smod->attributes.count("\\hdlname") == 0)
|
||||
smod->attributes["\\hdlname"] = string(log_id(tmod->name));
|
||||
design->add(smod);
|
||||
|
||||
did_something = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue