From c6ed3e83fe06cdff74e8615913067a80c0936971 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 7 Sep 2020 19:23:50 +0100 Subject: [PATCH] add pspec and opsubsetkls to CompUnits --- src/soc/fu/compunits/compunits.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/fu/compunits/compunits.py b/src/soc/fu/compunits/compunits.py index c4280fee..65357830 100644 --- a/src/soc/fu/compunits/compunits.py +++ b/src/soc/fu/compunits/compunits.py @@ -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) -- 2.30.2