commit | 069fe39c8a68b53ec803c3e28974f275d832ba3e | [log] [tgz] |
---|---|---|
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | Mon Mar 21 20:56:04 2022 +0000 |
committer | Rupert Swarbrick <rswarbrick@gmail.com> | Wed Mar 30 10:13:32 2022 +0100 |
tree | e9d50cf81d11917ba4370b1418f96f515ded0c57 | |
parent | 2b8c7f5f46a4a5c0a38fdd06f71e398472268e68 [diff] |
[otbn,dv] Fix off-by-one error in pick_bad_addr In the known_mem class, "top_addr" is the size of the memory in bytes (possibly badly named!), so we have to subtract one from the last gap in the list to avoid possibly picking a value that's one too big. This wouldn't matter if this was actually a memory (it will still be a bad address!) but it's a problem if we're using this function to pick a bad CSR: numbers strictly bigger than 4095 aren't actually encodeable. 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]({{< relref “CONTRIBUTING.md” >}}) 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).