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

vpi_interator API needs to allow the full range of object types, not just vpiNet #40

Closed
GordonMcGregor opened this issue Jul 6, 2013 · 2 comments

Comments

@GordonMcGregor
Copy link
Contributor

One of the most useful features of pyHVL in large ASIC projects has been the simple access to the VPI iterators/ scan API.

For this to be useful though, it has to be more flexible than just vpiNet (e.g, vpiModule to walk the design hierarchy)

Ideally the full set of VPI constants would be accessible from Python and could be passed through the iterate_signals call (or probably a more generic 'iterate' API if you want to keep iterate_signals specific to vpiNets

PyHVL actually generated the defines dynamically by parsing the vpi_user.h - I could port that code over. It then populated the Python namespace with those vpi defines.

@GordonMcGregor
Copy link
Contributor Author

Issue #17 this issue and #41 are all related. The pull request with the vpi defines in the simulator module dictionary can help with this too. (branch/ pull request traverse_nets )

@chiggs
Copy link
Contributor

chiggs commented Jul 10, 2013

This will be implemented by issue #17 so closing.

@chiggs chiggs closed this as completed Jul 10, 2013
chiggs added a commit to chiggs/cocotb that referenced this issue Sep 4, 2017
chiggs added a commit to chiggs/cocotb that referenced this issue Sep 4, 2017
Fixes cocotb#40: Don't assume the iterable has a length
ktbarrett pushed a commit to ktbarrett/cocotb that referenced this issue Mar 6, 2020
ktbarrett pushed a commit to ktbarrett/cocotb that referenced this issue Mar 6, 2020
Fixes cocotb#40: Don't assume the iterable has a length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants