Technical data
Specifying the resource libraries
ModelSim EE/PLUS Reference Manual Design Libraries
-
43
Rebuildin
g
supplied libraries
Resource libraries are supplied precompiled in the
modeltech
installation
directory. If you need to rebuild these libraries, the sources are provided in the
vhdl_src
directory; shell scripts are also provided (
rebuild_libs.csh
and
rebuild_libs.sh
). To rebuild the libraries, execute one of the
rebuild_libs
scripts
while in the
modeltech
directory
Note: Because accelerated subprograms require attributes that are available only under the 1993 standard,
many of the libraries are built using
vcom
(p71) with the
-93
option.
Re
g
eneratin
g
your desi
g
n libraries
Depending on your current Model
Sim
version, you may need to regenerate your
design libraries before running a simulation. Check the installation readme file to
see if your libraries require an update. You can easily regenerate your design
libraries with
-refresh
. You must use
vcom
(p71)
with the
-refresh
option to
update the VHDL design units in a library, and
vlog
(p83)
with the
-refresh
option
to update Verilog design units. By default, the work library is updated; use
-work
<library>
to update a different library. For example, if you have a library named
mylib
that contains both VHDL and Verilog design units:
vcom -work mylib -refresh
vlog -work mylib -refresh
An important feature of
-refresh
is that it rebuilds the library image without using
source code. This means that models delivered as compiled libraries without
source code can be rebuilt for a specific release of Model
Sim
(4.6 and later only).
In general, this works for moving forwards or backwards on a release. Moving
backwards on a release may not work if the models used compiler switches or
directives (Verilog only) that do not exist in the older release.
Note: As in the example above, you will need to use
vcom
for VHDL and
vlog
for Verilog design units.
Also, you
don't
need to regenerate the std, ieee, vital22b, and verilog libraries. Also, you cannot use the
-refresh
option to update libraries that were built before the 4.6 release.