Skip to content
Snippets Groups Projects
Commit c8b4b7b6 authored by Alban Gruin's avatar Alban Gruin
Browse files

Revert "sras: handle unhandled cases wrt. the overflow"

This reverts commit e17128ee.
parent e06bad87
No related branches found
No related tags found
No related merge requests found
......@@ -380,15 +380,14 @@ module frontend import ariane_pkg::*; #(
) i_ras (
.clk_i,
.rst_ni,
.flush_i ( flush_bp_i ),
.push_i ( ras_push ),
.pop_i ( ras_pop ),
.data_i ( ras_update ),
.begin_spec_i ( begin_spec_o ),
.valid_spec_i ( is_correct_predict ),
.bad_spec_i ( is_mispredict ),
.resolved_type_i ( resolved_branch_i.cf_type ),
.data_o ( ras_predict )
.flush_i ( flush_bp_i ),
.push_i ( ras_push ),
.pop_i ( ras_pop ),
.data_i ( ras_update ),
.begin_spec_i ( begin_spec_o ),
.valid_spec_i ( is_correct_predict ),
.bad_spec_i ( is_mispredict ),
.data_o ( ras_predict )
);
btb #(
......
......@@ -28,7 +28,6 @@ module sras #(
input logic begin_spec_i,
input logic valid_spec_i,
input logic bad_spec_i,
input ariane_pkg::cf_t resolved_type_i,
output ariane_pkg::ras_t data_o
);
......@@ -69,16 +68,12 @@ module sras #(
ovf_counter_d[ptr_spec_q] = ovf_counter_q[ptr_spec_q] + 1'b1;
end
end else if (!push_i && pop_i) begin
if (ovf_counter_q[ptr_spec_q] == '0) begin
ovf_counter_d[ptr_spec_d] = '0; // ovf_counter_d[ptr_spec_d] = ovf_counter_q[ptr_spec_q];
end else begin
if (ovf_counter_q[ptr_spec_q] != '0) begin
ovf_counter_d[ptr_spec_d] = ovf_counter_q[ptr_spec_q] - 1'b1;
end
end else if (begin_spec_i) begin
ovf_counter_d[ptr_spec_d] = ovf_counter_q[ptr_spec_q];
end
end else if (bad_spec_i && resolved_type_i == ariane_pkg::Return && ovf_counter_q[ptr_spec_q] != '0) begin
ovf_counter_d[ptr_spec_d] = ovf_counter_q[ptr_spec_q] - 1'b1;
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment