Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Idea: Use Yosys through Python API #80

Open
makaimann opened this issue May 18, 2019 · 2 comments
Open

Enhancement Idea: Use Yosys through Python API #80

makaimann opened this issue May 18, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@makaimann
Copy link
Collaborator

Yosys now has a Python API using boost_python. Enable it with:
sudo make install ENABLE_PYOSYS=1 ENABLE_LIBYOSYS=1

We can use this to encode the Verilog directly from RTLIL instead of going through the BTOR format. This would give us much better control over the design and even allow us to dynamically run passes based on the contents of the design.

@makaimann makaimann added the enhancement New feature or request label May 18, 2019
@makaimann makaimann self-assigned this May 18, 2019
@psychedel
Copy link

Is it possible to use it in pono (CoSa 2) already?

@makaimann
Copy link
Collaborator Author

Hello, unfortunately this feature doesn't exist in Pono either. However, it would be a nice feature. It would probably make more sense to do this through C++ in Pono (but of course it could be accessed through the Python bindings also). I can add it as an enhancement idea there as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants