Forum Discussion
Altera_Forum
Honored Contributor
11 years agoin this code:
when idel =>
if data_in='1' then
next_state<=d1;
end if;
if data_in = '1' transition occurs to d1 if data is not '1' then state stays as d1 (but in your case state becomes current_state, which may still be correct or not as I don't see that part of your code. This is because you have default statement at top of process)