mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 08:23:19 +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
|
@ -164,13 +164,8 @@ struct IopadmapPass : public Pass {
|
|||
log("Mapping port %s.%s using %s.\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(wire->name), celltype.c_str());
|
||||
|
||||
RTLIL::Wire *new_wire = NULL;
|
||||
if (!portname2.empty()) {
|
||||
new_wire = new RTLIL::Wire;
|
||||
*new_wire = *wire;
|
||||
wire->name = NEW_ID;
|
||||
module->wires[wire->name] = wire;
|
||||
module->wires[new_wire->name] = new_wire;
|
||||
}
|
||||
if (!portname2.empty())
|
||||
new_wire = module->addWire(NEW_ID, wire);
|
||||
|
||||
if (flag_bits)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue