Skip to content

lowRISC/benevisrdl

Repository files navigation

BenevisRDL

This repository will house PeakRDL plugins, named after Ben Nevis, the UK's tallest peak.

Installing dependencies

Using uv on macOS and Linux

curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
uv sync --all-extras 
. .venv/bin/activate

Using nix on Any OS

nix develop

rdl2ot cli tool

A PeakRDL extension to generate OpenTitan register block SystemVerilog from SystemRDL files.

For more details, refer to rdl2ot

How to run tests

cd rdl2ot
pytest

How to generate the OpenTitan register interfaces from a RDL file

cd rdl2ot
python src/rdl2ot export-rtl tests/snapshots/lc_ctrl.rdl /tmp/

rdlexporter

A library to generate SystemRDL files from the Hierarchical Register Model.

For more details, refer to rdlexporter

How to run tests

cd rdlexporter
pytest

How to build the package and install it locally

Install dev dependencies

uv sync --all-extras 

Build package

uv build --all

Install the package locally

uv pip install dist/rdlexporter-0.1.0-py3-none-any.whl

Testing

uv run python
from rdlexporter import RdlExporter

About

This repository will house PeakRDL plugins, named after Ben Nevis, the UK's tallest peak.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published