abc9_ops: -prep_xaiger to skip (* keep *) cells
authorEddie Hung <eddie@fpgeh.com>
Fri, 24 Jan 2020 02:56:06 +0000 (18:56 -0800)
committerEddie Hung <eddie@fpgeh.com>
Fri, 24 Jan 2020 02:56:06 +0000 (18:56 -0800)
passes/techmap/abc9_ops.cc

index 750f36ceb43908f76cfe9a3fe4d1a20d15615f02..40622ece7b4a780e96c9ea47511d344c17c7529d 100644 (file)
@@ -165,6 +165,8 @@ void prep_xaiger(RTLIL::Module *module, bool dff)
        for (auto cell : module->cells()) {
                if (cell->type == "$__ABC9_FF_")
                        continue;
+               if (cell->has_keep_attr())
+                       continue;
 
                auto inst_module = module->design->module(cell->type);
                bool abc9_box = inst_module && inst_module->attributes.count("\\abc9_box_id");