Skip to main content

peakrdl-cocotb-ralgen

A SystemRDL to Raltest converter for cocotb.

Installation

pip3 install peakrdl-cocotb-ralgen

Usage

peakrdl cocotb_ralgen <SystemRDL File> -o <output folder>
peakrdl python <SystemRDL File> -o <output folder>

Then in your cocotb test file

from <AddrMap Name>_RAL import <AddrMap Name>_RAL_Test
...
ral=<AddrMap Name>_RAL_Test(regmodel)
from <AddrMap_Name>_RAL import <AddrMap_Name>_RAL_Test as RAL
@cocotb.test
async def test_ral(dut):
    env=Env(dut)
    await env.ral.rw_test()
...

And in your cocotb env file

from <AddrMap_Name>.reg_model.<AddrMap_Name> import <AddrMap_Name>_cls
from <AddrMap_Name>.lib  import AsyncCallbackSet
from <AddrMap_Name>_RAL import <AddrMap_Name>_RAL_Test as RAL
class Env:
     def __init__(dut,...):
	self.reg=<AddrMap_Name>_cls(
		 callbacks=AsyncCallbackSet(
		    read_callback=self.readReg,
		    write_callback=self.writeReg
		    ))
        self.ral=RAL(self.reg)
    async def ral_rw(self):
        self.ral.rw_test()
...

To support background read and writes you need to create callbacks which will return the signal value for a complete working example check the tests folder.

Metadata

Release files for peakrdl-cocotb-ralgen 0.1.3.post23

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

Source distribution (sdist)

Source distribution for peakrdl-cocotb-ralgen 0.1.3.post23
File Size Uploaded Provenance Actions
peakrdl_cocotb_ralgen-0.1.3.post23.tar.gz 17.4 kB Without provenance Details for peakrdl_cocotb_ralgen-0.1.3.post23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for peakrdl-cocotb-ralgen 0.1.3.post23
File Interpreter ABI Platform Actions
peakrdl_cocotb_ralgen-0.1.3.post23-py3-none-any.whl Python 3 none any Details for peakrdl_cocotb_ralgen-0.1.3.post23-py3-none-any.whl

Total release size: 27.9 kB

Release files / peakrdl_cocotb_ralgen-0.1.3.post23.tar.gz

Download URL peakrdl_cocotb_ralgen-0.1.3.post23.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f34c3025098f94b6448ebfff8a0ad95d72dcdc7941f8d5248edf8388ac9888cb
BLAKE2b-256 checksum
How to use checksums
22971f5c498d1da2355d449423c34994a17ef9e98857eb2fabe9a6b4fa8999fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.19.3 CPython/3.10.12 Linux/6.5.0-1025-azure

Release files / peakrdl_cocotb_ralgen-0.1.3.post23-py3-none-any.whl

Download URL peakrdl_cocotb_ralgen-0.1.3.post23-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ed72386fcf51b94813f34a44c57106a74a20abc22c5cc370b5bc7c0cd56196d
BLAKE2b-256 checksum
How to use checksums
96d31557d2da16dfc8bcf91a3d4e31a51b2073ec0e8b2c43f0acd422f64d7cf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.19.3 CPython/3.10.12 Linux/6.5.0-1025-azure

Security for peakrdl-cocotb-ralgen 0.1.3.post23

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.

Release history Release notifications | RSS feed

This release

0.1.3.post23 This release

2 release files No provenance

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