Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Create custom precompiled library

Hello people,

I have a small to medium experience with Quartus II but I haven't figured that out yet.

I want to create a small collection of VHDL entities that I use a lot (for example a PWM block, an ADC SPI interface for a specific ADC, etc) and put them in a custom library so that I can use them at later applications. So in any other project I can include the library in the settings and instantiate the entities inside the project or the .bdf file. I would prefer if the library would be precompiled so that I gain some compilation time.

After I finish this library (if possible) and compile it, does this mean that it applies for only one device (e.g. DE0-Nano)?

Any ideas?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    pre-compiling wont give you any speed up - most of the compile time is taken in the fit and that will changing based on EVERYTHING and will have little to do with the underlying VHDL. The best thing to do is just put the files into a separate directory and put a .qip file in there. Then you can just include the .qip file in the next project.

    For modelsim, you can compile the libraries locally into a work library, and then from the new project just use vmap to bring in the library:

    vmap my_pwm_library /code/pwm/work