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.
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
See https://github.com/oddball/ipxact2systemverilog
make
If Modelsim is installed: :
make compile
make sim
You can use http://pandoc.org/demos.html to convert to almost any fileformat.
To validate your xml :
xmllint --noout --schema ipxact2systemverilog/xml/component.xsd example/input/test.xml
pip install docutils lxml mdutils
These are not needed for ipxact2systemverilog, but used for generating some of the files in example/output. Instructions are for MacOsX, similiar packages are available for Linux and Windows.
brew install pandoc
# if you want to use sphinx
brew install texlive
sudo tlmgr install latexmk
rm -rf dist
pip3 install -e .
python3 setup.py sdist
twine upload dist/*
- 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
- Eat some cheese and drink some wine 2024-06-20