-
Notifications
You must be signed in to change notification settings - Fork 270
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
Stability Check Error after 42 s #636
Comments
Since integers are limited to 32 bits, I guess this could be fixed by extending the counter to build a 64-bit one from chaining two 32-bit signals/variables. However, it would require to define comparison, addition, etc. https://github.com/VUnit/vunit/pull/568/files#diff-8409a338796aa7c3979226d3d5e256ea seems to be a similar solution (for a different use case). Maybe a general enough "64-bit integer type" can be hosted somewhere. It might also be available already, although I am not aware. |
We could simply use a 64-bit unsigned to extend that range. |
@jonasexpleo I made a commit on a branch but I wasn't able to easily create a test since it takes "forever" to get to the 31 bit limit. Better that you review the fix and test on you original problem. |
I know what you mean with it takes "forever". The test took nearly an hour, but with the branch update_check_stable it worked. Thank you. |
In a project I have some test that run 1min in simulation time with signals that needs to be stable this long. For this I use the
check_stable()
function. The clock of the simulation is 50MHz.After round about 42s of simulation time the simulation aborts with the following error:
check.vhd line 848
It seams the code uses a clock count which overrun.
The current workaround is to end the first stability check at 30s and start a new one 2 clock cycle later.
Simulator: Aldec Active-HDL 9.2 (sadly i cannot use a newer Version)
The text was updated successfully, but these errors were encountered: