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

Modelsim: add precompiled library

Altera_Forum
Honored Contributor II
3,836 Views

Hi all, 

in my project, I need to include a library, MF_pllpack.all: 

 

library ieee; 

use ieee.std_logic_1164.all; 

use std.textio.all; 

use work.mf_pllpack.all; 

... 

 

I have compiled that library elsewhere in another folder. 

How can I carry that compiled library under "Work" to use it in my project? 

Thanks to all
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
2,100 Views

it's easiest just to compile it for the local work libarary. 

 

vcom the_directory_of_the_MF_pllpack/MF_pllpack.vhd 

 

otherwise you have to import it as an external (not work) library
0 Kudos
Altera_Forum
Honored Contributor II
2,101 Views

i have not got the .vhd file (MF_pllpack.vhd), but only the compiling folder containing the compilation files

0 Kudos
Altera_Forum
Honored Contributor II
2,101 Views

in that case either: 

 

copy the compiled files to the local work folder and try a refresh 

use the ML_pllpack folder as the work folder. 

map an external library to the MF_pllpack work folder: 

 

vmap MF_Lib MF_directory/work 

 

and then in your source: 

 

library MF_Lib; 

use MF_Lib.MF_pllpack.all;
0 Kudos
Altera_Forum
Honored Contributor II
2,101 Views

use the ml_pllpack folder as the work folder.??? 

 

I have to include even other libraries...I have to mantain 'WORK' as work folder
0 Kudos
Altera_Forum
Honored Contributor II
2,101 Views

then I suggest you do not include MF_pllpack in the work library but map to it as another library. 

 

vmap MF_lib directory_of_MF/work/ 

 

then in the code, instead of  

use work.MF_pllpack.all; 

 

write: 

 

library MF_Lib; 

use MF_Lib.MF_pllpack.all;
0 Kudos
Reply