From dfafd02e6318068741b0093ad324d26238896fc3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 Feb 2020 15:42:51 +0000 Subject: [PATCH] reduce width of temporary intermediates --- src/ieee754/part_shift/part_shift_dynamic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index df268810..a0dac157 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -100,7 +100,7 @@ class PartitionedDynamicShift(Elaboratable): s, e = intervals[i] index = gates[:i] # selects the 'i' least significant bits # of gates - element = Signal(width, name="element%d" % i) + element = Signal(matrix[0][i].width, name="element%d" % i) for index in range(1<