google / google/xls

Add waveform traces output to testbench to simulator

Open
#763 4 comments 1 reaction 1 assignee Claimed by @Forchapeatl View on GitHub
good first issue simulator
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

Currently, XLS supports iverilog for simulating verilog module with a testbench. When simulating iverilog, the waveform of the testbench can be created for viewing by other open source tools (e.g. [gtkwave](https://gtkwave.sourceforge.net/)).

To produce the waveform traces, the following can be added to the initial block of the testbench.
```
$dumpfile("some_file_name.vcd");
$dumpvars(0, test_bench_module_name);
```

Then, viewed by gtkwave:
```
gtkwave some_file_name.vcd
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.