mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Added module->uniquify()
This commit is contained in:
parent
f82c978e08
commit
7f734ecc09
5 changed files with 29 additions and 15 deletions
|
@ -46,10 +46,7 @@ struct SplitnetsWorker
|
|||
if (format.size() > 1)
|
||||
new_wire_name += format.substr(1, 1);
|
||||
|
||||
while (module->count_id(new_wire_name) > 0)
|
||||
new_wire_name += "_";
|
||||
|
||||
RTLIL::Wire *new_wire = module->addWire(new_wire_name, width);
|
||||
RTLIL::Wire *new_wire = module->addWire(module->uniquify(new_wire_name), width);
|
||||
new_wire->port_id = wire->port_id;
|
||||
new_wire->port_input = wire->port_input;
|
||||
new_wire->port_output = wire->port_output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue