Cleanup
authorEddie Hung <eddie@fpgeh.com>
Mon, 6 Jan 2020 21:02:04 +0000 (13:02 -0800)
committerEddie Hung <eddie@fpgeh.com>
Mon, 6 Jan 2020 21:02:04 +0000 (13:02 -0800)
passes/techmap/abc9.cc

index 94eea298344bba045b4c559e42109cc0f97a48fb..c7db4f557fe1d8cf7f54352cfca21bcdb237f329 100644 (file)
@@ -202,20 +202,17 @@ struct Abc9Pass : public ScriptPass
                active_design->selection_stack.emplace_back(false);
 
                for (auto mod : selected_modules) {
-                       if (mod->get_blackbox_attribute())
-                               continue;
-
                        if (mod->processes.size() > 0) {
                                log("Skipping module %s as it contains processes.\n", log_id(mod));
                                continue;
                        }
                        log_assert(!mod->attributes.count(ID(abc9_box_id)));
 
+                       active_design->selection().select(mod);
+
                        if (!active_design->selected_whole_module(mod))
                                log_error("Can't handle partially selected module %s!\n", log_id(mod));
 
-                       active_design->selection().select(mod);
-
                        std::string tempdir_name = "/tmp/yosys-abc-XXXXXX";
                        if (!cleanup)
                                tempdir_name[0] = tempdir_name[4] = '_';