Skip to main content

Generate a Rust crate from SystemRDL for accessing control/status registers.

Project description

PeakRDL-rust

Generate Rust code for accessing control/status registers from a SystemRDL description.

This is currently in an alpha state. Feel free to try it out and report any bugs encountered.

Installation

It can be installed from PyPI using

pip install peakrdl-rust[cli]

Usage

For usage available options, use

peakrdl rust --help

TODO

  • Arrays
  • Enum encoding
  • Reg impl with regwidth != accesswidth
  • Impl Default for registers
  • Test generator
  • Add field constants (width, offset, etc.)
  • Impl Debug for registers
  • Add ARCHITECTURE.md
  • Find/generate additional test input
  • Mem components
  • More efficient field tests
  • Set up github actions/PyPI publishing
  • Automatically run tests
  • Regwidth > native integer types
  • Fixedpoint/signed UDPs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peakrdl_rust-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peakrdl_rust-0.1.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file peakrdl_rust-0.1.0.tar.gz.

File metadata

  • Download URL: peakrdl_rust-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.22

File hashes

Hashes for peakrdl_rust-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a484a4e36b681667f913fec07264cbf3ca11f3ef3165c89a6adfe4db294098cb
MD5 798dd12c11b2ab3c69c80464fc44e525
BLAKE2b-256 fefbbf01b5e0d031799c273316b8f876b7d81324ff80ac7363f3e9a5b083a5c7

See more details on using hashes here.

File details

Details for the file peakrdl_rust-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for peakrdl_rust-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba6bd32ebe827fea4dc9c36077c527b26a9ce3da406baf8b48554a32bce7d932
MD5 f37d95f3eff523b1bc88aa64ed3e08a9
BLAKE2b-256 77dd5c8c83ae995821f6ae795c62fef91d7f992e8eb350b4cd109ca8b1d7d63f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page