From 705c366a91aab577858d9f45f1ebad28b8db1523 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 5 Apr 2018 11:01:32 +0200 Subject: [PATCH] Added missing dont_use handling for SR FFs to dfflibmap Signed-off-by: Clifford Wolf --- passes/techmap/dfflibmap.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc index 4cb1489a8..5ccb770c4 100644 --- a/passes/techmap/dfflibmap.cc +++ b/passes/techmap/dfflibmap.cc @@ -240,6 +240,10 @@ static void find_cell_sr(LibertyAst *ast, std::string cell_type, bool clkpol, bo 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; -- 2.30.2