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

[alert,dv] Fix logic in alert_receiver_driver #25272

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

rswarbrick
Copy link
Contributor

This was "tightened up" in commit b1095ff, which actually broke things! The problem is that I was imagining the "continue" would continue in the surrounding "forever" loop. But it doesn't! It just skips an iteration of the "repeat" loop inside.

Make the logic a bit more explicit and correctly handle the case where we go into reset with the clock paused.

(@KinzaQamar: Thanks for finding and diagnosing this bug)

@rswarbrick rswarbrick added Component:DV DV issue: testbench, test case, etc. IP:alert_handler labels Nov 20, 2024
@rswarbrick rswarbrick requested a review from a team as a code owner November 20, 2024 17:27
@rswarbrick rswarbrick requested review from marnovandermaas and removed request for a team November 20, 2024 17:27
This was "tightened up" in commit b1095ff, which actually broke
things! The problem is that I was imagining the "continue" would
continue in the surrounding "forever" loop. But it doesn't! It just
skips an iteration of the "repeat" loop inside.

Make the logic a bit more explicit and correctly handle the case where
we go into reset with the clock paused.

Signed-off-by: Rupert Swarbrick <[email protected]>
@rswarbrick
Copy link
Contributor Author

It gets more embarrassing: my "fix" in this PR didn't actually work! I've just pushed a version that does (because it no longer drops alerts on a reset). Sorry about that.

Copy link
Contributor

@matutem matutem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rswarbrick rswarbrick merged commit a51f765 into lowRISC:master Dec 2, 2024
36 of 37 checks passed
@rswarbrick rswarbrick deleted the alert-receiver-driver-fix branch December 2, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:DV DV issue: testbench, test case, etc. IP:alert_handler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants