M
Max
On 10 Sep 2003 06:27:39 -0700
st3, the machine goes in st0 and immediatly restart instead of wait the
next rising_edge(start).
thanks
this work only if start goes low before st3. If start remains '1' afterYour synthesizer should understand this. This assumes that
start is synchronous to clk:
process (clk, reset)
begin
if reset = '1' then
state <= st0;
elsif (clk'event and clk='1' ) then
case state is
when st0 =>
if(start ='1') then
state <= st1;
end if;
when st1 =>
state <= st2;
when st2 =>
state <= st3;
when st3 =>
state <= st0;
end case;
end if;
end process;
st3, the machine goes in st0 and immediatly restart instead of wait the
next rising_edge(start).
thanks