Generate UVM register model from compiled SystemRDL input
Low maintenance activity. Last release 12 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install peakrdl-uvmPeakRDL-uvm
Generate UVM register model from compiled SystemRDL input.
For the command line tool, see the PeakRDL project.
Installing
Install from PyPi using pip:
python3 -m pip install peakrdl-uvm
Example
The easiest way to use PeakRDL-uvm is via the PeakRDL command line tool:
# Install the command line tool
python3 -m pip install peakrdl
# Generate UVM
peakrdl uvm your_design.rdl -o your_design.sv
Reference
UVMExporter(**kwargs)
Constructor for the UVM 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.
UVMExporter.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
export_as_package- If True (Default), UVM register model is exported as a SystemVerilog package. Package name is based on the output file name.
- If False, register model is exported as an includable header.
reuse_class_definitions- If True (Default), exporter attempts to re-use class definitions where possible. Class names are based on the lexical scope of the original SystemRDL definitions.