From: Luke Kenneth Casson Leighton Date: Mon, 7 Sep 2020 11:00:36 +0000 (+0100) Subject: allow Decode2ToExecute1Type to take an opkls argument X-Git-Tag: semi_working_ecp5~152 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f01798c3d5cdc12089b3f2efd770dc737a4b04f9;p=soc.git allow Decode2ToExecute1Type to take an opkls argument --- diff --git a/src/soc/decoder/decode2execute1.py b/src/soc/decoder/decode2execute1.py index 98ed32f6..73296930 100644 --- a/src/soc/decoder/decode2execute1.py +++ b/src/soc/decoder/decode2execute1.py @@ -64,7 +64,7 @@ class Decode2ToOperand(RecordObject): class Decode2ToExecute1Type(RecordObject): - def __init__(self, name=None, asmcode=True): + def __init__(self, name=None, asmcode=True, opkls=Decode2ToOperand): RecordObject.__init__(self, name=name) @@ -93,4 +93,4 @@ class Decode2ToExecute1Type(RecordObject): self.write_cr = Data(3, name="cr_out") # decode operand data - self.do = Decode2ToOperand(name) + self.do = opkls(name)