From: Luke Kenneth Casson Leighton Date: Mon, 7 Sep 2020 18:23:50 +0000 (+0100) Subject: add pspec and opsubsetkls to CompUnits X-Git-Tag: semi_working_ecp5~137 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6ed3e83fe06cdff74e8615913067a80c0936971;p=soc.git add pspec and opsubsetkls to CompUnits --- 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)