Skip to content

Commit

Permalink
more linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelaGonzalezMarino committed Dec 19, 2023
1 parent 254378c commit a10ba44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions core/mmu_unify/cva6_shared_tlb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,20 @@ module cva6_shared_tlb
for (i = 0; i < SHARED_TLB_WAYS; i++) begin
//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 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];
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 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
end
endgenerate

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)? //
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
8 changes: 4 additions & 4 deletions core/mmu_unify/cva6_tlb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ module cva6_tlb
// Sanity checks
//--------------

//pragma translate_off
`ifndef VERILATOR
//pragma translate_off
`ifndef VERILATOR

initial begin : p_assertions
assert ((TLB_ENTRIES % 2 == 0) && (TLB_ENTRIES > 1))
Expand Down Expand Up @@ -300,7 +300,7 @@ module cva6_tlb
$stop();
end

`endif
//pragma translate_on
`endif
//pragma translate_on

endmodule

0 comments on commit a10ba44

Please sign in to comment.