Forum Discussion
Altera_Forum
Honored Contributor
17 years agoNot to avoid the original questions, but what is it you're trying to do? Do you want num to be something in the actual design(a value to be used), or is this just a test and you use it as a conditional or variable somewhere else?
If you're using it as something "physical" in the design, you're going to need a clock to store it's values and have safe additions. I would also recommend making it a signal rather than a variable(I personally recommend using signals almost all the time, and use variables only when they truly provide something a signal can't do...)