From 99e0e5c8179fdb7da8e09b8e4978828ae9b94a90 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Sun, 28 Aug 2022 13:10:47 -0500 Subject: [PATCH] Possible fix. --- pipelined/src/ifu/ifu.sv | 2 +- pipelined/src/lsu/lsu.sv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelined/src/ifu/ifu.sv b/pipelined/src/ifu/ifu.sv index 61fbde01..9dbe6ac9 100644 --- a/pipelined/src/ifu/ifu.sv +++ b/pipelined/src/ifu/ifu.sv @@ -194,7 +194,7 @@ module ifu ( assign IROMAdr = CPUBusy | reset ? PCFSpill : PCNextFSpill; // zero extend or contract to PA_BITS /* verilator lint_on WIDTH */ - adrdec iromdec(IROMAdr, `IROM_BASE, `IROM_RANGE, `IROM_SUPPORTED, 1'b1, 2'b10, 4'b1111, SelIROM); + adrdec iromdec(PCFExt, `IROM_BASE, `IROM_RANGE, `IROM_SUPPORTED, 1'b1, 2'b10, 4'b1111, SelIROM); assign NonIROMMemRWM = {~SelIROM, 1'b0}; irom irom(.clk, .reset, .Adr(CPUBusy | reset ? PCFSpill : PCNextFSpill), .ReadData(FinalInstrRawF)); diff --git a/pipelined/src/lsu/lsu.sv b/pipelined/src/lsu/lsu.sv index d53a4042..3d2559ad 100644 --- a/pipelined/src/lsu/lsu.sv +++ b/pipelined/src/lsu/lsu.sv @@ -34,7 +34,7 @@ // cpubusy means the cpu is stalled and the lsu must ensure ReadDataM stalls constant until the stall is removed. // chap 5 handling faults to memory by delaying writes to memory stage. // chap 6 combing bus with dtim - +// chap 9 complete lsu. `include "wally-config.vh"