[dv common] Wave dumping improvements / fix

The original scope of this change was to fix the broken FSDB dumping
with Xcelium. I eventually ended up adding some more improvements to it.

- Got rid of the extra `--dump` switch in `dvsim`.
The existing `--waves` is update to accept one optional argument. If no
argument is specified, then it picks up whatever is the tool default.
Else, the user can set the preferred dumping format like this: `--waves
vpd`.

- Moved the suppprted tool-specific wave formats to HJson. This is
helpful when adding support for a new simulator (no need to poke around
the source code to figure out what needs to be done to get wave dump
supported).

- Added ability for the user to override the default run scripts (User
can override `run_script` HJson variable to supply a different file,
other than `<tool>.tcl`. They can set `skip_run` to take full control of
the simulation flow, or set `dump_tb_top` to 0 to add custom set of
hierarchies for dumping waves.

- Simulator run script (tcl) updates:
  - Added `common.tcl` for common (global) variables and procedures.
  - Added `wavedumpScope` proc - user can use this to dump custom
  scopes rather than the full testbench.
  - Added support for vcd and evcd dump formats (not expected to be
  used, but its there).
  - Fixed FSDB dumping for Xcelium (required 'call' to be added before
  `fsdbDump*` commands).

Signed-off-by: Srikrishna Iyer <sriyer@google.com>
12 files changed
tree: 365b746d767644c6fc8225d74e5dc58d00331e6e
  1. .github/
  2. ci/
  3. doc/
  4. hw/
  5. site/
  6. sw/
  7. test/
  8. util/
  9. .clang-format
  10. .dockerignore
  11. .flake8
  12. .gitignore
  13. .style.yapf
  14. .svlint.toml
  15. .svls.toml
  16. _index.md
  17. apt-requirements.txt
  18. azure-pipelines.yml
  19. check_tool_requirements.core
  20. CLA
  21. COMMITTERS
  22. CONTRIBUTING.md
  23. LICENSE
  24. meson.build
  25. meson_init.sh
  26. meson_options.txt
  27. python-requirements.txt
  28. README.md
  29. tool_requirements.py
  30. toolchain.txt
README.md

OpenTitan

OpenTitan logo

About the project

OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.

About this repository

This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.

Documentation

The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.

How to contribute

Have a look at CONTRIBUTING for guidelines on how to contribute code to this repository.

Licensing

Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).