reduce partial result width
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 12:51:45 +0000 (12:51 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 12:51:45 +0000 (12:51 +0000)
src/ieee754/part_shift/part_shift_dynamic.py

index 1aedbf8de4b5f65100ac42f9e70948770ea1465d..99b602f9c28790a821338a7a9d5c57ce933cd6a3 100644 (file)
@@ -128,7 +128,7 @@ class PartitionedDynamicShift(Elaboratable):
             #with m.Else():
             #    comb += shifter.eq(element)
             comb += shifter.eq(element)
-            partial = Signal(width, name="partial%d" % i, reset_less=True)
+            partial = Signal(reswid, name="partial%d" % i, reset_less=True)
             comb += partial.eq(a_intervals[i] << shifter)
 
             partial_results.append(partial)