-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
cocotb slow down with long testbenches #1114
Comments
Is it possible to reproduce this with the examples in the cocotb repository?
Can you see which type of handles increase with the number of iterations? E.g. is it |
Yes, it's mostly vhpiCallbackK. Anyway, I've been able to isolate part of the problem. please find below a simple test that slows down and generate a log of vhpiCallbackK.
|
I think the problem here is that cocotb never releases callbacks with
Can you raise an issue in the cocotb repository and see what they think? IMO it needs to call |
I noticed that my cocotb testbenches are starting to slow down when they are long. As example, I use the "parametrize" command in cocotb that allows to perform the same test by changing the parameters. The test itself it's always the same amount of clock cycles, but as long as it tests new parameters the duration of the test is longer and longer. I tried to understand what's going on and I found a lot of active handles in the warning with the --vhpi-debug option. I report below what I get. If the test is repeated or it's longer, the number of active handles increases, and maybe the reason of the slow down is due to it. I tried an old r1.11 version and I didn't see any slow-down nor any warning at the end of the test.
The text was updated successfully, but these errors were encountered: