Skip to content

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

Merged
merged 3 commits into from
Sep 7, 2023

Conversation

silabs-oivind
Copy link
Contributor

SEC clean.
instr_priv_lvl_q optimized away during synth.

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment is wrong

Copy link
Contributor Author

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]>
@@ -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
Copy link
Contributor

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)?

Copy link
Contributor Author

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]>
@Silabs-ArjanB Silabs-ArjanB added the Component:RTL For issues in the RTL (e.g. for files in the rtl directory) label Sep 7, 2023
@Silabs-ArjanB Silabs-ArjanB merged commit 32d5715 into openhwgroup:master Sep 7, 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.

3 participants