Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHelp with reseting counet
Hey, I've written a simple counter code When the cnt = 5 the signal std_logic_vector Inc +'1' Now I want you end this process when It's equal to "1111"; Everytime I try to end this I ...
Altera_Forum
Honored Contributor
11 years agoWhat is F_F_out - it's not declared in your code.
Assuming this is a typo - then your code will never have f_out locked at "1111" because the only situation where you check for "1111" also resets cnt. maybe you need the if f_out = "1111" then To have the highest prirotiy. On a side note - why have you got the sw signal as an asynchronous enable? this is bad practice - it should be a synchronous enable.