store partial result in signal otherwise it gets duplicated
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 12:47:09 +0000 (12:47 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 12:47:09 +0000 (12:47 +0000)
src/ieee754/part_shift/part_shift_dynamic.py

index aebcef51693c7d2fd2701a0686a6d28210e7aec4..1aedbf8de4b5f65100ac42f9e70948770ea1465d 100644 (file)
@@ -97,7 +97,9 @@ class PartitionedDynamicShift(Elaboratable):
         # those partial results to calculate a0, a1, a2, and a3
         element = b_intervals[0] & shifter_masks[0]
         partial_results = []
-        partial_results.append(a_intervals[0] << element)
+        partial = Signal(width, name="partial0", reset_less=True)
+        comb += partial.eq(a_intervals[0] << element)
+        partial_results.append(partial)
         for i in range(1, len(keys)):
             reswid = width - intervals[i][0]
             shiftbits = math.ceil(math.log2(reswid+1))+1 # hmmm...