User`s manual
ModelSim Xilinx User’s Manual Multiple logfiles, datasets and virtuals 6-95
6 - Multiple logfiles, datasets and virtuals
Chapter contents
Multiple logfiles and datasets . . . . . . . . . . . . . . . . 95
Opening and viewing datasets . . . . . . . . . . . . . . . 96
Using datasets with ModelSim commands . . . . . . . . . . . . 98
Restricting the dataset prefix display . . . . . . . . . . . . . 99
Virtual Objects (User-defined buses, and more) . . . . . . . . . . 100
Virtual signals . . . . . . . . . . . . . . . . . . 101
Virtual functions . . . . . . . . . . . . . . . . . 102
Virtual regions . . . . . . . . . . . . . . . . . . 102
Virtual types . . . . . . . . . . . . . . . . . . 103
Logfile and virtual commands reference table . . . . . . . . . . . 103
A ModelSim simulation can be logged to a WLF file (formerly a WAV file) for
future viewing or comparison to a current simulation. By default the logfile is
named vsim.wlf.
With ModelSim release 5.3, you can open more than one logfile for simultaneous
viewing in a single Wave window. You can also create virtual signals that are
simple logical combinations of, or logical functions of, signals from different
logfiles. This capability provides the basic mechanism for comparing simulations.
Multiple logfiles and datasets
When running a simulation, the logfile from a previous simulation may be opened
in view mode and used as a reference. (View mode allows you to view, but not
run, a previous simulation.)
If a logfile is viewed during an active simulation, a unique dataset name identifies
each simulation. Two datasets are in view in the Wave window below; the current
simulation is indicated by the "sim" prefix and a previous simulation is indicated
by the "view" prefix. The default dataset names are:
sim: – for the current active simulation
view: – for the first view-mode file opened
view<n>: – for the (n+1)-th view-mode file opened
Default dataset names may be changed in the pref.tcl file.