Forum Discussion
Altera_Forum
Honored Contributor
9 years agovariable initialization help
Hi all, For a process, the variable only take the initial value at the first time the process is running, then it will take the last value of that variable. I am wondering how can I initial the...
Altera_Forum
Honored Contributor
9 years agoYou havent really said what you wanted to do. Even in the previous example, you code simply adds 1 to initval, so v1 is always initval + 1. It will not increment. You need some enable signal to mark when you actually want to assign the initval.