Skip to content

Generate verilog register file from systemRDL description

License

Notifications You must be signed in to change notification settings

rdburns/PeakRDL-verilog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status

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 RootNode or any internal AddrmapNode.
  • path
    • Output file.

Optional Parameters

About

Generate verilog register file from systemRDL description

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SystemVerilog 60.8%
  • Python 31.0%
  • C++ 7.4%
  • Shell 0.8%