-
Notifications
You must be signed in to change notification settings - Fork 52
Fix TODO in RTL. Updated use of priv-lvl signals to match cv32e40s #938
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
Signed-off-by: Oivind Ekelund <[email protected]>
rtl/cv32e40x_cs_registers.sv
Outdated
@@ -1470,7 +1471,12 @@ module cv32e40x_cs_registers import cv32e40x_pkg::*; | |||
assign mhartid_rdata = mhartid_i; | |||
assign mconfigptr_rdata = 32'h0; | |||
|
|||
// Only user mode is supported |
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.
Comment is wrong
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.
Updated
Signed-off-by: Oivind Ekelund <[email protected]>
rtl/cv32e40x_alignment_buffer.sv
Outdated
@@ -624,7 +630,32 @@ module cv32e40x_alignment_buffer import cv32e40x_pkg::*; | |||
assign fetch_ptr_access_o = (ctrl_fsm_i.pc_set && (ctrl_fsm_i.pc_set_clicv || ctrl_fsm_i.pc_set_tbljmp)); | |||
|
|||
// Set privilege level to prefetcher | |||
assign fetch_priv_lvl_o = PRIV_LVL_M; | |||
// Privilege level must be updated immediatly to allow the | |||
// IF stage to do PMP checks with the correct privilege level |
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.
Do we want comments to unimplemented features (PMP)?
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.
Probably not. Updated the wording.
Signed-off-by: Oivind Ekelund <[email protected]>
SEC clean.
instr_priv_lvl_q optimized away during synth.