bring MMU exception out where AllFunctionUnits (and then core)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Dec 2021 20:44:26 +0000 (20:44 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Dec 2021 20:44:26 +0000 (20:44 +0000)
can get at it

src/soc/fu/compunits/compunits.py
src/soc/fu/mmu/fsm.py

index ee9f49817ddcd7826a8322754b29e142ece74070..4077451cc6cc793635b98131417b3826bea2aad7 100644 (file)
@@ -242,6 +242,7 @@ class MMUFSMFunctionUnit(FunctionUnitBaseSingle):
 
     def __init__(self, idx, parent_pspec):
         super().__init__(MMUPipeSpec, FSMMMUStage, idx, parent_pspec)
+        self.exc_o = self.alu.exc_o # get at MMU exception
 
 
 class DivPipeFunctionUnit(FunctionUnitBaseSingle):
index 3517dcf593a0a0e8f266cc1a5c156bcbe22ace5d..3f20d9ab11951f57e6cec780495cd990cedf4811 100644 (file)
@@ -45,6 +45,7 @@ class FSMMMUStage(ControlBase):
         # set up p/n data
         self.p.i_data = MMUInputData(pspec)
         self.n.o_data = MMUOutputData(pspec)
+        self.exc_o = self.n.o_data.exception # AllFunctionUnits needs this
 
         self.mmu = MMU()