diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-02-15 16:34:12 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-02-15 16:34:12 +0100 |
commit | cdf0f10760d08b8349f392f1cbe41a6ca2b1f49e (patch) | |
tree | 18df970f7539acf58ed299d23bff59c6c4e85984 | |
parent | 5e39e6ece28e1145a04e8f00f9ac4f5d9a738acf (diff) | |
download | yosys-cdf0f10760d08b8349f392f1cbe41a6ca2b1f49e.tar.gz yosys-cdf0f10760d08b8349f392f1cbe41a6ca2b1f49e.tar.bz2 yosys-cdf0f10760d08b8349f392f1cbe41a6ca2b1f49e.zip |
Fixed dfflibmap for cell libraries with no set-reset-ff
-rw-r--r-- | passes/techmap/dfflibmap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |