reduce args to FPRound
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 20:00:23 +0000 (20:00 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 20:00:23 +0000 (20:00 +0000)
src/add/nmigen_add_experiment.py

index 06943719358fee59bb42aeeb1ce507992a0ec423..529fd94c4cbf41356c6c35e8ae8189cfb01eaaa3 100644 (file)
@@ -1338,10 +1338,10 @@ class FPRound(FPState, FPID):
         self.mod = FPRoundMod(width)
         self.out_z = self.mod.ospec()
 
-    def setup(self, m, in_z, roundz, in_mid):
+    def setup(self, m, i, in_mid):
         """ links module to inputs and outputs
         """
-        self.mod.setup(m, in_z, roundz)
+        self.mod.setup(m, i)
 
         if self.in_mid is not None:
             m.d.comb += self.in_mid.eq(in_mid)