From 31c07b2adcdeaac25c8f5bd3f472b2f589ba41c7 Mon Sep 17 00:00:00 2001 From: Teo Ene Date: Thu, 25 Feb 2021 11:23:01 -0600 Subject: [PATCH] Edited imem to account for TIMBASE==0; still hard-coded and needs to be improved, but works with coremark config now. --- wally-pipelined/src/uncore/imem.sv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wally-pipelined/src/uncore/imem.sv b/wally-pipelined/src/uncore/imem.sv index 09a6c2ce..1d8146cd 100644 --- a/wally-pipelined/src/uncore/imem.sv +++ b/wally-pipelined/src/uncore/imem.sv @@ -57,7 +57,11 @@ module imem ( end else begin assign InstrF = AdrF[2] ? (AdrF[1] ? {rd2[15:0], rd[63:48]} : rd[63:32]) : (AdrF[1] ? rd[47:16] : rd[31:0]); - assign InstrAccessFaultF = (|AdrF[`XLEN-1:32]) | ~AdrF[31] | (|AdrF[30:16]); // memory mapped to 0x80000000-0x8000FFFF] + if(`TIMBASE==0) begin + assign InstrAccessFaultF = 0; + end else begin + assign InstrAccessFaultF = (|AdrF[`XLEN-1:32]) | ~AdrF[31] | (|AdrF[30:16]); // memory mapped to 0x80000000-0x8000FFFF] + end end endgenerate endmodule