Ghdl: Constants & Variables

Created on 14 Aug 2020  Â·  4Comments  Â·  Source: ghdl/ghdl

Issue: In other simulators as Modelsim, Xsim, ... it is possible to show in the waveform window the in the design and simulation used constants and variables. I did not find a way to do this in GHDL. Maybe it's possible maybe not. If not it might be an idea to add this option

Solution: a command control option like --vhd93

Alternative: Did the simulation in Xilinx Xsim.

If it's possible to display constants and variables can somebody tell me how?
I'm using GHDL compiled with LLVM on Linux-Mint-20.4 (cinnamon).

Thanks,

Restructured Text Enhancement FST GHW VCD Question

Most helpful comment

It would be nice if variables were dumped at the end of the delta cycle.

A variable used as a loop iterator isn't all that interesting, as what we'll end up seeing is just the final value of the variable.

But where dumping variables is useful is when you use them as an intermediate part of a larger assignment.

All 4 comments

@ZirconfleX, you are doing nothing wrong. Unfortunately, dumping constants and/or variables is not supported in GHDL. See VUnit/vunit#449.

I'm leaving this issue open for Tristan to confirm whether this is a technical limitation or just a yet not implemented feature. Then, I believe we should update the docs accordingly.

How do you want variables to be dumped ? At the end of each cycle ?

Hi,

Xilinx ISIM and Modelsim (Questa) show constants as signals in the
waveform (see picture).
Modelsim shows also variables in a pane in its main window. They are
showed at the end of a simulation run.

Regards,

On 23/08/2020 21:26, tgingold wrote:
>

How do you want variables to be dumped ? At the end of each cycle ?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ghdl/ghdl/issues/1435#issuecomment-678814305, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACGKXNTWL3HILF6HQ2AA6ILSCFUPJANCNFSM4P7OGB5A.

It would be nice if variables were dumped at the end of the delta cycle.

A variable used as a loop iterator isn't all that interesting, as what we'll end up seeing is just the final value of the variable.

But where dumping variables is useful is when you use them as an intermediate part of a larger assignment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RocketRoss picture RocketRoss  Â·  4Comments

GlenNicholls picture GlenNicholls  Â·  5Comments

targeted picture targeted  Â·  3Comments

alemuller picture alemuller  Â·  5Comments

sckoarn picture sckoarn  Â·  4Comments