From: Clifford Wolf Date: Mon, 26 Feb 2018 10:46:05 +0000 (+0100) Subject: Fix opt_rmdff handling of $dlatchsr X-Git-Tag: yosys-0.8~206 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fba499b8666ef33bc5b11ce2df7b8b18a5aeaa75;p=yosys.git Fix opt_rmdff handling of $dlatchsr Signed-off-by: Clifford Wolf --- diff --git a/passes/opt/opt_rmdff.cc b/passes/opt/opt_rmdff.cc index edec42c4d..b5edb357b 100644 --- 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")