In the Foundation Express environment, a user library is a VHDL file which is referenced by another file through a LIBRARY statement. A user library can contain packages and/or entities.
User libraries are stored as part of the Foundation project. Following are the basic steps to create new libraries in HDL Flow projects.
In the VHDL or Verilog code, user libraries for Foundation projects are declared and used just like system libraries such as IEEE. For example, to access the entities defined in the library mylib.vhd, use the following syntax:
library MYLIB
use MYLIB.all;
User library directories that are part of a project are automatically searched when referenced in VHDL.