projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d63696
)
Fix opt_rmdff handling of $dlatchsr
author
Clifford Wolf
<clifford@clifford.at>
Mon, 26 Feb 2018 10:46:05 +0000
(11:46 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Mon, 26 Feb 2018 10:46:05 +0000
(11:46 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/opt/opt_rmdff.cc
patch
|
blob
|
history
diff --git
a/passes/opt/opt_rmdff.cc
b/passes/opt/opt_rmdff.cc
index edec42c4d5686ae14146e554de12c0d387b480a5..b5edb357bd89403be51dccb7a140df3eec1d35ee 100644
(file)
--- a/
passes/opt/opt_rmdff.cc
+++ b/
passes/opt/opt_rmdff.cc
@@
-154,6
+154,9
@@
bool handle_dffsr(RTLIL::Module *mod, RTLIL::Cell *cell)
if (used_pol_set && used_pol_clr && pol_set != pol_clr)
return did_something;
+ if (cell->type == "$dlatchsr")
+ return did_something;
+
State unified_pol = used_pol_set ? pol_set : pol_clr;
if (cell->type == "$dffsr")