Skip to content

Commit

Permalink
Add the condition for updating the tlb only after a miss is incurred (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelaGonzalezMarino authored May 23, 2024
1 parent f8b07f0 commit be14a84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/cva6_mmu/cva6_tlb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ module cva6_tlb
tags_n[i].valid = 1'b0;
end
// normal replacement
end else if (update_i.valid & replace_en[i]) begin
// end else if (update_i.valid & replace_en[i] && !lu_hit_o) begin //to add this fix
end else if (update_i.valid & replace_en[i] & !lu_hit_o) begin
//update tag
tags_n[i] = {
update_i.asid,
Expand Down

0 comments on commit be14a84

Please sign in to comment.