From: Eddie Hung Date: Fri, 24 May 2019 23:15:22 +0000 (-0700) Subject: Resolve @cliffordwolf review, set even if !has_init X-Git-Tag: yosys-0.9~109^2~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=357b1de6bc3dcddc9bc0870e20c68c21c869a323;p=yosys.git Resolve @cliffordwolf review, set even if !has_init --- diff --git a/passes/opt/opt_rmdff.cc b/passes/opt/opt_rmdff.cc index 3cb8e2b1e..a36b279c2 100644 --- a/passes/opt/opt_rmdff.cc +++ b/passes/opt/opt_rmdff.cc @@ -342,8 +342,7 @@ bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff) if (!sig_e.is_fully_const()) return false; if (sig_e != val_ep) { - if (has_init) - mod->connect(sig_q, val_init); + mod->connect(sig_q, val_init); goto delete_dff; } }