commit | cfcfbce85e182c127b8c4be5cd8bf531e0a4d927 | [log] [tgz] |
---|---|---|
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | Tue Mar 09 14:14:30 2021 +0000 |
committer | Rupert Swarbrick <rswarbrick@gmail.com> | Wed Mar 10 07:44:39 2021 +0000 |
tree | 61e76f8f5aa9a318c491073ce6d2aa9efd6aabb3 | |
parent | 264a77f3f0a7453dab393df5c936bfa281121942 [diff] |
[reggen] Promote FOO_SIZE to an int unsigned in *_reg_pkg.sv With the previous version of the code, there was a problem if the last window happened to finish on the same power of 2 boundary as the block's address space. In that case, we ended up with something like parameter logic [9:0] BLOCK_FOO_SIZE = 10'd1024; which is, of course, zero. It turns out that the only code in the tree that uses these _SIZE parameters is using them to compute int parameters (rather than something involving the address width). As such, we can just promote the parameter to an int unsigned, fixing various width mismatches as a bonus! 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).