Bugfix in techmap parameter handling
authorClifford Wolf <clifford@clifford.at>
Wed, 14 Sep 2016 18:46:54 +0000 (20:46 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 14 Sep 2016 18:46:54 +0000 (20:46 +0200)
passes/techmap/techmap.cc

index 1ab6df1dcf4c9202866f6d7a9d5a555586419419..b2cc492b2fc99e54a4c6397012d64c12f3dc7111 100644 (file)
@@ -639,7 +639,7 @@ struct TechmapWorker
                                        if (techmap_cache.count(key) > 0) {
                                                tpl = techmap_cache[key];
                                        } else {
-                                               if (cell->parameters.size() != 0) {
+                                               if (parameters.size() != 0) {
                                                        derived_name = tpl->derive(map, dict<RTLIL::IdString, RTLIL::Const>(parameters.begin(), parameters.end()));
                                                        tpl = map->module(derived_name);
                                                        log_continue = true;