Bugfix in iopadmap

This commit is contained in:
Clifford Wolf 2014-08-15 14:29:42 +02:00
parent b64b38eea2
commit 674f421b47
1 changed files with 3 additions and 1 deletions

View File

@ -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());
RTLIL::Wire *new_wire = NULL;
if (!portname2.empty())
if (!portname2.empty()) {
new_wire = module->addWire(NEW_ID, wire);
module->swap_names(new_wire, wire);
}
if (flag_bits)
{