commit | 8b675981e9a9f2a7ebadc2f7964e4b2437bacce6 | [log] [tgz] |
---|---|---|
author | Timothy Trippel <ttrippel@google.com> | Thu Dec 16 18:08:59 2021 -0800 |
committer | Miguel Young <mcyoung@google.com> | Tue Jan 04 15:16:01 2022 -0500 |
tree | 2b06f55e9820960cd2c9d9fbcf1b84d4f2a3a61c | |
parent | 30f1c63cb892c26ef5a0d1b5d618dea49ec55551 [diff] |
[sw/dif] Add `toggle_to_bool()` and `bool_to_toggle()` to DIF base. Several DIF libraries had redefined the same logic to translate `dif_toggle_t` types to/from bool types. This commit adds one shared implementation of said functions, and removes the duplicates across individual DIF libraries. This partially addresses a task item in #9036. Signed-off-by: Timothy Trippel <ttrippel@google.com>
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).