sifive / duh

👾 Design ∪ Hardware
https://observablehq.com/@drom/duh-intro
Apache License 2.0
72 stars 6 forks source link

Create a Python library for working with DUH? #56

Open mithro opened 5 years ago

mithro commented 5 years ago

Many HDLs are written in Python (see http://bit.ly/pyfgpalibs for example). It would be awesome to have a good Python library for working with DUH.

mithro commented 5 years ago

FYI -- There are a couple of Python libraries for IPXACT

mithro commented 5 years ago

A good python library for working with DUH is probably required for FuseSoC integration?

olofk commented 4 years ago

I agree that a Python library would be very good to have. Since it's pretty much a 1 to 1 mapping with IP-XACT it would probably not be too much work to add import/export to ipyxact. I'll look into that when I can find some time

For use with FuseSoC, a Python lib is actually not required. The FuseSoC generator interface is language agnostic and only requires the generator to read and write a yaml file

drom commented 4 years ago

There are several Python libraries using DUH. It would be easy to take https://github.com/sifive/duhportinf as an example. We have DUH <-> IP-XACT translation project and I don't see a need to duplicate it in Python just for sake of having it in Python.