mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 23:43:16 +00:00
Removed deprecated module->new_wire()
This commit is contained in:
parent
3cb61d03f8
commit
1d88f1cf9f
11 changed files with 47 additions and 56 deletions
|
@ -707,7 +707,7 @@ struct FreduceWorker
|
|||
log(" Connect slave%s: %s\n", grp[i].inverted ? " using inverter" : "", log_signal(grp[i].bit));
|
||||
|
||||
RTLIL::Cell *drv = drivers.at(grp[i].bit).first;
|
||||
RTLIL::Wire *dummy_wire = module->new_wire(1, NEW_ID);
|
||||
RTLIL::Wire *dummy_wire = module->addWire(NEW_ID);
|
||||
for (auto &port : drv->connections)
|
||||
if (ct.cell_output(drv->type, port.first))
|
||||
sigmap(port.second).replace(grp[i].bit, dummy_wire, &port.second);
|
||||
|
@ -716,7 +716,7 @@ struct FreduceWorker
|
|||
{
|
||||
if (inv_sig.width == 0)
|
||||
{
|
||||
inv_sig = module->new_wire(1, NEW_ID);
|
||||
inv_sig = module->addWire(NEW_ID);
|
||||
|
||||
RTLIL::Cell *inv_cell = new RTLIL::Cell;
|
||||
inv_cell->name = NEW_ID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue