diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-04-05 11:01:32 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-04-05 11:01:45 +0200 |
commit | 705c366a91aab577858d9f45f1ebad28b8db1523 (patch) | |
tree | 1873ee45a4ac46e5f6df35637cae6a3c6131845b | |
parent | 4a65b823db319920b236e4a5b35b3eef6b889c70 (diff) | |
download | yosys-705c366a91aab577858d9f45f1ebad28b8db1523.tar.gz yosys-705c366a91aab577858d9f45f1ebad28b8db1523.tar.bz2 yosys-705c366a91aab577858d9f45f1ebad28b8db1523.zip |
Added missing dont_use handling for SR FFs to dfflibmap
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r-- | passes/techmap/dfflibmap.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; |