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] Tidyups in the alert receiver driver #25430

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rswarbrick
Copy link
Contributor

When debugging my error and fixing it in #25272, I tidied the code up a bit, using out-of-block definitions and documenting how things worked a little more carefully. This builds on that PR (which contains the first commit) and shouldn't change behaviour, but should make the code a bit easier to reason about.

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]>
This is pretty much a mechanical change, but should make it a bit
easier to read the file and to place documentation comments.

Signed-off-by: Rupert Swarbrick <[email protected]>
@rswarbrick rswarbrick added Component:DV DV issue: testbench, test case, etc. IP:alert_handler labels Nov 27, 2024
@rswarbrick rswarbrick requested a review from a team as a code owner November 27, 2024 16:37
@rswarbrick rswarbrick requested review from matutem and hcallahan-lowrisc and removed request for a team November 27, 2024 16:37
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.

1 participant