-
Notifications
You must be signed in to change notification settings - Fork 25
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
remove branch predictor #49
remove branch predictor #49
Conversation
@davideschiavone : Could you please review? |
rtl/cve2_if_stage.sv
Outdated
`ASSERT(NoPredictSkid, instr_skid_valid_q |-> ~predict_branch_taken) | ||
`ASSERT(NoPredictIllegal, predict_branch_taken |-> ~illegal_c_insn) | ||
end else begin : g_no_branch_predictor | ||
begin : g_no_branch_predictor |
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.
Module-level begin-end blocks are not LRM-valid syntax. [Style: floating-begin-end-blocks] [module-begin-block]
rtl/cve2_if_stage.sv
Outdated
`endif | ||
|
||
end else begin : g_no_branch_predictor_asserts | ||
begin : g_no_branch_predictor_asserts |
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.
Module-level begin-end blocks are not LRM-valid syntax. [Style: floating-begin-end-blocks] [module-begin-block]
fe9a83c
to
2753172
Compare
if (instr_bp_taken_i & branch_not_set_i) begin | ||
// If the instruction is a branch that was predicted to be taken but was not taken | ||
// signal a mispredict. | ||
nt_branch_mispredict_o = 1'b1; |
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.
this signal is always 0, shall we just remove it from the cve2_controller and wherever it is used in the id_stage etc?
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.
Redundant signals were pruned.
if (BranchPredictor) begin : g_calc_nt_addr | ||
assign nt_branch_addr_o = pc_id_i + (instr_is_compressed_i ? 32'd2 : 32'd4); | ||
end else begin : g_n_calc_nt_addr | ||
assign nt_branch_addr_o = 32'd0; |
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.
similarly to the previous comment, shall we just remove this signal and its leaf?
edf92ee
to
0ced299
Compare
05173cf
to
36fdcaf
Compare
can you @szbieg merge in again the Also let's removed unused/undeclered signals (or declare them if you use them) as: I copy here the Verilator errors
|
3bd6ede
to
b36a71e
Compare
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
…ations Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
b36a71e
to
8c00895
Compare
No description provided.