Skip to content

Commit

Permalink
Bypass misaligned address exception info in case of no MMU
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimasaleem committed Sep 19, 2023
1 parent 76c9653 commit 41a55e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/load_store_unit.sv
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ module load_store_unit import ariane_pkg::*; #(
assign dtlb_ppn = mmu_vaddr_plen[riscv::PLEN-1:12];
assign dtlb_hit = 1'b1;

assign mmu_exception = '0;

always_ff @(posedge clk_i or negedge rst_ni) begin
if (~rst_ni) begin
mmu_paddr <= '0;
translation_valid <= '0;
mmu_exception <= '0;
end else begin
mmu_paddr <= mmu_vaddr_plen;
translation_valid <= translation_req;
mmu_exception <= misaligned_exception;
end
end
end
Expand Down

0 comments on commit 41a55e6

Please sign in to comment.