Skip to content

Commit d9d38ee

Browse files
committedOct 25, 2016
Bugfix in fsm_map for FSMs without reset state
1 parent aa72262 commit d9d38ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎passes/fsm/fsm_map.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ static void map_fsm(RTLIL::Cell *fsm_cell, RTLIL::Module *module)
272272
}
273273
else
274274
{
275-
RTLIL::SigSpec sig_a, sig_b, sig_s;
275+
RTLIL::SigSpec sig_a(RTLIL::State::Sx, next_state_wire->width);
276+
RTLIL::SigSpec sig_b, sig_s;
276277
int reset_state = fsm_data.reset_state;
277278
if (reset_state < 0)
278279
reset_state = 0;

0 commit comments

Comments
 (0)