projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e39e6e
)
Fixed dfflibmap for cell libraries with no set-reset-ff
author
Clifford Wolf
<clifford@clifford.at>
Sat, 15 Feb 2014 15:34:12 +0000
(16:34 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 15 Feb 2014 15:34:12 +0000
(16:34 +0100)
passes/techmap/dfflibmap.cc
patch
|
blob
|
history
diff --git
a/passes/techmap/dfflibmap.cc
b/passes/techmap/dfflibmap.cc
index 23d93353fcb44cd2d39e491604d50745567179d1..fd5fa86e17863c04ec37ec2bcb62f4fefc175c96 100644
(file)
--- 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];