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

Partial fix for issue #766 #833

Merged

Conversation

silabs-oysteink
Copy link
Contributor

  • Changes CSR implementation to be identical to the unhardened version on cv32e40s
  • Introduces MASK and RESET_VAL for all CSRs
  • Use a function to compute next value for all next-value assignments

This should align X and S better, and allow for unimplemented bits in CSRs to be either 0 or 1.

Once this PR is approved, similar changes will be done for the remaining CSRs.

SEC clean.

- Introducing MASK and RESET_VAL for all CSRs.
- Introducing function csr_nextvalue to take write data, reset value and mask into account.

This PR addresses five different CSRs, the rest will be done once this PR is approved.

SEC clean.

Signed-off-by: Oystein Knauserud <[email protected]>
Signed-off-by: Oystein Knauserud <[email protected]>
@silabs-oysteink silabs-oysteink added the Component:RTL For issues in the RTL (e.g. for files in the rtl directory) label Apr 18, 2023
@Silabs-ArjanB Silabs-ArjanB merged commit 9a1d8be into openhwgroup:master Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:RTL For issues in the RTL (e.g. for files in the rtl directory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants