Skip if abc_box_id earlier
authorEddie Hung <eddie@fpgeh.com>
Wed, 17 Apr 2019 23:36:03 +0000 (16:36 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 17 Apr 2019 23:36:03 +0000 (16:36 -0700)
passes/techmap/abc9.cc

index 8b5b172ab0b1ad0605aeaf9834271f0a9a88f700..18f860e361e6115c1704b6576e707de16aa167e2 100644 (file)
@@ -1402,14 +1402,14 @@ struct Abc9Pass : public Pass {
 
                for (auto mod : design->selected_modules())
                {
+                       if (mod->attributes.count("\\abc_box_id"))
+                               continue;
+
                        if (mod->processes.size() > 0) {
                                log("Skipping module %s as it contains processes.\n", log_id(mod));
                                continue;
                        }
 
-                       if (mod->attributes.count("\\abc_box_id"))
-                               continue;
-
                        assign_map.set(mod);
                        signal_init.clear();