From a0faa5a6e6905dbbe60f94463c03700a85e07e36 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 Feb 2020 12:54:54 +0000 Subject: [PATCH] experiment looking for minimum shift width --- src/ieee754/part_shift/part_shift_dynamic.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index 1b941d26..7d5e7e47 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -79,10 +79,13 @@ class PartitionedDynamicShift(Elaboratable): # XXX! bw = math.ceil(math.log2(self.output.width + 1)) tshift = Signal(bw, name="ts%d_%d" % (i, j), reset_less=True) - with m.If(b[:bw] < 1<