Click on the image leads to the report (external link).

I did some experiments with Python in conjunction with SystemC-AMS models lately. I am still not a big fan of Python, but I agree it offers a lot of options to solve the very same problem (which is good and bad as well, I’d say – a lot of stuff out there is half done, outdated, unsupported or badly documented – so you may get stuck on some dodgy package before going on to find something better).

I found the Pweave package for Python and I used it together with some Coside models using SystemC-AMS TDF to generate a nice report in HTML. It should be possible to generate PDF as well, but I didn’t try yet (needs a proper Latex installation besides Coside and Python). The packet seems not to be the ‘freshest’, its last update on pypi.org is from 2018, but I wanted to give it a try, as the output really looks appealing to me, I have to say…

Of yourse one could also run simulations from Python, here I leave that part in Coside and just focus on the report generation. Examples controlling simulations from Python or Octave/Matlab are anyhow part of the examples found in Coside (but does not necessarily need Coside, it can also work just with Python alone).

You can find the report here (external link) , at the end of the report page you can also have a look at the Python code to generate it. Of course the code is not really optimal, you may use some functions to avoid repeating the same code over and over again. But this example is just an experiment to try out this generator.

Coside/SystemC-AMS and Pweave/Python for scientific reports (of averaging filters).

Leave a Reply

Your email address will not be published. Required fields are marked *