From: Luke Kenneth Casson Leighton Date: Thu, 21 Mar 2019 15:47:57 +0000 (+0000) Subject: remove unneeded arguments X-Git-Tag: ls180-24jan2020~1568 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f60daffbb663d4b8b988da39d7845e1b9a444a2;p=ieee754fpu.git remove unneeded arguments --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 81b11235..ac94dbf6 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -219,12 +219,10 @@ class FPGet2Op(FPState): """ gets operands """ - def __init__(self, in_state, out_state, in_op1, in_op2, width, id_wid): + def __init__(self, in_state, out_state, width, id_wid): FPState.__init__(self, in_state) self.out_state = out_state self.mod = FPGet2OpMod(width, id_wid) - self.in_op1 = in_op1 - self.in_op2 = in_op2 self.o = self.mod.ospec() self.in_stb = Signal(reset_less=True) self.out_ack = Signal(reset_less=True) @@ -1602,7 +1600,7 @@ class FPADDBaseMod(FPID): def get_longer_fragment(self, m, platform=None): get = self.add_state(FPGet2Op("get_ops", "special_cases", - self.in_a, self.in_b, self.width)) + self.width)) get.setup(m, self.in_a, self.in_b, self.in_t.stb, self.in_t.ack) a = get.out_op1 b = get.out_op2 @@ -1651,7 +1649,6 @@ class FPADDBaseMod(FPID): def get_compact_fragment(self, m, platform=None): get = self.add_state(FPGet2Op("get_ops", "special_cases", - self.i.a, self.i.b, self.width, self.id_wid)) get.setup(m, self.i, self.in_t.stb, self.in_t.ack) a = get.o.a