mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-07 15:55:47 +00:00
add morphCell instead of type assignments, test_cell passes for all cells
This commit is contained in:
parent
d2107a9ee4
commit
1be8f8023a
33 changed files with 129 additions and 99 deletions
|
@ -89,7 +89,7 @@ struct UniquifyPass : public Pass {
|
|||
|
||||
auto smod = tmod->clone();
|
||||
smod->name = newname;
|
||||
cell->type = newname;
|
||||
cell = cell->module->morphCell(newname, cell);
|
||||
smod->set_bool_attribute(ID::unique);
|
||||
if (smod->attributes.count(ID::hdlname) == 0)
|
||||
smod->attributes[ID::hdlname] = string(log_id(tmod->name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue