vunit icon indicating copy to clipboard operation
vunit copied to clipboard

Feature Request: Allow to add *.gtkw files to a testbench for GTKWave

Open sudden6 opened this issue 2 years ago • 2 comments

I want to store "GTKWave" save files along with my testbenches, so that I don't have to reconfigure the view all the time.

This is possible by executing run.py --gtkwave-args "-a <path to gtkw file>.gtkw" <testbench name> via command line, but I didn't find a way to pass a per testbench *.gtkw file via run.py so that someone else can easily use my preconfigured waveform views.

EDIT: I just saw that this exists for at least ModelSim, with set_sim_option("modelsim.init_file.gui", ...)

sudden6 avatar May 18 '22 12:05 sudden6

@sudden6 Will ghdl.gtkwave_script.gui help? See https://vunit.github.io/py/opts.html#simulation-options.

LarsAsplund avatar May 29 '22 07:05 LarsAsplund

In principle it can do the same thing, the advantage of *.gtkw files is, that GTKWave can write its current GUI setup itself, so updating them is very easy and user friendly.

I just realized another way to achieve this and maybe even more is to make the --gtkwave-args´ and --gtkwave-fmt` run time arguments configurable per testbench. It seems other simulator have this but not GTKWave.

sudden6 avatar May 29 '22 08:05 sudden6