Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- how, the clk edge is in another process, my code has 3 process (FSM moore), this it a part of combination logic for next_state --- Quote End --- as far as transition is concerned the first two transitions should be equivalent e.g.:
when idel =>
if data_in='1' then
next_state<=d1;
--else -- not needed
--next_state<=idel;
end if;
when d1 =>
if data_in='0' then
next_state<=d10;
-- else
-- next_state<=d1;
end if;
however i have my doubts since you have a default statement at top: next_state <= current_state;