-
Notifications
You must be signed in to change notification settings - Fork 778
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
[csrng/rtl] Make the main SM error test signal fatal #23657
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for flagging this @h-filali . This looks good to me!
The fix is very small and fully aligns EDN, CSRNG and ENTROPY_SRC with respect to error signaling. I think we should absorb this change but we'll need to discuss this with other leads.
CHANGE AUTHORIZED: hw/ip/csrng/rtl/csrng_core.sv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to use main_sm_err_sum
here? That way, we don't have the magic "21" index in two different places.
Yes, there is a reason. |
But this looks sensible otherwise. Thanks for the response. UPDATE: ... and now I've read the comment before. Maybe the right fix is change that last sentence to something like: "To include the state machine error at all, we use the error code test bit (index 21) directly." |
CHANGE AUTHORIZED: hw/ip/csrng/rtl/csrng_core.sv |
The main SM error test signal is currently the only test signal where the actual error would be fatal but the test signal is not. This commit make adds the err_code_test_bit for the main SM error to fatal_loc_events to make the main SM error test fatal. Signed-off-by: Hakim Filali <[email protected]>
1420243
to
959542f
Compare
@rswarbrick I updated the comment following your suggestion. Thanks for your feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks!
The main SM error test signal is currently the only test signal where the actual error would be fatal but the test signal is not. This commit make adds the err_code_test_bit for the main SM error to fatal_loc_events to make the main SM error test fatal.