-
Notifications
You must be signed in to change notification settings - Fork 40
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
Obtaining module handle based on the full name of the instance #1080
Comments
It is forbidden to continue to use an handle after having free. See handle like a pointer which is return by If keeping track of handle to free them only when you do not need them anymore is too complicate to do it yourself, you need to consider smartptr. Or you can use the python UHDM api : python will do that for you when no more reference on the handle exist in user application, the python runtime will free it. |
For a separate/temporary need, is there a way to obtain a submodule instance's vpiHandle based on the full name of the submodule instance?
I have parsed the submodules and have stored their full names in a list.
At some point later, I need to recurse into the submodule (conditionally).
I tried saving vpiHandle in the list instead, but it does not seem to link back to the same node when used later (perhaps because I release the handles in the middle, I don't know).
I know the alternative is to recurse into every submodule and match the full names, but that feels inefficient.
The text was updated successfully, but these errors were encountered: