Bugfix in iopadmap
authorClifford Wolf <clifford@clifford.at>
Fri, 15 Aug 2014 12:29:42 +0000 (14:29 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 15 Aug 2014 12:29:42 +0000 (14:29 +0200)
passes/techmap/iopadmap.cc

index 194e06a4a33ff563099c467eb8b8017cf6eb1b78..9cd23ce6f1823b2feecf6ddbd2e0ae175c0ec36e 100644 (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)
                                {