Skip to content

WARL resolution functions #732

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

Conversation

silabs-oysteink
Copy link
Contributor

Added WARL resolution functions for the following CSR fields:

  • mstatus.mprv
  • mtvec.mode (CLIC mode)
  • mtvec.mode (CLINT mode)
  • mcontrol6.u
  • etrigger.u
  • dcsr.ebreaku

SEC clean when SMCLIC=1
NOT SEC clean when SMCLIC=0 due due to a known bug in mtvec.mode WARL handling.

Signed-off-by: Oystein Knauserud [email protected]

- mstatus.mprv
- mtvec.mode (CLIC mode)
- mtvec.mode (CLINT mode)
- mcontrol6.u
- etrigger.u
- dcsr.ebreaku

SEC clean when SMCLIC=1
NOT SEC clean when SMCLIC=0 due due to a known bug in mtvec.mode WARL handling.

Signed-off-by: Oystein Knauserud <[email protected]>
@silabs-oysteink silabs-oysteink changed the title WARL resolution funcions WARL resolution functions Dec 14, 2022
@silabs-oysteink silabs-oysteink added the Component:RTL For issues in the RTL (e.g. for files in the rtl directory) label Dec 14, 2022
Copy link
Contributor

@Silabs-ArjanB Silabs-ArjanB left a comment

Choose a reason for hiding this comment

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

Made a small syntax improvement

@@ -730,7 +731,7 @@ module cv32e40x_cs_registers import cv32e40x_pkg::*;
};
mcause_we = 1'b0;
end else begin // !SMCLIC
mtvec_n.mode = csr_mtvec_init_i ? mtvec_rdata.mode : {1'b0, csr_wdata_int[0]};
mtvec_n.mode = csr_mtvec_init_i ? mtvec_rdata.mode : mtvec_mode_clint_resolve(mtvec_rdata.mode, csr_wdata_int[MTVEC_MODE_BIT_HIGH:MTVEC_MODE_BIT_LOW]);;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove 2nd ;

@Silabs-ArjanB Silabs-ArjanB merged commit b64eb22 into openhwgroup:master Dec 14, 2022
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