| commit | 340c0f4f2ad023c2053a9bfcdc3a4cc6fc45e1f8 | [log] [tgz] |
|---|---|---|
| author | Srikrishna Iyer <sriyer@google.com> | Thu Feb 25 17:36:55 2021 -0800 |
| committer | Srikrishna Iyer <46467186+sriyerg@users.noreply.github.com> | Fri Feb 26 08:29:27 2021 -0800 |
| tree | de50eaf9e38844f9b4271d2b562eae44d4b6dbb8 | |
| parent | d812401e0220ecc4f6471b9b3d54175ded8d0dd3 [diff] |
[dv] Fix VPD dumping The VPD `dump` command returns a file id when run with the `-file <filename>` switch (which is what we do as a first step). That by itself does not start creating the dump file. The `-add` command is what actually starts the actual dumping. Without providing the file id to the `-add` switch, it assumes that a new file is supposed to be created. For worksites that have access to the FSDM dumper license, it defaults to dumping with FSDB (despite providing the `-w vpd` switch to dvsim), else it defaults to vpd. This explains why it works at lowRISC but bombs at Google / WD. In this fix, we capture the file id returned by the `dump -file` command and pass it to the subsequent `dump -add` commands. While this did seem to fix the VPD dumping, I was unable to open it out of the box using `gtkwave`. FWIU, the reason is this happens because we enable dumping of MDAs. gtkwave runs the `vpd2vcd` utility underneath to convert it to vcd, but that is missing the `+includemda` switch which causes it to bomb. I am not sure how folks at LR are handling this at the moment. Fixes #5354. Signed-off-by: Srikrishna Iyer <sriyer@google.com>

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.
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.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).