mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 20:21:25 +00:00
Changed a lot of code to the new RTLIL::Wire constructors
This commit is contained in:
parent
d49dec1f86
commit
946ddff9ce
19 changed files with 156 additions and 224 deletions
|
@ -51,10 +51,7 @@ struct ScatterPass : public Pass {
|
|||
for (auto &c : mod_it.second->cells)
|
||||
for (auto &p : c.second->connections_)
|
||||
{
|
||||
RTLIL::Wire *wire = new RTLIL::Wire;
|
||||
wire->name = NEW_ID;
|
||||
wire->width = p.second.size();
|
||||
mod_it.second->add(wire);
|
||||
RTLIL::Wire *wire = mod_it.second->addWire(NEW_ID, p.second.size());
|
||||
|
||||
if (ct.cell_output(c.second->type, p.first)) {
|
||||
RTLIL::SigSig sigsig(p.second, wire);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue