User`s manual
Start Here for ModelSim PE, Software Version 5.7
24
Regenerating your design libraries
Regenerating your design
libraries
When you upgrade between number versions (e.g., from 5.5 to 5.65), you must
regenerate your design libraries. This is not true for letter versions (e.g., 5.6a to
5.6d).
Regenerating methods
Explicit refresh
You can easily regenerate your design libraries with -refresh. You must use the
vcom compiler with the -refresh option to update the VHDL design units in a
library, and vlog 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 you would use both of these commands:
vcom -work mylib -refresh
vlog -work mylib -refresh
Rebuild libraries without source code
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 ModelSim (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 or if a bug was fixed
that makes it impossible to do a “backwards” refresh.
i
You don’t need to regenerate the std, ieee, vital22b, and verilog libraries
as these are provided with each release of ModelSim. However, if you
have your own copies of these libraries, you will need to refresh them.