Skip to content

Commit

Permalink
Increased utilization of the speculative queue of store buffer (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimasaleem authored Oct 7, 2023
1 parent ed5d42f commit 38c9499
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/store_buffer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ module store_buffer import ariane_pkg::*; #(
automatic logic [$clog2(DEPTH_SPEC):0] speculative_status_cnt;
speculative_status_cnt = speculative_status_cnt_q;

// we are ready if the speculative and the commit queue have a space left
ready_o = (speculative_status_cnt_q < (DEPTH_SPEC - 1)) || commit_i;
// default assignments
speculative_status_cnt_n = speculative_status_cnt_q;
speculative_read_pointer_n = speculative_read_pointer_q;
Expand Down Expand Up @@ -119,6 +117,9 @@ module store_buffer import ariane_pkg::*; #(
// also reset the status count
speculative_status_cnt_n = 'b0;
end

// we are ready if the speculative and the commit queue have a space left
ready_o = (speculative_status_cnt_n < (DEPTH_SPEC)) || commit_i;
end

// ----------------------------------------
Expand Down

0 comments on commit 38c9499

Please sign in to comment.