whoops forgot self.width
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Mar 2019 10:03:49 +0000 (10:03 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Mar 2019 10:03:49 +0000 (10:03 +0000)
src/add/nmigen_add_experiment.py

index 21a73f50d756a5178bd3c1f264cee369fd0a00ea..f710e12f343856a1e7f1f7420ad1dcea3a8271c9 100644 (file)
@@ -929,8 +929,8 @@ class FPNormToPack(FPState, FPID):
         m.d.comb += c_out_z.copy(cmod.out_z)
 
         # Pack (chained to corrections)
-        self.pmod = FPPackMod(width)
-        self.out_z = FPNumBase(width)
+        self.pmod = FPPackMod(self.width)
+        self.out_z = FPNumBase(self.width)
         self.pmod.setup(m, c_out_z)
 
         # Multiplex ID