Technical data
wlf2log
CR-224 ModelSim Commands ModelSim EE/SE Command Reference
-4.3
Reads intermediate version (4.2 and 4.3) .wav files. Optional.
-quiet
Disables error message reporting. Optional.
-o <outfile>
Directs the output to be written to the file specified by <outfile>. Optional. The
default destination for the logfile is standard out.
<wavfile>
Specifies the ModelSim logfile that you are converting. Required.
Additional information for QuickSim II users
In some cases your original QuickHDL/ModelSim simulation results (in your
vsim.wav file) may contain signal values that do not directly correspond to
qsim_12state values. The resulting QuickSim II logfile generated by wlf2log may
contain state values that are surrounded by single quotes, e.g. ’0’ and ’1’. To make
this logfile compatible with QuickSim models (that expect qsim_12state) you
need to use a QuickSim II function named $convert_wdb().
This function was created to convert logfiles resulting from VHDL simulation that
used std_logic and std_ulogic since these data types do not correlate to
QuickSim’s 12 simulation states. Other VHDL data types such as qsim_state or
bit (2 state) do not require conversion as they are directly compatible with
qsim_12state QuickSim II Waveform Databases (WDB).
The following procedure can be used to convert a wlf2log-generated logfile into
a compatible QuickSim WDB. The procedure below shows how to convert the
logfile while loaded into memory in QuickSim II.
1 Load the logfile (the output from wlf2log) into a WDB other than "forces". "Forces"
is the default WDB, so you need to choose a unique name for the WDB when loading
the logfile (for example, "fred").
2 Enter the following at the command prompt from within QuickSim:
$convert_wdb("fred",0)
The first argument, which is "fred", is the name of the new WDB to be created.
The second argument, which is 0, specifies the type of conversion. At this time
only one type of conversion is supported. The value 0 specifies to convert
std_logic or std_ulogic into qsim_12state.