Technical data

wav2log
102
-
ModelSim Command Reference ModelSim EE/PLUS Reference Manual
-4.1
Reads older version (pre-4.2) .wav files. Optional.
-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 log file is standard out.
<wavfile>
Specifies the ModelSim log file 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 wav2log 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 wav2log-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 wav2log) 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.
3 Do a connect_wdb (either through the pulldown menus, the "Connect WDB" pallette icon under
"Stimulus", or a function invocation). You specify the name of the WDB that you originally loaded
logfile into (in this case, "fred").
At this point you can issue the "run" command and the stimulus in the converted logfile will be applied.
Before exiting the simulation you should save the new WDB ("fred") as a WDB or logfile so that it can
be loaded again in the future. The new WDB or logfile will contain the correct qsim_12state values
eliminating the need to re-use convert_wdb().