From: Clifford Wolf Date: Sun, 31 May 2015 05:51:12 +0000 (+0200) Subject: Added liberty dont_use support to dfflibmap X-Git-Tag: yosys-0.6~276 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=522705cc280367f6d58a01010894701a4003c8a8;p=yosys.git Added liberty dont_use support to dfflibmap --- diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc index b0318a0b3..9f534c2ea 100644 --- a/passes/techmap/dfflibmap.cc +++ b/passes/techmap/dfflibmap.cc @@ -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;