Technical data
Working with design libraries
40
-
Design Libraries ModelSim EE/PLUS Reference Manual
To edit an existing library mapping
Select the desired mapping entry, then click the
Edit
button. This brings up a
dialog box that allows you to modify the logical library name and the pathname
to which it is mapped. Selecting
Delete
removes an existing library mapping,
but it does not delete the library (delete the library via UNIX, DOS, or
Windows).
Library mapping from the command line
You can issue a Model
Sim
/PLUS command to set the mapping between a logical
library name and a directory; its form is:
vmap <logical_name> <directory_pathname>
This command may be invoked from either a UNIX/DOS prompt or from the
command line within Model
Sim
.
When you use
vmap
(p89) 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.
Unix symbolic links
You can also create a UNIX symbolic link to the library using the host platform
command:
ln -s <directory_pathname> <logical_name>
The
vmap
command (p89) 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>