Forum Discussion
Altera_Forum
Honored Contributor
15 years agoGlobal Variables in VHDL
Hello, I am told that the 2008 VHDL allows one to use global variables. Does anyone have nay example code that would demonstrate this? I am interested in any kind of feedback I can get from th...
Altera_Forum
Honored Contributor
15 years agoGlobal signals and global shared variables have been around since the dawn of VHDL I think (at least since 93). They allow you to put a signal/shared variable in a package. This signal/variable is then accessible/modifiable to all code that use the package.
This feature is only meant as a debugging tool. So much so that altera refuse to compile global signals. They know about them but will not allow their compilation. Are you sure you're not thinking about accessing things heirarchically? in 2008 you can access signals/variables without having to send them through port maps, but again, its only meant for debugging.