1
\$\begingroup\$

I want to export the Modelsim waveforms of my simulated design in a form where they can look decent when printed. To be more specific, without the black background, in a vector format preferably.

Not something like this: enter image description here

But instead like this:

enter image description here

The schematics are indicative, but I hope you get the point. Is there any way to achieve that?

\$\endgroup\$
  • 1
    \$\begingroup\$ iVerilog/GHDL + GTKwave and set the background to black and white. I always do this whenever printing a Testbench wave form \$\endgroup\$ – Elbehery Mar 3 '17 at 14:14
2
\$\begingroup\$

in a form where they can look decent when printed

is a very subjective statement. Moreover, you can't really customize MSIM wave editor to display things very differently. Considered your question is quite broad, the simplest way I can think of is to import your wave in a waveform viewer you like better.

To export the waveform in a commonly usable vector format you can use the command line tool from vsim (2005 onward):

> wlf2vcd
> Usage: wlf2vcd [<Options>...] [-o <outfile>] <wlffile>

Which will convert your selected *.wlf file into a common value change dump file, holding all the informations you need. (more on that https://en.wikipedia.org/wiki/Value_change_dump)

The source waveform (.wlf) file is commonly generated by any modelsim simulation and saved, when you exit vsim, under vsim.wlf unless another name was specified.

Once you have your waveform in .vcd format, you can import it in any waveform viewer of choice and style its display according to your preference.

You can check for viewers in https://en.wikipedia.org/wiki/Waveform_viewer , or you can even code your own, provided you understand VCD syntax.


Alternative

Unless you have to deal with plenty of waveforms, objects and processes, and instead make a functional waveform focused on a specific behaviour, I would reccomend using a simple wave editor to display what you need to.

My personal favourite when I have to export waveforms I analyzed to colleagues which wouldn't benefit from MSIM view, I go to http://wavedrom.com/ which is quick enough to make an effective (and -IMHO- pretty) graph.

\$\endgroup\$
  • \$\begingroup\$ Wavedrom is amazing. Very beautiful graphs. However, as both you and @Elbehery suggested in comments I will probably go with .vcd and GTKWave. \$\endgroup\$ – Arkoudinos Mar 4 '17 at 23:23
0
\$\begingroup\$

You can undock the window
enter image description here

then select the following:

enter image description here

you get a nice image you can insert into a doc and print enter image description here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.