Forum Discussion

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

Modelsim: add precompiled library

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

5 Replies

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

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

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

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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;