From 66fa126635c4336b1242d0da856fff6751a15447 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 Feb 2020 15:16:14 +0000 Subject: [PATCH] store intermediate in temp, append that to output --- src/ieee754/part_shift/part_shift_dynamic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index 7d5e7e47..1e76a188 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -112,7 +112,7 @@ class PartitionedDynamicShift(Elaboratable): print(intermed[keys[0]:]) intermed = Mux(gates[i-1], element, element | intermed[keys[0]:]) comb += temp.eq(intermed) - out.append(intermed[:e-s]) + out.append(temp[:e-s]) comb += self.output.eq(Cat(*out)) -- 2.30.2