From 27b62fa95ec168d55b63dee47167245d68e0a34b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 15 Feb 2020 12:46:53 +0000 Subject: [PATCH] stop expression-repeating cascade --- src/ieee754/part_shift/part_shift_dynamic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index 9e214d0f..aebcef51 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -145,6 +145,7 @@ class PartitionedDynamicShift(Elaboratable): print("select: [%d:%d]" % (start, end)) res = Signal(width, name="res%d" % i, reset_less=True) comb += res.eq(result) + result = res s,e = intervals[0] out.append(res[s:e]) -- 2.30.2