From: Clifford Wolf Date: Fri, 15 Aug 2014 12:29:42 +0000 (+0200) Subject: Bugfix in iopadmap X-Git-Tag: yosys-0.4~252 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=674f421b476295d3376ec00644181fc9be02ccaf;p=yosys.git Bugfix in iopadmap --- diff --git a/passes/techmap/iopadmap.cc b/passes/techmap/iopadmap.cc index 194e06a4a..9cd23ce6f 100644 --- a/passes/techmap/iopadmap.cc +++ b/passes/techmap/iopadmap.cc @@ -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) {