add pspec and opsubsetkls to CompUnits
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 7 Sep 2020 18:23:50 +0000 (19:23 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 7 Sep 2020 21:14:45 +0000 (22:14 +0100)
src/soc/fu/compunits/compunits.py

index c4280fee54e915462b23dc838a614c645435916a..65357830298c517070420cbc977022d14dc7d846 100644 (file)
@@ -111,6 +111,7 @@ class FunctionUnitBaseSingle(MultiCompUnit):
         opsubset = pspec.opsubsetkls             # get the operand subset class
         regspec = pspec.regspec                  # get the regspec
         alu = pipekls(pspec)                     # create actual NNNBasePipe
+        self.pspec = pspec
         super().__init__(regspec, alu, opsubset, name=alu_name)  # MultiCompUnit
 
 
@@ -204,6 +205,7 @@ class LDSTFunctionUnit(LDSTCompUnit):
         pspec = LDSTPipeSpec(id_wid=2)           # spec (NNNPipeSpec instance)
         opsubset = pspec.opsubsetkls             # get the operand subset class
         regspec = pspec.regspec                  # get the regspec
+        self.opsubsetkls = opsubset
         super().__init__(pi, regspec, awid, opsubset, name=alu_name)