-
Notifications
You must be signed in to change notification settings - Fork 53
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
Removed CSR mscratchcsw. #925
Removed CSR mscratchcsw. #925
Conversation
Signed-off-by: Oystein Knauserud <Oystein.Knauserud@silabs.com>
@@ -4487,22 +4487,6 @@ ifelse(eval(CLIC != 0), 1, [[[ | |||
lsb: 0 | |||
]]]) |
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.
Not okay to remove this from the yaml file as we try to have the same yaml between 40x and 40s. The CSR should be excluded for non-CLIC and if user mode is not supported.
Only this file should get merged to the 40S, not the other files
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.
Added mscratchcsw back in and guarded with CLIC and UMODE.
rtl/cv32e40x_i_decoder.sv
Outdated
// The mscratchcsw[l] CSRs are only accessible using CSRRW with neither rd nor rs1 set to x0 | ||
if ((instr_rdata_i[31:20] == CSR_MSCRATCHCSW) || (instr_rdata_i[31:20] == CSR_MSCRATCHCSWL)) begin | ||
// The mscratchcswl CSR is only accessible using CSRRW with neither rd nor rs1 set to x0 | ||
if ((instr_rdata_i[31:20] == CSR_MSCRATCHCSWL)) begin |
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.
Remove double brackets
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.
Fixed
Signed-off-by: Oystein Knauserud <Oystein.Knauserud@silabs.com>
No description provided.