mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 19:21:23 +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
|
@ -47,12 +47,9 @@ static void add_wire(RTLIL::Design *design, RTLIL::Module *module, std::string n
|
|||
}
|
||||
else
|
||||
{
|
||||
wire = new RTLIL::Wire;
|
||||
wire->name = name;
|
||||
wire->width = width;
|
||||
wire = module->addWire(name, width);
|
||||
wire->port_input = flag_input;
|
||||
wire->port_output = flag_output;
|
||||
module->add(wire);
|
||||
|
||||
if (flag_input || flag_output) {
|
||||
wire->port_id = module->wires.size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue