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
  • Fixedpoint/signed UDPs
  • Automatically run tests
  • Regwidth > native integer types
  • Rust keyword conflict test

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.2.0.tar.gz (21.8 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.2.0-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for peakrdl_rust-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a990cf91790a23f9dc74486abdcea70557edfacbfb52e217ccdb74cda1db596d
MD5 588b4292197f2d9ff09be39a68d5d178
BLAKE2b-256 bcbdbad9fbc35e1cd9238fbaeb872c728cc72f1090dcd59ff566a53979ad44bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for peakrdl_rust-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7307928d166c92772097a850e9499ff706a13169821f261e7dc8f2e65d82fbf0
MD5 588f64d9d753afbb105db99ecbf3741f
BLAKE2b-256 744975aa2671fa3419b7cead503664653537cb800738eaccc86c67231084e62a

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