User`s manual
Working with design libraries
ModelSim Xilinx User’s Manual Design Libraries 2-31
When you use vmap (CR-147) this way you are modifying the modelsim.ini file.
You can also modify modelsim.ini manually by adding a mapping line. To do this,
edit the modelsim.ini file using any text editor and add a line under the [Library]
section heading using the syntax:
<logical_name> = <directory_pathname>
More than one logical name can be mapped to a single directory. For example,
suppose the modelsim.ini file in the current working directory contains following
lines:
[Library]
work = /usr/rick/design
my_asic = /usr/rick/design
This would allow you to use either the logical name work or my_asic in a library or use
clause to refer to the same design library.
The vmap command
(CR-147) can also be used to display the mapping of a logical
library name to a directory. To do this, enter the shortened form of the command:
vmap <logical_name>
Library search rules
The system searches for the mapping of a logical name in the following order:
• First the system looks for a modelsim.ini file.
• If the system doesn’t find a modelsim.ini file, or if the specified logical name
does not exist in the modelsim.ini file, the system searches the current working
directory for a subdirectory that matches the logical name.
An error is generated by the compiler if you specify a logical name that does not
resolve to an existing directory.
See also
See "ModelSim Commands"
(CR-11) for more information about the library
management commands, "ModelSim XE Graphic Interface"
(7-105) for more
information about the graphical user interface, and "Projects and system
initialization"
(3-35) for more information about the modelsim.ini file.
Moving a library
Individual design units in a design library cannot be moved. An entire design
library can be moved, however, by using standard operating system commands for
moving a directory.