store intermediate in temp, append that to output
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 13 Feb 2020 15:16:14 +0000 (15:16 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 13 Feb 2020 15:16:14 +0000 (15:16 +0000)
src/ieee754/part_shift/part_shift_dynamic.py

index 7d5e7e475aee2939122ff472b89805eef9513a5c..1e76a188648ee0594a09b9c244ce87d4282b9a79 100644 (file)
@@ -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))