Technical data

vsim
CR-218 ModelSim Commands ModelSim EE/SE Command Reference
<entity> [(<architecture>)]
Specifies the name of the top-level entity to be simulated. Optional. The entity may
have an architecture optionally specified; if omitted the last architecture compiled for
the specified entity is simulated. An entity is not valid if a configuration is specified.
Note:Most UNIX shells require arguments containing () to be single-quoted to prevent special parsing by
the shell. See the examples below.
Examples
vsim -gedge=low high -gVCC=4.75 cpu
Invokes VSIM on the entity cpu and assigns values to the generic parameters edge and
VCC.
vsim -view my_design.i03
Instructs VSIM to view the results of a previous simulation run stored in the logfile,
my_design.i03. Use the -wav option to specify the name of the signal logfile to create if you
plan to create many files for later viewing. For example:
vsim -wav my_design.i01 my_asic structure
vsim -wav my_design.i02 my_asic structure
...
vsim -sdfmin /top/u1=sdf1
Annotates instance /top/u1 using the minimum timing from the SDF file sdf1.
Use multiple switches to annotate multiple instances:
vsim -sdfmin /top/u1=sdf1 -sdfmin /top/u2=sdf2 top
vsim mylib.top(only) gatelib.cache_set
This example searches the libraries for mylib top(only) and gatelib for cache_set. If the
design units are not found, the search continues to the work library. Specification of the
architecture (only) is optional.
Note:The single quotes surrounding the (); this prevents special parsing by the UNIX shell.