From: Luke Kenneth Casson Leighton Date: Sat, 15 Feb 2020 12:47:09 +0000 (+0000) Subject: store partial result in signal otherwise it gets duplicated X-Git-Tag: ls180-24jan2020~162 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e792694d2bde21a186601cb502beb0476c93e9d;p=ieee754fpu.git store partial result in signal otherwise it gets duplicated --- 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...