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 a2da3d6 commit 9d0b9ec
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions core/mmu_unify/cva6_mmu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -445,14 +445,13 @@ module cva6_mmu
assign lsu_paddr_o[11:0] = lsu_vaddr_q[11:0];
assign lsu_paddr_o [riscv::PLEN-1:PPNWMin+1] =
(en_ld_st_translation_i && !misaligned_ex_q.valid) ? //
dtlb_pte_q.ppn[riscv::PPNW-1:(riscv::PPNW - (riscv::PLEN - PPNWMin-1))] : //
(riscv::PLEN-PPNWMin)'(lsu_vaddr_q[((riscv::PLEN > riscv::VLEN) ? riscv::VLEN : riscv::PLEN )-1:PPNWMin+1]);
dtlb_pte_q.ppn[riscv::PPNW-1:(riscv::PPNW-(riscv::PLEN-PPNWMin-1))] : //
(riscv::PLEN-PPNWMin)'(lsu_vaddr_q[((riscv::PLEN > riscv::VLEN) ? riscv::VLEN : riscv::PLEN )-1:PPNWMin+1]);

assign lsu_dtlb_ppn_o[11:0] = (en_ld_st_translation_i && !misaligned_ex_q.valid) ? //
dtlb_content.ppn[11:0] : //
lsu_vaddr_n[23:12];

assign lsu_dtlb_ppn_o [11:0] =
(en_ld_st_translation_i && !misaligned_ex_q.valid) ? //
dtlb_content.ppn[11:0] : //
lsu_vaddr_n[23:12];

genvar i;
generate
for (i = 0; i < PT_LEVELS - 1; i++) begin
Expand Down

0 comments on commit 9d0b9ec

Please sign in to comment.