reorder args, clarify
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 19:51:32 +0000 (19:51 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 19:51:32 +0000 (19:51 +0000)
src/add/nmigen_add_experiment.py

index 4addd9c1db3f069fb397d37598bb687360d5d6e2..6c800690c2926ef5e4a895d38cf609aa1d7ff400 100644 (file)
@@ -1274,14 +1274,14 @@ class FPNormToPack(FPState, FPID):
 
         # Corrections (chained to rounding)
         cmod = FPCorrectionsMod(self.width, self.id_wid)
-        c_out_z = cmod.ospec()
         cmod.setup(m, r_out_z)
+        c_out_z = cmod.ospec()
         m.d.comb += c_out_z.eq(cmod.out_z)
 
         # Pack (chained to corrections)
         self.pmod = FPPackMod(self.width, self.id_wid)
-        self.out_z = self.pmod.ospec()
         self.pmod.setup(m, c_out_z)
+        self.out_z = self.pmod.ospec()
 
         # Multiplex ID
         if self.in_mid is not None: