mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Fix opt_rmdff handling of $dlatchsr
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
0d636964b8
commit
fba499b866
|
@ -154,6 +154,9 @@ bool handle_dffsr(RTLIL::Module *mod, RTLIL::Cell *cell)
|
||||||
if (used_pol_set && used_pol_clr && pol_set != pol_clr)
|
if (used_pol_set && used_pol_clr && pol_set != pol_clr)
|
||||||
return did_something;
|
return did_something;
|
||||||
|
|
||||||
|
if (cell->type == "$dlatchsr")
|
||||||
|
return did_something;
|
||||||
|
|
||||||
State unified_pol = used_pol_set ? pol_set : pol_clr;
|
State unified_pol = used_pol_set ? pol_set : pol_clr;
|
||||||
|
|
||||||
if (cell->type == "$dffsr")
|
if (cell->type == "$dffsr")
|
||||||
|
|
Loading…
Reference in a new issue