Forum Discussion
Altera_Forum
Honored Contributor
11 years agoYou didnt assign it to 0 in s2. In the second always block, you need to assign all values in all states.
S1 will occur before s2, therefore fifo_wreq has already been set to 1 in the previous state. You created a latch (which is not a good thing) but letting it remember it's value between states.