S
SneakerNet
Hi John
I prefer state machines and i believe state machines keep the structure of
the code tidy.
You could try this (put sig_x in the sensitivity list of the process):
p: process(sig_x)
when STATE_0 =>
if sig_x = '1' then
go to the next state
endif;
when STATE_1 =>
if sig_x = '0' then
go to another state
endif;
end process;
In this case, everything the signal six_x changes, the process (p) activates
and the current state will be processed.
Hope that helps.
I prefer state machines and i believe state machines keep the structure of
the code tidy.
You could try this (put sig_x in the sensitivity list of the process):
p: process(sig_x)
when STATE_0 =>
if sig_x = '1' then
go to the next state
endif;
when STATE_1 =>
if sig_x = '0' then
go to another state
endif;
end process;
In this case, everything the signal six_x changes, the process (p) activates
and the current state will be processed.
Hope that helps.