Skip to main content

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

Project description

PeakRDL-rust

Coverage Status

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
  • Rust keyword conflict test
  • Unwrap encoded field enums if exhaustive
  • Restrict read/write to memories
  • Add examples to docs
  • Regwidth > native integer types

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.5.0.tar.gz (24.5 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.5.0-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for peakrdl_rust-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d1bf44967be361084f23ab41212f1fce71daf31c62a9d9f80b384f223d4c4862
MD5 ae29f2b38f542262b5a97ecf36fdfb30
BLAKE2b-256 1b10a09720b7ab816a84d7a8c3edee9994903338210de537d3a623948a78c0ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for peakrdl_rust-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 668621ead64dcd4f4d77d74c7e2b3c42f83e3ce3d8dbb9d2a177168b86099082
MD5 afc64e23161815b3ca385a2dc66b5308
BLAKE2b-256 f23b2557e4a7a7b5d6b02f5dbd7c1bdbd833eb969a0edb503c6b9d9d8ebdd623

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