Previous

User Libraries for HDL Flow Projects

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.

Creating a New Library

User libraries are stored as part of the Foundation project. Following are the basic steps to create new libraries in HDL Flow projects.

  1. Select Synthesis New Library from the Project Manger.

  2. Enter a name for the new library and click OK. The new library is added to the list of project files on the Files tab.

  3. To add files to the new library, right click on the library name in the Files tab list.

  4. Select the Add Source Files to library option to access the Add Document dialog window where you can select the files to be added to the library. The files are analyzed automatically as they are added.

Declaring and Using User Libraries

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.

Next