From: Andrey Miroshnikov Date: Mon, 8 May 2023 20:04:38 +0000 (+0100) Subject: microwatt_tutorial: Added extra links, updated info on vcd. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3d3ccfee9560dca4560667792a54f70401b1d51;p=libreriscv.git microwatt_tutorial: Added extra links, updated info on vcd. --- 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