Generate PDF Registers Description document from compiled SystemRDL input
mkdir path_to_folder
cd path_to_folder
git clone https://github.com/muneebullashariff/PeakRDL-pdf.git
cd to PeakRDL-pdf
pip3 install -e .
pip3 install reportlab
Advantages of this approach are:
1 - You can install package in your home projects directory.
2 - Package includes .git dir, so it's regular Git repository. You can push to your fork right away.
Pass the elaborated output of the SystemRDL Compiler to the exporter.
import sys
from systemrdl import RDLCompiler, RDLCompileError
from peakrdl.pdf import PDFExporter
rdlc = RDLCompiler()
try:
rdlc.compile_file("path/to/my.rdl")
root = rdlc.elaborate()
except RDLCompileError:
sys.exit(1)
exporter = PDFExporter()
exporter.export(root, "test.pdf")
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.
Optional Parameters
use_uppercase_inst_name
- If True, (default) then all instance names will be Uppercase
- If False, then all the instance names will be Lowercase