Resolve @cliffordwolf review, set even if !has_init
authorEddie Hung <eddie@fpgeh.com>
Fri, 24 May 2019 23:15:22 +0000 (16:15 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 24 May 2019 23:15:22 +0000 (16:15 -0700)
passes/opt/opt_rmdff.cc

index 3cb8e2b1e255e2114a6cfbab4fb3f070e927326b..a36b279c21480c6c9d7c910451db1664a96ee567 100644 (file)
@@ -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;
                }
        }