abc9: restore selected_modules()
authorEddie Hung <eddie@fpgeh.com>
Thu, 16 Apr 2020 17:40:33 +0000 (10:40 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 14 May 2020 17:33:56 +0000 (10:33 -0700)
passes/techmap/abc9_ops.cc

index 976b6462ec5b661dc6d5a16ea822b3ae2fe65ca1..4843200d8c9ddf4db981775b0a80ef3ac376e7d4 100644 (file)
@@ -128,7 +128,7 @@ void prep_dff_hier(RTLIL::Design *design)
 
        Design *unmap_design = new Design;
 
-       for (auto module : design->modules())
+       for (auto module : design->selected_modules())
                for (auto cell : module->cells()) {
                        auto inst_module = design->module(cell->type);
                        if (inst_module && inst_module->attributes.count(ID::abc9_flop)) {