Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- But the enable overrides load, because they are two separate ifs. So actually its a 3:1 priority mux with cnt+1, new_data or cnt. So while I agree I was initially wrong, and it should work with the cnt variable, the fact it's two separate ifs and not an elsif will be the problem. --- Quote End --- Yes that is a good point. It does not follow standard design The way I view it is as follows: --- Quote Start --- load enable cnt 0 0 no change of cnt 0 1 count up, may not get initialised 1 0 load value to cnt 1 1 count up --- Quote End ---