From 4e792694d2bde21a186601cb502beb0476c93e9d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 15 Feb 2020 12:47:09 +0000 Subject: [PATCH] store partial result in signal otherwise it gets duplicated --- src/ieee754/part_shift/part_shift_dynamic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index aebcef51..1aedbf8d 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -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... -- 2.30.2