Generate VHDL, SystemVerilog, html, rst, md, pdf, c headers from an IPXACT description
Project description
ipxact2systemverilog ipxact2rst ipxact2md ipxact2vhdl ipxact2c
This software takes an IP-XACT description of register banks, and generates synthesizable VHDL and SystemVerilog packages and ReStructuredText documents. It ONLY considers register bank descriptions. The software does not generate OVM or UVM test bench packages. In the example/tb directory there is an example of how to use the generated packages.
Usage
pip install ipxact2systemverilog
ipxact2systemverilog --srcFile FILE --destDir DIR
ipxact2rst --srcFile FILE --destDir DIR
ipxact2md --srcFile FILE --destDir DIR
ipxact2vhdl --srcFile FILE --destDir DIR
ipxact2c --srcFile FILE --destDir DIR
Development
See https://github.com/oddball/ipxact2systemverilog
Testing the example file
make
If Modelsim is installed: :
make compile
make sim
Note
You can use http://pandoc.org/demos.html to convert to almost any fileformat.
Validation
To validate your xml :
xmllint --noout --schema ipxact2systemverilog/xml/component.xsd example/input/test.xml
Dependencies
pip install docutils lxml mdutils
Dependencies used by makefile
These are not needed for ipxact2systemverilog, but used for generating some of the files in example/output
brew install pandoc
# needed for sphinx
brew install texlive
sudo tlmgr install latexmk
Working in development mode for pypi
rm -rf dist
pip3 install -e .
python3 setup.py sdist
twine upload dist/*
TODO
- A better test bench for the generated packages should be implemented.
- More complicated IPXACT files should be added and tried out.
- Add support for the SystemVerilog generator to have a register field of an enumerated type.
- Support DIM
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for ipxact2systemverilog-1.0.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f46819c9737365ccabe2c837841b4bd106f4fd6d3feab9746e9e355f44c3294e |
|
MD5 | b31efced7fba27684321bf1f7e3efb62 |
|
BLAKE2b-256 | 385de27c20a0300d8528451a8c34e0b4b4142a5d681c1ab6bc320ee48cf92bbf |