UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 15911

11.5 CompXlib ModelSim SE/PE - Libraries not mapped in ModelSim even after compiling with CompXlib

Description


The file modelsim.ini in the modelsim folder is read-only by default.

When you run compxlib.exe it looks in the location set by the env variable $MODELSIM.
 
If the variable is not found, a modelsim.ini file is created in the current folder ( the folder from which CompXlib is run ).

If the env variable is found, CompXlib tries to append the library mappings to the modelsim.ini file pointed to by $MODELSIM.
 
If that modelsim.ini is read-only (which is the default ) CompXlib does not append the library mappings.

As a result, the libraries get compiled but do not get mapped.

Solution


Check in the current directory to see if a modelsim.ini is created.

If it is created, copy that file into the modelsim folder overwriting the old modelsim.ini file.

Please make a backup of the original modelsim.ini file before doing this.

Open the modelsim.ini file created in the current folder and copy the library mappings to the modelsim.ini file in the modelsim folder.

They look like the following:

UNISIMS_VER = c:\simLib\unisim_ver
UNI9000_VER = c:\simLib\uni9000_ver
SIMPRIMS_VER = c:\simLib\simprim_ver
XILINXCORELIB_VER = c:\simLib\XilinxCoreLib_ver
AIM = c:\simLib\abel\aim
UNISIM = c:\simLib\unisim
SIMPRIM = c:\simLib\simprim
XILINXCORELIB = c:\simLib\XilinxCoreLib
PLS = c:\simLib\abel\pls


If you do not have a modelsim.ini file generated in the current directory, you can edit the modelsim.ini file in the modelsim folder and add the library mappings manually.

They would look like the following:
 

UNISIMS_VER = c:\simLib\unisim_ver
UNI9000_VER = c:\simLib\uni9000_ver
SIMPRIMS_VER = c:\simLib\simprim_ver
XILINXCORELIB_VER = c:\simLib\XilinxCoreLib_ver
AIM = c:\simLib\abel\aim
UNISIM = c:\simLib\unisim
SIMPRIM = c:\simLib\simprim
XILINXCORELIB = c:\simLib\XilinxCoreLib
PLS = c:\simLib\abel\pls


You will need to ensure that the paths are correct and you only map the libraries that you have compiled.

Now follow the steps below:

  1. Delete the compiled libraries.
  2. Make the modelsim.ini file in the ModelSim folder writable.
  3. Make sure that the env variable MODELSIM is pointing to this file (modelsim.ini).
  4. Run CompXlib again.

This will compile everything again and edit the modelsim.ini file to append the mappings.
AR# 15911
Date Created 10/16/2002
Last Updated 11/26/2014
Status Active
Type General Article
Tools
  • ISE
  • ISE Design Suite