mirror of https://github.com/YosysHQ/yosys.git
Fixed detection of init attribute in opt_rmdff
This commit is contained in:
parent
69e867f3e8
commit
99b9c56da1
|
|
@ -73,7 +73,7 @@ static bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff)
|
||||||
assign_map.apply(sig_c);
|
assign_map.apply(sig_c);
|
||||||
assign_map.apply(sig_r);
|
assign_map.apply(sig_r);
|
||||||
|
|
||||||
bool has_init;
|
bool has_init = false;
|
||||||
RTLIL::Const val_init;
|
RTLIL::Const val_init;
|
||||||
for (auto bit : dff_init_map(sig_q).to_sigbit_vector()) {
|
for (auto bit : dff_init_map(sig_q).to_sigbit_vector()) {
|
||||||
if (bit.wire == NULL)
|
if (bit.wire == NULL)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue