commit | 69b002acc268aace343a625aa9db8e452d463838 | [log] [tgz] |
---|---|---|
author | Pirmin Vogel <vogelpi@lowrisc.org> | Wed Nov 16 03:05:37 2022 +0100 |
committer | Pirmin Vogel <vogelpi@lowrisc.org> | Wed Nov 16 10:51:48 2022 +0100 |
tree | 833e9b23c35a1741bd4cafffe2c5726cb62abe1d | |
parent | f3d5a218d0794e4a7e55daf0be573a4bcd5185b8 [diff] |
[csrng, dv] Fix calls to `cg_err_code_sample()` It turned out that: 1. The previous way of passing the error code to sample didn't work. Somehow, `get_mirrored_value()` doesn't seem to work in this context. Instead, this commit changes the code to now perform a backdoor read of the CSR using `csr_rd()`. 2. Previously, we were using `$clog2()` to convert from the observed error code to the coverpoint. This doesn't work as in quite many cases multiple bits in ERR_CODE are set. Therefore, the sampling function is now called separately for every bit set in ERR_CODE. This has side effect of oversampling the other coverpoints in the same group which certainly isn't nice but it's still sufficient to detect if some bins aren't hit at all. Signed-off-by: Pirmin Vogel <vogelpi@lowrisc.org>
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 and our documentation on project organization and processes 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).