Skip to main content

DesyRDL

This tool generates outputs for an address space that is defined by one or many SystemRDL™ 2.0 input files. The address space could be made up of all the software-accessible registers and memory regions in an FPGA design, or just the registers of a single IP block.

SystemRDL™ 2.0 is a standard released by Accellera Systems Initiative Inc that is meant to describe such an address space, see [systemrdl].

Outputs are generated based on Jinja2 templates and Python generators:

  • Synthesizable VHDL register logic and bus decoders (AXI4-Lite, IBUS)
  • Mapfiles (legacy .mapp / .mapt compatible with ChimeraTK)
  • Modern JSON Map files (.jmap) with multi-channel address maps and interrupt trees
  • C header files
  • AsciiDoc documentation

DesyRDL was developed at DESY in the MSK firmware group as a replacement for its existing proprietary method of register and address map generation, the "Internal Interface", called "IBUS" in its latest version ii.

The use of SystemRDL™ 2.0 standard was considered for a long time, but due to the lack of open source compilers or parsers, it was dropped.

The decision to use the SystemRDL™ 2.0 standard came after the open source SystemRDL compiler has been published. This has been proposed by MicroTCA Tech Lab at DESY when they wrote HECTARE, the predecessor of DesyRDL.

Usage

This tool can be used standalone but was intended to be used as part of a firmware build environment like DESY MSK's FPGA Firmware Framework, short fwk.

See desyrdl -h for options. All RDL files must be passed in the correct order. Below is an example for the desyrdl_example modules which also comes with a testbench (not in Git yet):

desyrdl -o out -i test/rdl/module_b.rdl test/rdl/module_a.rdl test/rdl/top.rdl -f vhdl adoc tcl

This will compile the .rdl file and create one .vhd in ./out/ for each addrmap instance in the model and for each VHDL template in ./desyrdl/templates/vhdl/. The common files from ./desyrdl/libraries/vhdl/ will also be copied there.

The generated VHDL logic should be integrated into your module or IP as an entity next to the other logic. This is shown in the diagram below. Registers and external interfaces are available on combined ports of a custom record type (e.g. t_addrmap_mymodule_in and t_addrmap_mymodule_out). Through these records, each node in this addrmap can be accessed by its SystemRDL instance name. Check the generated VHDL package for details.

top integration diagram

Concept

Compiling the SystemRDL™ files is handled by SystemRDL Compiler. To create useful information (or "context") for the template processing, its Walker/Listener method of traversing the compiled tree is used.

DesyListener extends its systemrdl.RDLListener class. It extracts a fixed set of information from the compiled tree and passes it on to a template engine (Jinja2).

DesyRDL flow diagram

Templates

Templates are written for the Jinja2 template engine. Users can provide their own templates using -t switch.

Context

Context creation differs a bit depending on the type of output. Some outputs have to be generated for each addrmap component (e.g. VHDL) and others are generated for the whole address space at once (e.g. mapfiles and the C header).

The context is a Python dict that contains further dictionaries to describe register types and instances, memory types and instances, further external components and some more. It is currently a bit of a mess.

Supported interfaces buses

The DesyRDL allows to generate various top address map interfaces. They are defined in the addrmap component by the desyrdl_interface variable.

Tool bus support and desyrdl_interfaces values:

Value Description Bus Size Supported
AXI4L AXI4 Lite interface 32 bit YES
IBUS Internal Interface type bus, proprietary MSK DESY 32 bit YES
WISHBONE Open source hardware computer bus 32 bit planned

Known Issues and Limitations

The bus decoder implementation is relatively basic:

  • Only 32bit data busses
  • Likewise, only 32 bit registers are supported
  • The dual-port memory interface does not support AXI4 write strobes
  • The logic operates on a single clock and the developer has to take care of any CDCs

Acknowledgements

This tool relies heavily on systemrdl-compiler by Alex Mykyta and was only developed because it exists.

Accellera™ and SystemRDL™ are trademarks of Accellera Systems Initiative Inc.

References

systemrdl

"SystemRDL 2.0 Register Description Language", Accellera Systems Initiative Inc, 2018, available from https://accellera.org/downloads/standards/systemrdl

ii

"INTERNAL INTERFACE, I/O Communication with FPGA Circuits and Hardware Description Standard for Applications in HEP and FEL Electronics ver. 1.0", 2005, available from https://flash.desy.de/reports_publications/tesla_reports/tesla_reports_2005/

Metadata

Release files for desyrdl 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for desyrdl 1.5.0
File Size Uploaded Provenance Actions
desyrdl-1.5.0.tar.gz 85.9 kB Without provenance Details for desyrdl-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for desyrdl 1.5.0
File Interpreter ABI Platform Actions
desyrdl-1.5.0-py3-none-any.whl Python 3 none any Details for desyrdl-1.5.0-py3-none-any.whl

Total release size: 153.5 kB

Release files / desyrdl-1.5.0.tar.gz

Download URL desyrdl-1.5.0.tar.gz
Size 85.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea0d01b96b6aa4fc214504dd30776638616b67a402ef194983e6697b8646ff8f
BLAKE2b-256 checksum
How to use checksums
15a079910e6a12c1bcfe917aeec4d2de8ef0ecc85dea20cc5f9cdb1b152b43e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"7.0.0-42-generic"}} HTTPX2/2.16.0

Release files / desyrdl-1.5.0-py3-none-any.whl

Download URL desyrdl-1.5.0-py3-none-any.whl
Size 67.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71c66b40cb1795fe7bf9ba4fd70c246eb234a6e8917d476167467d6c64a4d10a
BLAKE2b-256 checksum
How to use checksums
8dfc52f0341745e565abe61852328228667e70e4243f07090e7f3c0060c7aa3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"7.0.0-42-generic"}} HTTPX2/2.16.0

Security for desyrdl 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page