commit | 44add926979aeef643124f8b57a003f85dff3572 | [log] [tgz] |
---|---|---|
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | Wed Apr 07 13:46:52 2021 +0100 |
committer | Rupert Swarbrick <rswarbrick@gmail.com> | Wed Apr 07 21:24:18 2021 +0100 |
tree | 9628ca7ccaa19db4bd06fd6e5476ba0213ecd43a | |
parent | 564683d3907ba089969a3386a69312413181ec38 [diff] |
[keymgr,lint] Correct width for keymgr_stage_e enum The code in keymgr.sv sizes arrays (like adv_matrix, adv_dvalid, id_matrix) to have 2**StageWidth entries. Here, StageWidth is $clog2(KeyMgrStages) and is the number of bits needed to index into the 3 possible stages (corresponding to the three valid enum values of keymgr_stage_e). In fact, we index into these arrays with the "stage_sel_o" output of keymgr_ctrl, which can also have value 3 (= Disable). Anyway, Verilator was complaining because we used a 3-bit enum constant to index into an array of 4 entries. Fixing the enum width to 2 bits silences the warnings. Signed-off-by: Rupert Swarbrick <rswarbrick@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 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).