Added liberty dont_use support to dfflibmap
authorClifford Wolf <clifford@clifford.at>
Sun, 31 May 2015 05:51:12 +0000 (07:51 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 31 May 2015 05:51:12 +0000 (07:51 +0200)
passes/techmap/dfflibmap.cc

index b0318a0b33a5059f892f464fd1e10ca0def19e5f..9f534c2eaeb86d8e0a2302c7ac9962a24a401e4e 100644 (file)
@@ -118,6 +118,10 @@ static void find_cell(LibertyAst *ast, std::string cell_type, bool clkpol, bool
                if (cell->id != "cell" || cell->args.size() != 1)
                        continue;
 
+               LibertyAst *dn = cell->find("dont_use");
+               if (dn != NULL && dn->value == "true")
+                       continue;
+
                LibertyAst *ff = cell->find("ff");
                if (ff == NULL)
                        continue;