commit | e10dfaf312614ae9ebcdfb8c79840de4cf45be7e | [log] [tgz] |
---|---|---|
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | Tue Nov 09 17:28:56 2021 +0000 |
committer | Rupert Swarbrick <rswarbrick@gmail.com> | Tue Nov 16 23:13:21 2021 +0000 |
tree | ecc284233f88942203c7490133d528f70a3a69c5 | |
parent | b407f2200168c70d8561a3147df5e196f970cec2 [diff] |
[otbn,dv] Teach otbn_model to pass validity bits to and from the ISS The binary file format has changed and now consists of 5 bytes for each 32-bit word. The first byte is a "validity byte", which should have value 0 (for invalid) or 1 (for valid). The other 4 bytes are a little-endian encoded 32-bit word. The first change in otbn_model is to use Ecc32MemArea's new ReadWithIntegrity method to get the integrity bits as well as the raw data. We then pass this to the ISS in the new format. In the other direction (reading data from the ISS), we have to parse the new format and also need to tweak our correctness check. Note that there's a temporary hack (with TODO message) here, which will go away once we've implemented integrity bits properly on the ISS side. On the ISS side, the only work is to read and write the new file format (with struct format string "<BI") and fix up the various bits of packing logic. There's a corresponding hack (also with TODO message), reminding us to handle validity bits properly when loading DMEM. 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 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).