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

[hw,dma,rtl] Only set error code when entering the error state #23687

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

Razer6
Copy link
Member

@Razer6 Razer6 commented Jun 14, 2024

Previously, the error code is written when entering the error state AND while being in there. Since the error code value is only availble in the transition into the error state, and further update overwrites the error code again with zero.

This change ensures that the error code only gets update in the transition into the error state, where the correct value is available

hw/ip/dma/rtl/dma.sv Outdated Show resolved Hide resolved
Previously, the error code is written when entering the error state AND while
being in there. Since the error code value is only availble in the transition
into the error state, and further update overwrites the error code again with
zero.

This change ensures that the error code only gets update in the transition into
the error state, where the correct value is available

Signed-off-by: Robert Schilling <[email protected]>
Copy link
Contributor

@alees24 alees24 left a comment

Choose a reason for hiding this comment

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

Looks good.

@andreaskurth
Copy link
Contributor

CHANGE AUTHORIZED: hw/ip/dma/rtl/dma.sv

@andreaskurth andreaskurth merged commit 68d53c1 into lowRISC:integrated_dev Aug 6, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants