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 agoThe use of signals and variables will have no difference in the end result IF you coded them the same.
I advise against variables because they can be affected by code order, and could produce logic you didnt intend. There is NOTHING you can do with variables you cannot do with signals, and signals are more likely to give the intended result, and hence why it's recommended for beginners to NEVER use varibales. Remember, this is NOT software.