Closed xcfuisnewhere closed 10 months ago
You are missing the step where UDPs required for the regblock generator get registered. See the example here: https://peakrdl-regblock.readthedocs.io/en/latest/api.html#example
Also, be sure to check out the PeakRDL command line tool - it ties together all of the PeakRDL tools into one easy to use toolchain.
Thank you so much for your help! I have another question to ask. When editing IP-XACT and SystemRDL files with a text editor, it doesn't feel very intuitive. I prefer to edit each entry in a more tabular format. Do you have any recommended editors or tools for this?
If you use VSCode, I have made a SystemRDL extension that adds syntax highlighting and templates. Its still a text editor, but at least it can be easier to read. Once you get used to the language, it becomes pretty intuitive. I have a tutorial here if you need some guidance: https://peakrdl.readthedocs.io/en/latest/systemrdl-tutorial.html
I dont have a good recommendation for a tabular method. Partly because I prefer just editing RDL directly.
Agree that editing IP-XACT files is an absolute pain. I avoid it whenever possible. I know of the Kactus2 tool which is a graphical editor for IP-XACT, but I have not used it too much. Usually I'll generate IP-XACT from a SystemRDL file if I absolutely need to. (via peakrdl ipxact
)
Thank you very much! Your suggestions have been immensely helpful to me.
Hi everyone, can you please help me about this problem below:
When I use RegblockExporter.export() function to generate rtl code, I got an error like this:
My python code is as follows:
try: ipxact.import_file("xxxx.xml") root = rdlc.elaborate() regmap = root.find_by_path('cmsdk_apb_watchdog__APB_Watchdog_Slave_MM.addressBlock0') except RDLCompileError: sys.exit(1)
rtl= RegblockExporter() rtl.export( regmap, "./rtl/", cpuif_cls=AXI4Lite_Cpuif )