From: Clifford Wolf Date: Sat, 6 Aug 2016 11:24:59 +0000 (+0200) Subject: preserve wire attributes in iopadmap X-Git-Tag: yosys-0.7~153 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90c17aad56b0bf4b3ace5dea8c2d8555b52d4bfb;p=yosys.git preserve wire attributes in iopadmap --- diff --git a/passes/techmap/iopadmap.cc b/passes/techmap/iopadmap.cc index 4acbf7c0d..15ad51c87 100644 --- a/passes/techmap/iopadmap.cc +++ b/passes/techmap/iopadmap.cc @@ -312,7 +312,7 @@ struct IopadmapPass : public Pass { if (!portname2.empty()) { new_wire = module->addWire(NEW_ID, wire); module->swap_names(new_wire, wire); - wire->attributes.clear(); + new_wire->attributes.swap(wire->attributes); } if (flag_bits)