M
Max
Guest
On 10 Sep 2003 06:27:39 -0700
msm30@yahoo.com (William Wallace) wrote:
next rising_edge(start).
thanks
msm30@yahoo.com (William Wallace) wrote:
st3, the machine goes in st0 and immediatly restart instead of wait theYour 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;
this work only if start goes low before st3. If start remains '1' after
next rising_edge(start).
thanks