From a374f26022748d4fe03e03ca3b0e8d85ffa82d66 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 9 Dec 2021 15:45:33 +0000 Subject: [PATCH] add I-Cache to FSM local variables --- src/soc/config/ifetch.py | 3 +++ src/soc/fu/mmu/fsm.py | 1 + 2 files changed, 4 insertions(+) diff --git a/src/soc/config/ifetch.py b/src/soc/config/ifetch.py index a73a89bc..a40c2727 100644 --- a/src/soc/config/ifetch.py +++ b/src/soc/config/ifetch.py @@ -21,3 +21,6 @@ class ConfigFetchUnit: fukls = fudict[pspec.imem_ifacetype] self.fu = fukls(pspec) + def wb_bus(self): + return self.fu.ibus + diff --git a/src/soc/fu/mmu/fsm.py b/src/soc/fu/mmu/fsm.py index ae71f97b..7e8a699f 100644 --- a/src/soc/fu/mmu/fsm.py +++ b/src/soc/fu/mmu/fsm.py @@ -65,6 +65,7 @@ class FSMMMUStage(ControlBase): # incoming PortInterface self.ldst = ldst self.dcache = self.ldst.dcache + self.icache = self.ldst.icache self.pi = self.ldst.pi def elaborate(self, platform): -- 2.30.2