Generate address space documentation HTML from compiled SystemRDL input
Install from PyPi using pip:
python3 -m pip install peakrdl-html
An example of HTML output generated from a fictional SystemRDL register description.
https://systemrdl.github.io/PeakRDL-html
Pass the elaborated output of the SystemRDL Compiler into the exporter.
Assuming root
is the elaborated top-level node, or an internal AddrmapNode
:
from peakrdl.html import HTMLExporter
exporter = HTMLExporter()
exporter.export(root, "path/to/output")
Constructor for the HTML exporter class
Optional Parameters
markdown_inst
- Override the class instance of the Markdown processor. See the Markdown module for more details.
user_template_dir
- Path to a directory where user-defined template overrides are stored.
user_static_dir
- Path to user-defined static content to copy to output directory.
user_context
- Additional context variables to load into the template namespace.
show_signals
- Show signal components. Default is False
extra_doc_properties
-
List of properties to explicitly document.
Nodes that have a property explicitly set will show its value in a table in the node's description. Use this to bring forward user-defined properties, or other built-in properties in your documentation.
-
Perform the export!
Parameters
nodes
- Top-level node to export. Can be the top-level
RootNode
or any internalAddrmapNode
. Can also be a list ofRootNode
and any internalAddrmapNode
.
- Top-level node to export. Can be the top-level
output_dir
- HTML output directory.
Optional Parameters
footer
- Override footer text.
title
- Override title text.
home_url
- If a URL is specified, adds a home button to return to a parent home page.