Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Generate VHDL, SystemVerilog, html, rst, pdf from an IPXACT description

Project Description

ipxact2systemverilog ipxact2rst ipxact2vhdl

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 example/tb directory there is an example of how to use the generated packages.

Usage

pip3 install ipxact2systemverilog
ipxact2systemverilog --srcFile FILE --destDir DIR
ipxact2rst --srcFile FILE --destDir DIR
ipxact2vhdl --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://rst2pdf.ralsina.me to make a pdf from the generated reStructuredText. 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

pip3 install docutils lxml tabulate

Dependencies used by makefile

These are not needed for ipxact2systemverilog, but used for generating some of the files in example/output

pip2 install rst2pdf
brew install pandoc

Working in development mode for pypi

pip install -e .
python setup.py sdist
python setup.py sdist upload -r pypitest
python setup.py sdist upload -r pypi

TODO

  • Should compile the verilog output with http://iverilog.icarus.com/ but sadly icarus does not support enough SV yet
  • 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
Release History

Release History

This version
History Node

1.0.2

History Node

1.0.0

History Node

1.0.0.dev0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ipxact2systemverilog-1.0.2.tar.gz (43.3 kB) Copy SHA256 Checksum SHA256 Source Aug 19, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting