Hi,
why is nstate bad syncronous? It works when I remove rising_edge(clk_250k)... (I want to generate a signal which is a clock at 250k but with period of the clk_8m)
nextstate:process (clk_8m,clk_250k) begin
case state is when state1 =>
if clk_250k='1' and rising_edge(clk_250k) then state if clk_8m='1' then nstate if clk_8m='0' then nstate