mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Changed more code to the new RTLIL::Wire constructors
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user