Altera_Forum
Honored Contributor
18 years agolibraries and packages
The background: I need to define my own type that I would like to use in entity's port. It looks like there is no other way to make this type public other than define it in package.
The code is -- mvb_lib.vhd -- package mvb_lib istype bit_cell is ('0','1',nl,nh);
end mvb_lib If in my top object i declare library mvb_lib
use mvb_lib.all the compiler does not comply but when I use bit_cell it terminates with error object "bit_cell" used but not declared. I found out, that I can use use work.mvb_lib.all in my file and in the properties of the file fill in "mvb_lib" into the library entry. But this is a little bit strange for me. Is there other "clean" way of using packages in projects?