Skip to content

Commit

Permalink
Fix missing reset of the cmoh_flush_req_valid_q register
Browse files Browse the repository at this point in the history
  • Loading branch information
cfuguet committed Jan 24, 2025
1 parent f75ea5e commit aa3d867
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rtl/src/hpdcache_cmo.sv
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,13 @@ import hpdcache_pkg::*;
always_ff @(posedge clk_i or negedge rst_ni)
begin
if (!rst_ni) begin
core_rsp_send_q <= 1'b0;
cmoh_fsm_q <= CMOH_IDLE;
core_rsp_send_q <= 1'b0;
cmoh_flush_req_valid_q <= 1'b0;
cmoh_fsm_q <= CMOH_IDLE;
end else begin
core_rsp_send_q <= core_rsp_send_d;
cmoh_fsm_q <= cmoh_fsm_d;
core_rsp_send_q <= core_rsp_send_d;
cmoh_flush_req_valid_q <= cmoh_flush_req_valid_d;
cmoh_fsm_q <= cmoh_fsm_d;
end
end

Expand All @@ -550,7 +552,6 @@ import hpdcache_pkg::*;
cmoh_addr_q <= cmoh_addr_d;
cmoh_way_q <= cmoh_way_d;
cmoh_set_q <= cmoh_set_d;
cmoh_flush_req_valid_q <= cmoh_flush_req_valid_d;
cmoh_flush_req_set_q <= cmoh_flush_req_set_d;
cmoh_flush_req_way_q <= cmoh_flush_req_way_d;
cmoh_flush_req_inval_q <= cmoh_flush_req_inval_d;
Expand Down

0 comments on commit aa3d867

Please sign in to comment.