From 41a55e6cee2417fa1bad5d2d393fd6356515902c Mon Sep 17 00:00:00 2001 From: Fatima Saleem Date: Tue, 19 Sep 2023 23:59:40 +0500 Subject: [PATCH] Bypass misaligned address exception info in case of no MMU --- core/load_store_unit.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/load_store_unit.sv b/core/load_store_unit.sv index d291c76f17..ad96658ad7 100644 --- a/core/load_store_unit.sv +++ b/core/load_store_unit.sv @@ -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