reduce args to FPNorm1Single
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 19:59:49 +0000 (19:59 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 19:59:49 +0000 (19:59 +0000)
src/add/nmigen_add_experiment.py

index 3b78669977cd0442b12d35e43eb885454a8cbd4b..06943719358fee59bb42aeeb1ce507992a0ec423 100644 (file)
@@ -1187,10 +1187,10 @@ class FPNorm1Single(FPState, FPID):
         self.out_z = FPNumBase(width, False)
         self.out_roundz = Signal(reset_less=True)
 
-    def setup(self, m, in_z, in_of, in_mid):
+    def setup(self, m, i, in_mid):
         """ links module to inputs and outputs
         """
-        self.mod.setup(m, in_z, in_of, self.out_z)
+        self.mod.setup(m, i, self.out_z)
 
         if self.in_mid is not None:
             m.d.comb += self.in_mid.eq(in_mid)