From 653ba332baeec693ba1ce46f82fd725efcb3ed38 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 15 Feb 2020 15:46:24 +0000 Subject: [PATCH] set initial element to b_interval shape --- src/ieee754/part_shift/part_shift_dynamic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2