Hello Tristan,
Thanks for your answer, that was what I needed.
I started looking at the ghw waveform generation and I have found the
procedure Wave_Put_Hierarchy_1 in grt-waves.adb where all signals are
extracted from the instance given in parameter. This instance contains
the hierarchy of the design. Before that there is something called hooks
that initialize all the waveform generators (vcd, ghw, etc) and call the
initialisation procedure of all the waveform generators (Wave_Start for
the ghw generator which is on the stacktrace of the call to
Wave_Put_Hierarchy_1).
My idea was to find the place were the instance is generated before
being available to the waveform generators and to create there another
instance with only the hierarchy of what needs to be displayed as
specified in a text file. The next step is to make the waveform
generators use this instance instead of the instance with everything. I
believe I have to put this new instance in the Grt.Rtis package. At
grt-main.adb, there is a call to Ghdl_Elaborate which execute some code
coming from I don't know where. This code will generate the instance (as
I believe) and eventually call procedure Ghdl_Rti_Add_Top in
grt-rtis.adb with the generated instance as input parameter.
What I would like to know is where is the code that generate the
instance with the hierarchy of the design and if you think that my
approach is good.
And thanks again for your help
Jonas
Le 22. 06. 16 à 07:59, Tristan Gingold a écrit :
On 22/06/16 07:08, jon...@tranquille.ch wrote:
Hi Tristan,
I have a question : is it possible to add debugging symbols in the
simulation executable or at least to show the stacktrace of one
particular point of the code ?
Yes. If you use the llvm or gcc backend, simply analyze and elaborate
using '-g', and then you can debug the executable.
If you simply want to debug the runtime, be sure it is built with -g
(that should be the default).
Tristan.
_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss