modify reorder_bits to copy the MSB of the partition to each bit
[ieee754fpu.git] / src / ieee754 / part_cmp / reorder_results.py
index 577f1702df0214b38707e80fbd2d9e41476c12d8..41c646527d6424e9a73ef03f365de653431ee94f 100644 (file)
@@ -23,7 +23,7 @@ class ReorderResults(Elaboratable):
         for i in range(width-2, -1, -1):  # counts down from width-1 to 0
             cur = Signal()
             comb += cur.eq(current_result)
-            comb += self.output[i+1].eq(cur & self.gates[i])
+            comb += self.output[i+1].eq(cur)
             current_result = Mux(self.gates[i], self.results_in[i], cur)
 
             comb += self.output[0].eq(current_result)