Generate UVM register model from compiled SystemRDL input
Project description
RALBot-uvm
Generate UVM register model from compiled SystemRDL input
Installing(left blank)
Install from PyPi using pip:
python3 -m pip install ralbot-uvm
Exporter Usage
Pass the elaborated output of the SystemRDL Compiler to the exporter.
import sys
from systemrdl import RDLCompiler, RDLCompileError
from ralbot.uvmgen import uvmGenExporter
rdlc = RDLCompiler()
try:
rdlc.compile_file("path/to/my.rdl")
root = rdlc.elaborate()
except RDLCompileError:
sys.exit(1)
file = "test.svh"
exporter = uvmGenExporter()
exporter.export(root, file)
Reference
uvmGenExporter(**kwargs)
Constructor for the uvmGen exporter class
Optional Parameters
indentLvl
- Three spaces or four spaces. Default three space.
uvmGenExporter.export(node, path)
Perform the export!
Parameters
node
- Top-level node to export. Can be the top-level
RootNode
or any internalAddrmapNode
.
- Top-level node to export. Can be the top-level
path
- Output file. Can be (dir+filename without suffix. such as "output/test_uvmgen")
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
ralbot-uvm-1.0.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
ralbot_uvm-1.0.0-py3.6.egg
(12.2 kB
view hashes)