Forum Discussion
Altera_Forum
Honored Contributor
13 years agoFollowing the behavior of your code is difficult (for me at least) due to your use of a large collection of signals in the sensitivity list. Try working with just one process using the following framework:
PROCESS (Sclk, reset ) --do not add items here
BEGIN
IF (reset = '0') THEN
--put everything you want to initialize/re-initialize here
ELSIF (rising_edge (Sclk)) THEN
--put ALL of your other code here
END IF;
END PROCESS; Using this framework, your debugging should go much smoother. As a side note, I normally don't use variables if I can help it. It makes the logic much easier to follow for me.