Bugfix in fsm_map for FSMs without reset state

This commit is contained in:
Clifford Wolf 2016-10-25 23:21:37 +02:00
parent aa72262330
commit d9d38eeedb
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ static void map_fsm(RTLIL::Cell *fsm_cell, RTLIL::Module *module)
} }
else else
{ {
RTLIL::SigSpec sig_a, sig_b, sig_s; RTLIL::SigSpec sig_a(RTLIL::State::Sx, next_state_wire->width);
RTLIL::SigSpec sig_b, sig_s;
int reset_state = fsm_data.reset_state; int reset_state = fsm_data.reset_state;
if (reset_state < 0) if (reset_state < 0)
reset_state = 0; reset_state = 0;