Resolve @cliffordwolf review, set even if !has_init

This commit is contained in:
Eddie Hung 2019-05-24 16:15:22 -07:00
parent 5ac7e38d0a
commit 357b1de6bc
1 changed files with 1 additions and 2 deletions

View 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;
}
}