[dv,sw] C messaging flow

- provide a generic set of APIs to print msgs
- provide ability to attach severity (msg type) and verbosity to msgs
- provide ability to attach a header to the msg underneath
  - privide ability to construct the header based on severity, verbosity
    file and line number for ease of debug

- provide a generic msg_print() function that can parse a formatted string and
take variable number of args

- provide implementation specific APIs in
sw/util/msg_uart/msg_api_impl.h to do the prints via UART

- PR #259 is being split to make the review easier
- this PR focuses on providing a high level API and 'typical' SW
implementation of it using UART,
- Subsequent PR will focus on DV specific implementation

Signed-off-by: Srikrishna Iyer <sriyer@google.com>
13 files changed
tree: 991501b0d3e8ceb11641c274a48037e8a02bd123
  1. .github/
  2. ci/
  3. doc/
  4. hw/
  5. site/
  6. sw/
  7. test/
  8. util/
  9. .clang-format
  10. .gitignore
  11. .style.yapf
  12. _index.md
  13. azure-pipelines.yml
  14. CLA
  15. COMMITTERS
  16. CONTRIBUTING.md
  17. LICENSE
  18. meson.build
  19. meson_init.sh
  20. meson_options.txt
  21. python-requirements.txt
  22. README.md
  23. toolchain.txt
README.md

OpenTitan

OpenTitan logo

About the project

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 the OpenTitan site and OpenTitan docs for more information about the project.

About this repository

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.

Documentation

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.

  1. Ensure that you have the required Python modules installed (to be executed in the repository root):
$ sudo apt install python3 python3-pip
$ pip3 install --user -r python-requirements.txt
  1. Execute the build script:
$ ./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.

How to contribute

Have a look at CONTRIBUTING for guidelines on how to contribute code to this repository.

Licensing

Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).