Check blackbox attribute in techmap/simplemap
authorClifford Wolf <clifford@clifford.at>
Sat, 20 Apr 2019 09:10:05 +0000 (11:10 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 20 Apr 2019 09:10:05 +0000 (11:10 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/techmap/simplemap.cc
passes/techmap/techmap.cc

index 660b60601090e53f57968a4c17fdb115f3b6710e..f3da80c66d34f060f1d57031a910abbf1241807b 100644 (file)
@@ -599,7 +599,7 @@ struct SimplemapPass : public Pass {
                simplemap_get_mappers(mappers);
 
                for (auto mod : design->modules()) {
-                       if (!design->selected(mod))
+                       if (!design->selected(mod) || mod->get_blackbox_attribute())
                                continue;
                        std::vector<RTLIL::Cell*> cells = mod->cells();
                        for (auto cell : cells) {
index 82c815e2edfeebb98a274599e1973f5cd77ab568..416bf4f1c015f67f53c60623900c1933ee3c74ad 100644 (file)
@@ -385,7 +385,7 @@ struct TechmapWorker
        {
                std::string mapmsg_prefix = in_recursion ? "Recursively mapping" : "Mapping";
 
-               if (!design->selected(module))
+               if (!design->selected(module) || module->get_blackbox_attribute())
                        return false;
 
                bool log_continue = false;