09-04-2012 02:45 PM
I was installing full version of modelsim PE 10.1 (to work with ISE 10.1) on my machine. When I complile my code and launch modelsim, I get an error message saying - cannot load design unit "xilinxcorelib.mult_gen_v10_1".
I checked the library tree (in which I had some old modelsim xilinx libraries, from a previous installation), and the library structure actually does not have mult_gen_v10_1.
I was wondering if I can get this library (and others) for modelsim PE 10.1 online? Where might they be available for download? Any other way of acquiring them?
Thanks and regards.
09-04-2012 05:59 PM
You need to compile the Xilinx simulation libraries for Modelsim with 'compxlib' utility.
Please refer to Chapter 27 "COMPXLIB" in the following reference guide.
09-05-2012 08:45 AM
Thanks for the link to the tutorial. I was able to compile the libraries and import it to modelsim folder and it worked.
But what I had done was - compile the libraries, copy them to modelsim, and in the library window, I simply right clicked and added a new library, with a new name and pointed that name to the library from compxlib. This worked for me once and I was able to simulate my design. But when I restart the simulator, the libraries vanish and I need to add all the libs again.
What is the proper and more permanent way of adding the compxlibs to the modelsim library tree?
Thanks and regards,
09-05-2012 10:29 PM
In the directory where you launch "compxlib", you'll find modelsim.ini which contains pre-compiled library mappings.
secureip = C:\sim_libs\mti_se_10.1a_14_1/secureip
unisim = C:\sim_libs\mti_se_10.1a_14_1/unisim
unimacro = C:\sim_libs\mti_se_10.1a_14_1/unimacro
unisims_ver = C:\sim_libs\mti_se_10.1a_14_1/unisims_ver
unimacro_ver = C:\sim_libs\mti_se_10.1a_14_1/unimacro_ver
simprim = C:\sim_libs\mti_se_10.1a_14_1/simprim
simprims_ver = C:\sim_libs\mti_se_10.1a_14_1/simprims_ver
xilinxcorelib = C:\sim_libs\mti_se_10.1a_14_1/xilinxcorelib
xilinxcorelib_ver = C:\sim_libs\mti_se_10.1a_14_1/xilinxcorelib_ver
You can copy this configuration file to Modelsim installation directory and replace the default one, which only includes standard library mappings.
09-10-2012 02:54 PM
When compxlib is run, it will create/update a modelsim.ini file which will contain mappings to the various libraries. The modelsim.ini file will be created in the directory that you run compxlib from unless the $MODELSIM variable is defined, in which case the modelsim.ini file in that location will be updated with the new library information. When you run modelsim, you want to make sure that this new/updated modelsim.ini file is used to have the libraries mapped. Modelsim will look in the $MODELSIM directory first then the directory from which modelsim was launched.
OK, hope this helps ...