From: Clifford Wolf Date: Sat, 15 Feb 2014 15:34:12 +0000 (+0100) Subject: Fixed dfflibmap for cell libraries with no set-reset-ff X-Git-Tag: yosys-0.2.0~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cdf0f10760d08b8349f392f1cbe41a6ca2b1f49e;p=yosys.git Fixed dfflibmap for cell libraries with no set-reset-ff --- diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc index 23d93353f..fd5fa86e1 100644 --- a/passes/techmap/dfflibmap.cc +++ b/passes/techmap/dfflibmap.cc @@ -342,7 +342,7 @@ static bool expand_cellmap(std::string pattern, std::string inv) static void map_sr_to_arst(const char *from, const char *to) { - if (cell_mappings.count(to) > 0) + if (!cell_mappings.count(from) || cell_mappings.count(to) > 0) return; char from_clk_pol = from[8], from_set_pol = from[9], from_clr_pol = from[10];