diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-05-24 16:15:22 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-05-24 16:15:22 -0700 |
commit | 357b1de6bc3dcddc9bc0870e20c68c21c869a323 (patch) | |
tree | 48e565c44c62f7b2928e0a6434b97be05fd184a9 /passes/opt | |
parent | 5ac7e38d0aab1c73150accd9befbccc5398b8e42 (diff) | |
download | yosys-357b1de6bc3dcddc9bc0870e20c68c21c869a323.tar.gz yosys-357b1de6bc3dcddc9bc0870e20c68c21c869a323.tar.bz2 yosys-357b1de6bc3dcddc9bc0870e20c68c21c869a323.zip |
Resolve @cliffordwolf review, set even if !has_init
Diffstat (limited to 'passes/opt')
-rw-r--r-- | passes/opt/opt_rmdff.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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; } } |