Skip to content

Commit

Permalink
added 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
Huda-10xe committed Feb 6, 2024
1 parent 42b21b8 commit 3104fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/mmu_sv32/cva6_tlb_sv32.sv
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module cva6_tlb_sv32
else if ((!content_q[i].g) && (vaddr_to_be_flushed_is0) && (asid_to_be_flushed_i == tags_q[i].asid[ASID_WIDTH-1:0]) && (!asid_to_be_flushed_is0))
tags_n[i].valid = 1'b0;
// 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
// update tag array
tags_n[i] = '{
asid: update_i.asid,
Expand Down

0 comments on commit 3104fb7

Please sign in to comment.