M
Max
Guest
I must write a state machine that depend also on number o events that
occurs in any state.
for example:
I have this ports:
Port ( clk : in std_logic;
din : in std_logic;
sclk : out std_logic);
I need to wait 2 falling edge of din (state 0), then 4 rising edge of
clk (state 1), and finally I can set sclk to 1 as long as 3 falling
edge of clk (state 3). Then it restart from state 0.
I tried varius solution but any of them works.
could you help me?
thanks
occurs in any state.
for example:
I have this ports:
Port ( clk : in std_logic;
din : in std_logic;
sclk : out std_logic);
I need to wait 2 falling edge of din (state 0), then 4 rising edge of
clk (state 1), and finally I can set sclk to 1 as long as 3 falling
edge of clk (state 3). Then it restart from state 0.
I tried varius solution but any of them works.
could you help me?
thanks