LinkLibraryDirectory issues

Why OSVVM™? Forums OSVVM LinkLibraryDirectory issues

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #2325


    I seem to be having an issue with LinkLibraryDirectory when running it in Modelsim SE-64 2019.4. I am using this to add a directory of precompiled altera libraries. It appears that on different runs/occasions (even in a clean folder without a modelsim.ini) not all libraries are always mapped thus failing the later compilation of other source files.

    Could this have anything to do with Windows/Modelsim handling things in parallel and launching the compilation of other files before all remaps have been done? Any tips/hints where I might go wrong or could start looking to fix this?

    Thanks in advance.
    Kind Regards
    Lukas Rondelez

    Jim Lewis

    Hi Lukas,
    Do you have the output of LinkLibraryDirectory? If it is working ok, it should be something like the following:

    LinkLibraryDirectory C:/tools/VHDL_LIBS/QuestaSim-2022.01
    # set CurrentSimulationDirectory C:/tools/sim/questa
    # vmap    defaultlib  C:/tools/VHDL_LIBS/QuestaSim-2022.01/defaultlib
    # vmap    osvvm  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm
    # vmap    osvvm_axi4  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm_axi4
    # vmap    osvvm_common  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm_common
    # vmap    osvvm_cosim  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm_cosim
    # vmap    osvvm_dpram  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm_dpram
    # vmap    osvvm_dpram_pt  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm_dpram_pt
    # vmap    osvvm_ethernet  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm_ethernet
    # vmap    osvvm_uart  C:/tools/VHDL_LIBS/QuestaSim-2022.01/osvvm_uart

    If the precompiled altera libraries are not all in the same directory, you may have to do several LinkLibraryDirectory.

    You probably also need to look into which libraries does it find and which ones are missing and where are they located.

    Best Regards,

    P.S. With ModelSim/QuestaSim, watch out for spaces in the library path. You can work around issues if you can compose a relative path to the libraries without the space, but otherwise, you may be out of luck – that is one tool bug that I cannot find a good work around for.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.