-
Notifications
You must be signed in to change notification settings - Fork 52
Optimized CSR stalls #917
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
Silabs-ArjanB
merged 5 commits into
openhwgroup:master
from
silabs-oysteink:silabs-oysteink_CSR-stall-opt
Aug 28, 2023
Merged
Optimized CSR stalls #917
Silabs-ArjanB
merged 5 commits into
openhwgroup:master
from
silabs-oysteink:silabs-oysteink_CSR-stall-opt
Aug 28, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: ID stage stalls are kept as before for implicit CSR reads (mret and tablejumps). They stall on any CSR accesses in EX or WB. 2: EX stage is stalled for: 2.1: CSR instruction reading multiple CSRs (imiiplicit reads) are stalled when any CSR access is in WB 2.2: CSR instructions are stalled when any implicit CSR write is in WB 2.3: CSR instructions are stalled on a true RAW hazard with another regular CSR instruction in WB. Signed-off-by: Oystein Knauserud <[email protected]>
Signed-off-by: Oystein Knauserud <[email protected]>
Silabs-ArjanB
requested changes
Aug 25, 2023
…out stall signals being conservative i.e not factoring inn kill or halt. Signed-off-by: Oystein Knauserud <[email protected]>
Signed-off-by: Oystein Knauserud <[email protected]>
Silabs-ArjanB
requested changes
Aug 25, 2023
rtl/cv32e40x_controller_bypass.sv
Outdated
ex_wb_pipe_i.csr_en && ex_wb_pipe_i.csr_impl_wr)); | ||
|
||
// Detect implicit and explicit CSR writes in EX | ||
assign csr_write_in_ex = (id_ex_pipe_i.instr_valid && (id_ex_pipe_i.csr_en || csr_impl_write_in_ex)); |
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 unneeded outer 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.
Removed
Signed-off-by: Oystein Knauserud <[email protected]>
Silabs-ArjanB
approved these changes
Aug 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Conservatively stalling ID for any implicit CSR read while any implicit or explicit CSR write is in EX or WB (unchanged)
Conservatively stalling EX for any implicit CSR read while any implicit or explicit CSR write is in WB
Conservatively stalling EX for any explicit CSR rad while any implicit CSR write is in WB
Precisely stalling EX for any explicit CSR read while an explicit CSR write to the same CSR is in WB.