commit | 16367c929b2c169158759d7d7a75fc23b25d11a7 | [log] [tgz] |
---|---|---|
author | Sam Elliott <selliott@lowrisc.org> | Wed Apr 22 19:53:52 2020 +0100 |
committer | Garret Kelly <Garret.Kelly@gmail.com> | Tue Apr 28 10:31:39 2020 -0400 |
tree | d4db5fb93a458f8f0b3172f57b277b057fe718a1 | |
parent | e5a528940676e9dea67f83d6b10f64d0028d4cb7 [diff] |
[sw] Remove Interrupt Definitions from PLIC DIF With the changes in #2025 to support auto-generating the PLIC interrupt ID names based on the information in top_earlgrey.hjson, this commit removes all those IDs from the implementation of the DIF. This leads to having the PLIC DIF use `uint32_t`s almost everywhere in its interface, and it slightly changes how the claim/complete functions work to make the caller do more work to explicitly name the target they are using. We also use the generated parameter definitions in the code, including adding some static asserts so the build fails if these parameters are updated without changes to the PLIC DIF itself. These parameters are also used in precondition checks for the DIF arguments they correspond to. This commit also updates the `consecutive_irqs_test.c` to use the auto-generated PLIC interrupt IDs so it continues to pass. Signed-off-by: Sam Elliott <selliott@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 either access it online or build it locally by following the steps below.
$ sudo apt install curl python3 python3-pip $ pip3 install --user -r python-requirements.txt
$ ./util/build_docs.py --preview
This compiles the documentation into ./build/docs
and starts a local server, which allows you to access the documentation at http://127.0.0.1:1313.
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).