You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when using nvc as simulator, the waveforms set with --viewer-fmt format are only generated when using the --gui option of the Python runner. With ghdl, this isn't the case, waveforms are generated regardless of the --gui option.
I think, the problem is in nvc.py simulate() method:
First, wave_file is only set to a value if _gui is set:
There is #1042 which solves it. (There is also a bit of discussions/rambling in #1003 about the need for it.)
My thought has been to add a command to generate the waveforms in a more "non-surprising" way than specifying --viewer-fmt, but got wound up in what to call it...
--waveform(s) or --wave(s), but then one should probably have called --viewer-fmt--wave-fmt or something. And there I got stuck as I had just renamed it once... The idea is, to clarify, to specify that waveforms should be generated (but the gui should not be opened, so calling it something related to viewer seems confusing).
Coming back to it, I guess it can make sense to have a flag like that (--wave*) and then add aliases for --viewer-fmt that matches the selected name.
If you agree @LarsAsplund , and can make an executive decision on the naming, I should be able to provide a PR within a week or so.
It seems that when using nvc as simulator, the waveforms set with
--viewer-fmt
format are only generated when using the--gui
option of the Python runner. With ghdl, this isn't the case, waveforms are generated regardless of the--gui
option.I think, the problem is in nvc.py
simulate()
method:First,
wave_file
is only set to a value if_gui
is set:vunit/vunit/sim_if/nvc.py
Lines 260 to 265 in acf7e7f
Later if
wave_file
is set, the nvc--wave
is added to the command line:vunit/vunit/sim_if/nvc.py
Lines 295 to 296 in acf7e7f
In ghdl.py, creation of the waveform export command line option is only dependent on
_viewer_fmt
, but not on_gui
:vunit/vunit/sim_if/ghdl.py
Lines 368 to 375 in acf7e7f
vunit/vunit/sim_if/ghdl.py
Lines 327 to 333 in acf7e7f
The text was updated successfully, but these errors were encountered: