stop expression-repeating cascade
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 12:46:53 +0000 (12:46 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Feb 2020 12:46:53 +0000 (12:46 +0000)
src/ieee754/part_shift/part_shift_dynamic.py

index 9e214d0f41b974533f994e1008fdc7bf79d04e36..aebcef51693c7d2fd2701a0686a6d28210e7aec4 100644 (file)
@@ -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])