Skip to content

Commit

Permalink
fixup! std_cache: Decouple Valid/Dirty WE from Data WE
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Wistoff <[email protected]>
  • Loading branch information
niwis committed Aug 10, 2023
1 parent 781ab42 commit 116885c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cache_subsystem/cache_ctrl.sv
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ module cache_ctrl import ariane_pkg::*; import std_cache_pkg::*; #(
// set the correct byte enable
be_o.data[cl_offset>>3 +: 8] = mem_req_q.be;
for (int unsigned i = 0; i < DCACHE_SET_ASSOC; i++) begin
if (hit_way_q[i]) be_o.vldrty[i] = '{valid: 1, dirty: mem_req_q.be};
if (hit_way_q[i]) be_o.vldrty[i] = '{valid: 1, dirty: be_o.data};
end
data_o.data[cl_offset +: 64] = mem_req_q.wdata;
// ~> change the state
Expand Down

0 comments on commit 116885c

Please sign in to comment.