Skip to content

Fix to include path in pdf_creator.py source file

License

Notifications You must be signed in to change notification settings

arhum-alam/PeakRDL-pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PeakRDL-pdf

Generate PDF Registers Description document from compiled SystemRDL input

Install from Github using pip

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.


Exporter Usage

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")

Reference

pdfExporter.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

  • use_uppercase_inst_name
    • If True, (default) then all instance names will be Uppercase
    • If False, then all the instance names will be Lowercase

About

Fix to include path in pdf_creator.py source file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%