preserve wire attributes in iopadmap

This commit is contained in:
Clifford Wolf 2016-08-06 13:24:59 +02:00
parent 7f755dec75
commit 90c17aad56
1 changed files with 1 additions and 1 deletions

View File

@ -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)