commit | a038790853e742712c80a62bf27bc8f9b48dcb16 | [log] [tgz] |
---|---|---|
author | Chia-Chi Teng <ccteng@google.com> | Tue Aug 10 10:39:22 2021 -0600 |
committer | Rupert Swarbrick <rswarbrick@gmail.com> | Fri Aug 20 10:03:24 2021 +0100 |
tree | 65fc89c5787036191457a93996be3ea3dd0c67dc | |
parent | 3ad63d16a42e11fe9a38d4b6ce86cea105097846 [diff] |
regtool: add support to generate reg const as Rust (.rs) Add -R and --rust option in regtool.py to generate Rust file. Add regs-rust target in hw/Makefile to generate reg constant Rust file for ALL ips. If a TOCK_ROOT variable is specified, e.g. "TOCK_ROOT=~/ti50/third_party/tock/tock make -C hw regs-rust", the Rust files will also be copied to $(TOCK_ROOT)/chips/lowrisc/src/reg_constants folder. BUG=none TEST=regtool.py -R -o uart_regs.rs uart.hjson make -C hw regs-rust TOCK_ROOT=~/ti50/third_party/tock/tock make -C hw regs-rust Signed-off-by: Chia-Chi Teng <ccteng@google.com> Change-Id: I5f668d51e1f42e6541a41f3e565848230d6c07b6
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).