mirror of https://github.com/YosysHQ/yosys.git
Move lookup inside if
This commit is contained in:
parent
486a270415
commit
f8d0134598
|
@ -455,9 +455,9 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
|
||||||
RTLIL::Wire *remap_wire = module->addWire(remap_name(w->name), GetSize(w));
|
RTLIL::Wire *remap_wire = module->addWire(remap_name(w->name), GetSize(w));
|
||||||
if (markgroups) remap_wire->attributes["\\abcgroup"] = map_autoidx;
|
if (markgroups) remap_wire->attributes["\\abcgroup"] = map_autoidx;
|
||||||
design->select(module, remap_wire);
|
design->select(module, remap_wire);
|
||||||
RTLIL::Wire *wire = module->wire(w->name);
|
|
||||||
if (w->port_output) {
|
if (w->port_output) {
|
||||||
for (int i = 0; i < GetSize(remap_wire); i++)
|
RTLIL::Wire *wire = module->wire(w->name);
|
||||||
|
for (int i = 0; i < GetSize(wire); i++)
|
||||||
output_bits.insert({wire, i});
|
output_bits.insert({wire, i});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue