Technical data
Specifying the resource libraries
ModelSim EE/PLUS Reference Manual Design Libraries
-
41
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 Command Reference" (p67) for more information about the library
management commands, "ModelSim EE Graphic Interface" (p103) for more information
about the graphical user interface, and "System Initialization/Project File" (p413) for more
information about the
modelsim.ini
file.
Movin
g
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.
Specifying the resource libraries
VHDL resource libraries
Within a VHDL source file, you can use the VHDL
library
clause to specify
logical names of one or more resource libraries to be referenced in the subsequent
design unit. The scope of a
library
clause includes the text region that starts
immediately after the
library
clause and extends to the end of the declarative
region of the associated design unit.
It does not extend to the next design unit in
the file.
Note that the
library
clause is not used to specify the working library into which
the design unit is placed after compilation; the
vcom
command (p71) adds
compiled design units to the current working library. By default, this is the library
named
work
. To change the current working library, you may use
vcom
-work
and specify the name of the desired target library.