Forum Discussion
Altera_Forum
Honored Contributor
9 years agosynchronisation means using a clock. The template is:
process(clk, reset)
begin
if reset = '1' then
-- reset goes here
elsif rising_edge(clk) then
--synchronous stuff goes here - including state machines
case state =>
when state1 =>
-- do something
....etc
end case;
end if;
end process;
The good thing about doing a state machine this way is you only need a single process, and you will never get latches.