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 a beta state. Feel free to try it out and report any bugs encountered.

For documentation including API reference, configuration options, and detailed examples, visit:

PeakRDL-rust Documentation on Read the Docs

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
  • Add examples to docs
  • 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.2.tar.gz (22.2 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.2-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for peakrdl_rust-0.2.2.tar.gz
Algorithm Hash digest
SHA256 325c3cc467e6abd923b7b45a1ed223654690ebd53a35c1f68de1fbb7bc43377c
MD5 8a6ed2e105ea3a75f27b1c5fb6e66082
BLAKE2b-256 235e28be810ea159a7508dda10565a3508c64629a60a09fed5376cf30161fedf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for peakrdl_rust-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 02a0ad056914f8a94f8b2afc4ae38467136581485b50ef88c7c3041c66b25dab
MD5 7c5f958d5447286ff5c950f55aa130e0
BLAKE2b-256 808edef4be9bf280b48c659262733021b184bdc168a2bc44a55b96dfe2bf724c

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