Forum Discussion

shaunee's avatar
shaunee
Icon for New Contributor rankNew Contributor
5 years ago
Solved

Custom Library Unavailable in ModelSim after creating project

My custom library "cbgb" becomes unavailable in ModelSim as soon as I create a ModelSim project. This causes my project source code files to fail compilation because ModelSim cannot find the library ...
  • shaunee's avatar
    shaunee
    5 years ago

    Thanks for your help, ShyanYewT_Intel. I got my ModelSim project to compile following your suggestions, though not exactly. The steps:

    1. Started ModelSim from command line from my Linux installation directory (../modelsim_ase/linuxaloem).

    2. Created new library "cbgb" and mapping to it.

    3. Compiled files into "cbgb" from personal repository directory (../libraries/cbgb/..). "cbgb" appears in Library window with all its compiled files.

    4. Created new project "pert" in personal project directory (../projects/../modelsim). Copied settings from (../modelsim_ase/linuxaloem/modelsim.ini) since there was no modelsim.ini in my project directory. This file is different from the read-only master modelsim.ini found in (../modelsim_ase). It got created sometime during the previous steps. "cbgb" library changes to empty "cbgb (unavailable)" in Library window.

    5. Added files to project directory (../project/../modelsim/pert).

    6. Edited "cbgb (unavailable)" library's Pathname to point to existing library (../modelsim_ase/linuxaloem/cbgb). "cbgb" library appears in Library window with all its compiled files.

    7. Compiled my project.