mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 03:31:24 +00:00
Changed more code to the new RTLIL::Wire constructors
This commit is contained in:
parent
946ddff9ce
commit
d68c993ed2
8 changed files with 52 additions and 81 deletions
|
@ -224,14 +224,14 @@ struct SpliceWorker
|
|||
|
||||
for (auto &it : rework_wires)
|
||||
{
|
||||
module->wires.erase(it.first->name);
|
||||
RTLIL::Wire *new_port = new RTLIL::Wire(*it.first);
|
||||
it.first->name = NEW_ID;
|
||||
std::string orig_name = it.first->name;
|
||||
module->rename(it.first, NEW_ID);
|
||||
|
||||
RTLIL::Wire *new_port = module->addWire(orig_name, it.first);
|
||||
it.first->port_id = 0;
|
||||
it.first->port_input = false;
|
||||
it.first->port_output = false;
|
||||
module->add(it.first);
|
||||
module->add(new_port);
|
||||
|
||||
module->connect(RTLIL::SigSig(new_port, it.second));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue