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

Question: How to conviniently check that signal is at expected level on all clock edges? #874

Closed
creiter64 opened this issue Nov 14, 2022 · 2 comments
Labels
Milestone

Comments

@creiter64
Copy link

Hi all,

This question might be trivial to you, but I can't wrap my head around how this is supposed to work.

I want to check that a signal is at '0' on every rising clock edge of the testbench. For this I found the concurrent function invocation of check from this example.

Now I want it to always be enabled, so I call status_check: check(clk, '1', status_ok, "Concurrent status check failed."); but then ModelSim gives me an error that en must be a signal name. Do I always have to create a dummy signal which is '1'? Am I using the correct function for this job? Can check(...) be expanded to allow this case?

Thanks in advance!

@LarsAsplund
Copy link
Collaborator

@creiter64 There is a predefined signal check_enabled that you can use. I see that it is not mentioned in the documentation. I will update that.

@creiter64
Copy link
Author

Thank you for the quick response!

@eine eine added this to the v4.7.0 milestone Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants