commit | 668ea2e941276f379a35cfd85f08b6c8ccd63d85 | [log] [tgz] |
---|---|---|
author | Eunchan Kim <eunchan@opentitan.org> | Tue Nov 12 15:44:08 2019 -0800 |
committer | Eunchan Kim <eunchan@opentitan.org> | Wed Nov 13 12:18:23 2019 -0800 |
tree | bc59415c4919259a47cd15d5ac15e6e44c3f892c | |
parent | 0247ff80af46fa7047021cdb127708de5339d5da [diff] |
[reggen] Register to have typedef struct In transition to the parameterized multireg #47, now each register has its own struct packed type, which is named as `module_reg2hw/hw2reg_regname_reg/mreg_t`. It creates mane typedef inside the register package file but the overal reg2hw and hw2reg structures are cleaner. It gives more flexibility to transition to register interface from the struct. The interface should consider the number of registers, not the fields names. There's still TODOs in this change. 1. The field name function call `get_basename()` doesn't work properly with field having digits in its name. For instance, alert_handler has `en_e0` to `en_e3` in CLASSD_CTRL register, and the function chops the digit and returns `en_e` only, which creates an error. 2. Handling the multi register and normal register is not standardized. The functions defined in `util/reggen/data.py` are specific for multireg type. It should be commonly used regardless of the register type. 3. `util/topgen/lib.py` could be useful if it is moved to its own module. The functions inside lib.py can be used in any generator for RTLs. This is related to #606 #270 #47 Signed-off-by: Eunchan Kim <eunchan@opentitan.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 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 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).