[Libre-soc-dev] Improving GTKWave debugging

Luke Kenneth Casson Leighton lkcl at lkcl.net
Sat Aug 15 12:42:43 BST 2020

On Sat, Aug 15, 2020 at 11:27 AM Cesar Strauss <cestrauss at gmail.com> wrote:
> Greetings,
> Lately, I've been investigating about generating better GTKWave "save"
> files (*.gtkw), from Python. The goal is to ease analysis of traces
> generated by unit-tests,

hurrah.  because it is a royal pain.  i have a stack of gtkw files
where i have had to import signals "by hand" - several hundred - and
put colour on them.

> and at the same time to better understand the
> inner working of modules, for which we are writing such tests.
> I am using src/soc/experiment/alu_fsm.py as a test bed for demonstration.
> To see the current work, run:
> 1) python3 src/soc/experiment/alu_fsm.py
> 2) gtkwave test_shifter.gtkw

ooo niiiice.  i liked it so much i created this page

> Possibly, I'll propose and contribute back improvements to the nMigen
> sim.pysim.Simulator.write_vcd method, which was my inspiration for this
> work.

that i think would be fantastic.


More information about the Libre-soc-dev mailing list