Resolve FIXME on calling proc just once
authorEddie Hung <eddie@fpgeh.com>
Mon, 30 Sep 2019 23:37:29 +0000 (16:37 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 30 Sep 2019 23:37:29 +0000 (16:37 -0700)
passes/techmap/abc9.cc

index 6e424d5175341639af999e1536dbbf11659303e9..ce057566c5151f531f18c6c6e8f0922f973e3ded 100644 (file)
@@ -1117,8 +1117,8 @@ struct Abc9Pass : public Pass {
                                auto derived_name = inst_module->derive(design, cell->parameters);
                                auto derived_module = design->module(derived_name);
                                log_assert(derived_module);
-                               // FIXME: call once
-                               Pass::call_on_module(design, derived_module, "proc");
+                               if (derived_module->has_processes())
+                                       Pass::call_on_module(design, derived_module, "proc");
                                SigMap derived_sigmap(derived_module);
 
                                Wire *currQ = derived_module->wire("\\$currQ");