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 I reference in the source code. All the files in the custom library compile w/o errors. The project compiles fine in Quartus and works in HW. The project compiles fine and simulates in another simulator. I start ModelSim from command line. Updating the library does nothing. Refreshing the library changes it from unavailable to empty.
modelsim_compile_errors_1.png shows the compilation errors
source_lib_declare_1.png shows the lines of code in question
modelsim_libs_before_project_1.png shows the libraries before creating a project
modelsim_libs_after_project_1.png shows the libraries after creating a project
ModelSim Intel FPGA Starter Edition 2020.1
Quartus Prime Version 20.1.0 Lite Edition
CentOS Stream release 8
Linux RedHat Enterprise kernel 5.9.2
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.