From: Luke Kenneth Casson Leighton Date: Sat, 15 Feb 2020 15:46:24 +0000 (+0000) Subject: set initial element to b_interval shape X-Git-Tag: ls180-24jan2020~151 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=653ba332baeec693ba1ce46f82fd725efcb3ed38;p=ieee754fpu.git set initial element to b_interval shape --- diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index f2394d5a..bfd8b244 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -157,7 +157,8 @@ class PartitionedDynamicShift(Elaboratable): # for o2 (namely, a2bx, a1bx, and a0b0). If I calculate the # partial results [a0b0, a1bx, a2bx, a3bx], I can use just # those partial results to calculate a0, a1, a2, and a3 - element = b_intervals[0] & shifter_masks[0] + element = Signal(b_intervals[0].shape(), reset_less=True) + comb += element.eq(b_intervals[0] & shifter_masks[0]) partial_results = [] partial = Signal(width, name="partial0", reset_less=True) comb += partial.eq(a_intervals[0] << element)