3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 04:03:45 +00:00

Fixed detection of init attribute in opt_rmdff

This commit is contained in:
Clifford Wolf 2014-02-04 23:00:32 +01:00
parent 69e867f3e8
commit 99b9c56da1

View file

@ -73,7 +73,7 @@ static bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff)
assign_map.apply(sig_c);
assign_map.apply(sig_r);
bool has_init;
bool has_init = false;
RTLIL::Const val_init;
for (auto bit : dff_init_map(sig_q).to_sigbit_vector()) {
if (bit.wire == NULL)