diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-08-06 13:24:59 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-08-06 13:24:59 +0200 |
commit | 90c17aad56b0bf4b3ace5dea8c2d8555b52d4bfb (patch) | |
tree | 01fc1c1324a97a93147c0b25dc59a0d61ab35ea5 /passes/techmap | |
parent | 7f755dec75824e27dd79173a76d5819bf7fdbd27 (diff) | |
download | yosys-90c17aad56b0bf4b3ace5dea8c2d8555b52d4bfb.tar.gz yosys-90c17aad56b0bf4b3ace5dea8c2d8555b52d4bfb.tar.bz2 yosys-90c17aad56b0bf4b3ace5dea8c2d8555b52d4bfb.zip |
preserve wire attributes in iopadmap
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/iopadmap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) |