Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHierarchical reference to custom type
I have a state machine defined with the following lines in one of my source files: type SM_STATES is (idle, state1, state2, state3, state4); signal current_state : SM_STATES; In my testbenc...
Altera_Forum
Honored Contributor
10 years agoIve just looked it up - external names can only fetch constants, shared variables and signals. So you need to make the type declaration visible by putting it in a package.