Electronic – How to build and use the own VHDL library

activehdlaldeclibraryvhdlvivado

I am trying to create a components library in VHDL. I have many .vhd source files with different components. Ideally I would like to be able to instantiate them in a design using the same method as a standard library.(or similar)

example:

library my_lib;
use my_lib.something.all;

And build a design using these components structurally.
Ideally I'd like to keep these as separate files because there are attached custom symbol (bds) files associated.

The symbols only matter when using Active-HDL (10.1) Being able to pull these files in and use them in the block diagram file would be great!

I would be using Aldec Active-HDL(10.1), Xilinx Vivado(2014.2), and Altera Quartus (9.1 web).

Any help would be greatly appreciated.

Best Answer

Xilinx Vivado:

You can create/change the library a file resides in Vivado by clicking on the file, then clicking the button to the right of the Library label in the Source File Properties tab. You can create a library by assigning a file to a library that doesn't exist.

Altera Quartus II:

You can specify the library under Properties, for example: enter image description here You can also modify the Quartus II settings (".qsf") file for the project using set_global_assignment options.