mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Bugfix in iopadmap
This commit is contained in:
parent
b64b38eea2
commit
674f421b47
|
@ -164,8 +164,10 @@ struct IopadmapPass : public Pass {
|
||||||
log("Mapping port %s.%s using %s.\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(wire->name), celltype.c_str());
|
log("Mapping port %s.%s using %s.\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(wire->name), celltype.c_str());
|
||||||
|
|
||||||
RTLIL::Wire *new_wire = NULL;
|
RTLIL::Wire *new_wire = NULL;
|
||||||
if (!portname2.empty())
|
if (!portname2.empty()) {
|
||||||
new_wire = module->addWire(NEW_ID, wire);
|
new_wire = module->addWire(NEW_ID, wire);
|
||||||
|
module->swap_names(new_wire, wire);
|
||||||
|
}
|
||||||
|
|
||||||
if (flag_bits)
|
if (flag_bits)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue