Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17258 Discussions

Create custom precompiled library

Altera_Forum
Honored Contributor II
1,149 Views

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?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
397 Views

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
0 Kudos
Reply