Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelaGonzalezMarino committed Dec 19, 2023
1 parent 34e30d3 commit 55681a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/mmu_unify/cva6_shared_tlb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module cva6_shared_tlb
//identify page_match for all TLB Entries

for (x = 0; x < PT_LEVELS; x++) begin
assign page_match[i][x] = x == 0 ? 1 :shared_tag_rd[i].is_page[PT_LEVELS-1-x];
assign page_match[i][x] = x == 0 ? 1 : shared_tag_rd[i].is_page[PT_LEVELS-1-x];
assign vpn_match[i][x] = vpn_q[x] == shared_tag_rd[i].vpn[x];
assign level_match[i][x] = &vpn_match[i][PT_LEVELS-1:x] & page_match[i][x];
end
Expand All @@ -162,11 +162,11 @@ module cva6_shared_tlb

genvar w;
generate
for (w = 0; w < PT_LEVELS; w++) begin
assign vpn_d[w] = (enable_translation_i & itlb_access_i & ~itlb_hit_i & ~dtlb_access_i) ? //
itlb_vaddr_i[12+((VPN_LEN/PT_LEVELS)*(w+1))-1:12+((VPN_LEN/PT_LEVELS)*w)] : //
((en_ld_st_translation_i & dtlb_access_i & ~dtlb_hit_i) ? //
dtlb_vaddr_i[12+((VPN_LEN/PT_LEVELS)*(w+1))-1:12+((VPN_LEN/PT_LEVELS)*w)] : vpn_q[w]);
for (w = 0; w < PT_LEVELS; w++) begin
assign vpn_d[w] = (enable_translation_i & itlb_access_i & ~itlb_hit_i & ~dtlb_access_i) ? //
itlb_vaddr_i[12+((VPN_LEN/PT_LEVELS)*(w+1))-1:12+((VPN_LEN/PT_LEVELS)*w)] : //
((en_ld_st_translation_i & dtlb_access_i & ~dtlb_hit_i) ? //
dtlb_vaddr_i[12+((VPN_LEN/PT_LEVELS)*(w+1))-1:12+((VPN_LEN/PT_LEVELS)*w)] : vpn_q[w]);
end
endgenerate

Expand Down
1 change: 1 addition & 0 deletions core/mmu_unify/cva6_tlb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ module cva6_tlb
en &= ~plru_tree_q[idx_base+(i>>shift)];
end
end

replace_en[i] = en;
end
end
Expand Down

0 comments on commit 55681a4

Please sign in to comment.