Generate verilog register module from compiled SystemRDL input
Project description
PeakRDL-verilog
Generate Verilog register model from compiled SystemRDL input
Installing
Install from github only at the moment.
Exporter Usage
Pass the elaborated output of the SystemRDL Compiler to the exporter.
import sys
from systemrdl import RDLCompiler, RDLCompileError
from peakrdl.verilog import VerilogExporter
rdlc = RDLCompiler()
try:
rdlc.compile_file("path/to/my.rdl")
root = rdlc.elaborate()
except RDLCompileError:
sys.exit(1)
exporter = VerilogExporter()
exporter.export(root, "test.sv")
Verification
The tool will generate a tb for your module in the same directory. This will test the HW interface
Reference
VerilogExporter(**kwargs)
Constructor for the Verilog Exporter class
Optional Parameters
user_template_dir- Path to a directory where user-defined template overrides are stored.
user_template_context- Additional context variables to load into the template namespace.
VerilogExporter.export(node, path, **kwargs)
Perform the export!
Parameters
node- Top-level node to export. Can be the top-level
RootNodeor any internalAddrmapNode.
- Top-level node to export. Can be the top-level
path- Output file.
Optional Parameters
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file peakrdl-verilog-1.0.0.tar.gz.
File metadata
- Download URL: peakrdl-verilog-1.0.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
255aa5154ba34156a93e2e065eaf98e5857f78207188f27bdea61284057d2959
|
|
| MD5 |
5791ed0bd9dddf89a08249a47eda4b2a
|
|
| BLAKE2b-256 |
4000e0108a2f02ef68eee577307fb233d8dcf9574b4151614e82636501283345
|
File details
Details for the file peakrdl_verilog-1.0.0-py3.10.egg.
File metadata
- Download URL: peakrdl_verilog-1.0.0-py3.10.egg
- Upload date:
- Size: 26.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e7c5b8bf59b992062393fc1218a426b13db665a6d7cf354d29ffd3ea7c2b103
|
|
| MD5 |
f8d2de3b9b4f2c9e9f9a8560b2e21dd9
|
|
| BLAKE2b-256 |
27e82507043c5d2640b494c60c50d31ae0440d54316d8ed2ffe31ac9186033b7
|