Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b8f6e77 commit ce5a46e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions core/mmu_unify/cva6_tlb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ module cva6_tlb
if (tags_q[i].valid && ((lu_asid_i == tags_q[i].asid[ASID_WIDTH-1:0]) || content_q[i].g)) begin
// find if there is a match at any level
if (|level_match[i]) begin
lu_is_page_o = tags_q[i].is_page; //the page size is indicated here
lu_content_o = content_q[i];
lu_hit_o = 1'b1;
lu_hit[i] = 1'b1;
lu_is_page_o = tags_q[i].is_page; //the page size is indicated here
lu_content_o = content_q[i];
lu_hit_o = 1'b1;
lu_hit[i] = 1'b1;
end
end
end
Expand All @@ -134,7 +134,6 @@ module cva6_tlb
// Update and Flush
// ------------------
always_comb begin : update_flush

content_n = content_q;

for (int unsigned i = 0; i < TLB_ENTRIES; i++) begin
Expand All @@ -157,9 +156,9 @@ module cva6_tlb
// normal replacement
end else if (update_i.valid & replace_en[i]) begin
// update tag array
tags_n[i].asid = update_i.asid;
tags_n[i].is_page= update_i.is_page;
tags_n[i].valid = 1'b1;
tags_n[i].asid = update_i.asid;
tags_n[i].is_page = update_i.is_page;
tags_n[i].valid = 1'b1;

// and content as well
content_n[i] = update_i.content;
Expand Down

0 comments on commit ce5a46e

Please sign in to comment.