Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17249 ディスカッション

Modelsim: add precompiled library

Altera_Forum
名誉コントリビューター II
3,841件の閲覧回数

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 件の賞賛
5 返答(返信)
Altera_Forum
名誉コントリビューター II
2,105件の閲覧回数

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
Altera_Forum
名誉コントリビューター II
2,106件の閲覧回数

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

Altera_Forum
名誉コントリビューター II
2,106件の閲覧回数

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;
Altera_Forum
名誉コントリビューター II
2,106件の閲覧回数

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

 

I have to include even other libraries...I have to mantain 'WORK' as work folder
Altera_Forum
名誉コントリビューター II
2,106件の閲覧回数

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;
返信