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.1.tar.gz (22.0 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.1-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for peakrdl_rust-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9dadb54c429c90fc3f7ddb1146701404c16d40c6b0fe724f1bca6108dc954ed6
MD5 eeedcc97f2aa14bba759996747982b2e
BLAKE2b-256 7a6a79cf3b2988dda37416a0f220e6e9ad9a66f3f0562555d8a7381ab4abf3ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for peakrdl_rust-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35eb571338a27751c06936dfc7cf4d709c4e20a5f82a03d8a7964e73e9f9350e
MD5 c38d0721df54d1f1e6a4c2f58c4f4f0a
BLAKE2b-256 3009dff7861d0dd1ed17b3affb4d1bc8b799a0faa4d0e33dacf369f0bda3afc6

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