Forum Discussion
Altera_Forum
Honored Contributor
8 years agotask vs always
Hello, i know that always executes always when some parameter in the sensitivity list changes. in what cases task executes? if i have a task block and always block one after the other' which one...
Altera_Forum
Honored Contributor
8 years agoA task has to be called. Hence it needs to be called from inside an always or initial block.
A task block on it's own will be called as an implicit always. You cannot guarantee which will be called first, as it is down to what order the compiler decides to order them. So you shouldnt be assigning the same variable in both.