PDA

View Full Version : Convert WLF to VCD


Mancini Stephane
04-13-2005, 11:28 AM
Hi all,
Please, can someone would help me to convert a WLF file produced with
modelsim to a VCD file ?

Is there any converter ?

Thanks a lot for your help

Stéphane

Laurent Gauch
04-13-2005, 12:39 PM
Mancini Stephane wrote:
> Hi all,
> Please, can someone would help me to convert a WLF file produced with
> modelsim to a VCD file ?
>
> Is there any converter ?
>
> Thanks a lot for your help
>
> Stéphane


what is VCD file ?

Paul Hartke
04-13-2005, 03:57 PM
From the Modelsim Release Notes:

* A new utility, wlf2vcd, was added which converts a WLF file to
a
VCD file. Complex data types that are not supportable in the
VCD
standard (records, memories, etc) are not converted but
will
generate a warning message. These warning messages can be
filtered
out with the -quiet switch.

I just checked and it is in my 6.0 release.

Paul

Mancini Stephane wrote:
>
> Hi all,
> Please, can someone would help me to convert a WLF file produced with
> modelsim to a VCD file ?
>
> Is there any converter ?
>
> Thanks a lot for your help
>
> Stéphane

Analog Guy
04-15-2005, 06:05 AM
There are actually a few different ModelSim commands you can use
in a script file ("do" file) to automatically write out a VCD file.

To the beginning of your do file, add the following:

################################################## ##
### Open file for VCD (Value Change Dump) output ###
################################################## ##

# Create and open a VCD file
vcd file <filename>.vcd

# Add VHDL signals (i.e. in this case, recursively add all signals)
vcd add -r *


To the end of your do file, add the following:


#################################################
### VCD File Control - Dump all VCD variables ###
#################################################

# Flush contents of VCD file buffer to VCD file
vcd flush

# Turn off VCD dumping
vcd off


The only way I have found to actually close the VCD file (i.e. there is no
file close command that
I know of) is to perform a 'restart' on the ModelSim command line.





Mancini Stephane <[email protected]> wrote in message
news:[email protected]. ..
> Hi all,
> Please, can someone would help me to convert a WLF file produced with
> modelsim to a VCD file ?
>
> Is there any converter ?
>
> Thanks a lot for your help
>
> Stéphane