Closed nmolinski closed 1 year ago
@krcb197 I ran into this issue as well, wondering if you would be open to the workaround suggested above?
The import for peakrdl-xact was changed a while ago. I have made a pull request which should address this.
The eagle eyed may notice this project has transferred to the main systemrdl area, with a view that it becomes part of peakrdl properly soon. I have been in discussions with @amykyta3 about some more significant changes to move this project forward.
Problem
When running
peakrdl_cheader ./docs/rdl/ip_core.rdl --outdir export/c
, Peakrdl IPXACT plugin 'Peakrdl-ipxact' cannot be found under peakrdl.ipxact, but can be found underpeakrdl_ipxact
In Python Shell, running shows module does not exist under
peakrdl.ipxact
(withpeakrdl-ipxact
pip installed):However, the module name works under
peakrdl_ipxact
The module reference can be seen to be peakrdl_ipxact, however, I'm not sure if the main
peakrdl
at some point had the ipxact under its namespace. I haven't followed the history long enough to know if this was changed, or, if this is difference in environments.Solution
To maintain backwards compatibility (if desired), a check can be performed on line 11 of peakcheader.py which module should be imported.
I'm sure a more pythonic way could be written. If you are busy, I could submit the PR if needed.
Environment:
Python 3.11.2 Pip 22.3.1 Mac M1 running in x86_64 (Rosetta) Environment
Pip List
antlr4-python3-runtime==4.11.1 colorama==0.4.6 git-me-the-url==2.1.0 gitdb==4.0.10 GitPython==3.1.31 hectare==0.2.4 Jinja2==3.1.2 Markdown==3.4.3 MarkupSafe==2.1.2 peakrdl==0.8.0 peakrdl-cheader==0.0.1 peakrdl-html==2.10.0 peakrdl-ipxact==3.4.1 peakrdl-regblock==0.12.0 peakrdl-systemrdl==0.3.0 peakrdl-uvm==2.3.0 pysphere==0.1.7 python-markdown-math==0.8 PyYAML==6.0 smmap==5.0.0 systemrdl-compiler==1.25.6