mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-12 09:03:27 +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
|
@ -118,13 +118,10 @@ static void generate(RTLIL::Design *design, const std::vector<std::string> &cell
|
|||
design->modules[mod->name] = mod;
|
||||
|
||||
for (auto &decl : ports) {
|
||||
RTLIL::Wire *wire = new RTLIL::Wire;
|
||||
wire->name = decl.portname;
|
||||
wire->width = portwidths.at(decl.portname);
|
||||
RTLIL::Wire *wire = mod->addWire(decl.portname, portwidths.at(decl.portname));
|
||||
wire->port_id = decl.index;
|
||||
wire->port_input = decl.input;
|
||||
wire->port_output = decl.output;
|
||||
mod->add(wire);
|
||||
}
|
||||
|
||||
for (auto ¶ : parameters)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue