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 testbench packages. In the tb directory there is an example of how to use the generated packages.
ipxact2systemverilog.py --srcFile FILE --destDir DIR
ipxact2rst.py --srcFile FILE --destDir DIR
ipxact2vhdl.py --srcFile FILE --destDir DIR
make
If Modelsim is installed:
make compile
make sim
From the reStructuredText file, together with http://docutils.sourceforge.net and http://rst2pdf.ralsina.com.ar it is possible to generate pdf and html files of the IP-XACT register bank descriptions.
sudo pip install docutils sudo pip install rst2pdf
To put a local copy of the IP-XACT schema you can use the following commands
mkdir schema1.5 cd schema1.5 wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/component.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/busInterface.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/identifier.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/memoryMap.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/file.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/commonStructures.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/autoConfigure.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/configurable.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/simpleTypes.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/fileType.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/port.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/constraints.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/signalDrivers.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/generator.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/model.xsd wget http://www.accellera.org/XMLSchema/SPIRIT/1.5/subInstances.xsd export ipxactRoot=`pwd`/..
or execute
make xmlschema
- A better testbench 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.
- Use http://pyxb.sourceforge.net to enable dumping out the modified XML
- Support DIM