From c3d3ccfee9560dca4560667792a54f70401b1d51 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Mon, 8 May 2023 21:04:38 +0100 Subject: [PATCH] microwatt_tutorial: Added extra links, updated info on vcd. --- HDL_workflow/microwatt_tutorial.mdwn | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/HDL_workflow/microwatt_tutorial.mdwn b/HDL_workflow/microwatt_tutorial.mdwn index 7393986bb..0ce23ee2f 100644 --- a/HDL_workflow/microwatt_tutorial.mdwn +++ b/HDL_workflow/microwatt_tutorial.mdwn @@ -11,6 +11,7 @@ useful links: * [Verilator runtime command documentation](https://verilator.org/guide/latest/exe_sim.html) * First steps for working with PowerISA instructions Libre-SOC page: [[/docs/firststeps]] +* Tutorials for how to work with verilator: [part1](https://www.itsembedded.com/dhd/verilator_1/), [part2](https://www.itsembedded.com/dhd/verilator_2/) ## Development environment scripts @@ -171,9 +172,16 @@ You'll get a message like this: These snapshots are generated at intervals of every 2,000,000 ticks. -- `microwatt-verilator.vcd` - (TODO: Need to check) - GTKWave waveform file, -allowing you to look at processor signals and transitions during simulation. -*Needs to be converted to fst file first*: +- `microwatt-verilator.vcd` - GTKWave waveform file, allowing you to look at +processor signals and transitions during simulation. +Pass `-d` flag to `microwatt-verilator` binary: + + (microwatt):$ ./microwatt-verilator hello_world/hello_world.bin -d + +**NOTE**: Trace dumping will generate a large VCD file (about 6GB for the hello +world example)! + +If you want GTKWave to load it faster, convert to fst first: (microwatt):$ vcd2fst --vcdname=microwatt-verilator.vcd --fstname=microwatt-verilator.fst (microwatt):$ gtkwave microwatt-verilator.fst -- 2.30.2