aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap
diff options
context:
space:
mode:
authorClaire Wolf <clifford@clifford.at>2020-03-26 19:03:37 +0100
committerGitHub <noreply@github.com>2020-03-26 19:03:37 +0100
commit590d8eccb7d2c58de27ecc7f9ac71cd226b1be29 (patch)
tree13cef42d519710d93cf200b926325476512c317b /passes/techmap
parentc9555c9adeba886a308c60615ac794ec20d9276e (diff)
parentc2bf11e42a6de3f028ad0b484eb24b70618c6fc7 (diff)
downloadyosys-590d8eccb7d2c58de27ecc7f9ac71cd226b1be29.tar.gz
yosys-590d8eccb7d2c58de27ecc7f9ac71cd226b1be29.tar.bz2
yosys-590d8eccb7d2c58de27ecc7f9ac71cd226b1be29.zip
Merge pull request #1806 from YosysHQ/mwk/techmap-replace-fix
techmap: Fix cell names with _TECHMAP_REPLACE_.*
Diffstat (limited to 'passes/techmap')
-rw-r--r--passes/techmap/techmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index 0c57733d4..10001baaa 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -177,10 +177,10 @@ struct TechmapWorker
std::string orig_cell_name;
pool<string> extra_src_attrs = cell->get_strpool_attribute(ID(src));
+ orig_cell_name = cell->name.str();
if (!flatten_mode) {
for (auto &it : tpl->cells_)
if (it.first == ID(_TECHMAP_REPLACE_)) {
- orig_cell_name = cell->name.str();
module->rename(cell, stringf("$techmap%d", autoidx++) + cell->name.str());
break;
}