Skip to content

hpendurkar-ventana/RALBot-uvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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 internal AddrmapNode.
  • path
    • Output file. Can be (dir+filename without suffix. such as "output/test_uvmgen")

About

Generate a UVM register model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages