Forum Discussion
Altera_Forum
Honored Contributor
13 years agoproblem (?) using shared variables
Hi, I need your kind opinion. Please, anyone explain me why the following code is not running. VHDL code (sel-explainable)
------------------------------------------------------
en...
Altera_Forum
Honored Contributor
13 years agoIm sure I answered this the other day, with the exact same code.
Anyway, its because there are no 'events on variables, and signals need a 'event to update outside a process. Hence they are loaded with the initial value of the shared variables and are never updated again. Solution - never use shared variables.