G
Gerhard
Hi,
newbe needs help.
My problem:
I have a Moor state machine sitting around and waiting.
After a falling edge on a port the state machine needs to start out
working, which take about 96 clock cycles. the work mainly is clocking
data in from a spi interface.
After that the state machine wents sleeping again.
I try to create a signal (later a variable) and set it in a process
which monitors the start signal.
The state machine consists of three processes (synced Moor state
machine) and monitors my start signal (which is like a reset if not
active) and starts out working on the next clock transition.
After finishing the work, I try to reset my start signal, after
entering the neutral state (sleeping), but ..
I always get compiler errors, telling me that the net 'start' is
constantely driven from different places ....
Please tell me, how i should solve such an scenario in VHDL ....
Thinking in 'plain hardware'. I need a FF, which is set by a port
signal and some edge of the clock and is reset by some condition ....
Sounds quite easy in hardware, but seems not so easy to implement in
VHDL for a rouky...
Thanks for helping.
With best regards
gerhard
Here some snippets:
nDRdy_sync:
process
begin
wait until falling_edge(nDRDY);
transfer := '1';
end process;
some other:
process (mySCLK)
begin
...
...
transfer := '0';
end process;
newbe needs help.
My problem:
I have a Moor state machine sitting around and waiting.
After a falling edge on a port the state machine needs to start out
working, which take about 96 clock cycles. the work mainly is clocking
data in from a spi interface.
After that the state machine wents sleeping again.
I try to create a signal (later a variable) and set it in a process
which monitors the start signal.
The state machine consists of three processes (synced Moor state
machine) and monitors my start signal (which is like a reset if not
active) and starts out working on the next clock transition.
After finishing the work, I try to reset my start signal, after
entering the neutral state (sleeping), but ..
I always get compiler errors, telling me that the net 'start' is
constantely driven from different places ....
Please tell me, how i should solve such an scenario in VHDL ....
Thinking in 'plain hardware'. I need a FF, which is set by a port
signal and some edge of the clock and is reset by some condition ....
Sounds quite easy in hardware, but seems not so easy to implement in
VHDL for a rouky...
Thanks for helping.
With best regards
gerhard
Here some snippets:
nDRdy_sync:
process
begin
wait until falling_edge(nDRDY);
transfer := '1';
end process;
some other:
process (mySCLK)
begin
...
...
transfer := '0';
end process;