1. vam nado ispolzovat dva processa odin dlyt pereklucheniya sostoyniy drugoy dlya ih detection,
chto to tipa
process(reset, clk)
if reset = '0' then
current_state <= idle;
elsif (clk = '1' and clk'event) the
current state <= next_state;
end if;
end process;
sama mashina dolzha viglyadet primerno tak
process(.....
begin
if reset = ....
elsif(clk.....
case(current_state) is
when state1 =>
if then
next_state <= state2;
a<= ...
b <= ....
c<= ...
else
next_state <= state1;i tak dalee