wark-wark, do not & rs[0] into carry-out from rotator
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 7 Jun 2020 14:30:02 +0000 (15:30 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 7 Jun 2020 14:30:02 +0000 (15:30 +0100)
src/soc/fu/shift_rot/rotator.py

index b5dc80eef6aa4be023e6e772fe766ea7a01d9163..8a20b0ba4f071d50031879531fa1cda811435aec 100644 (file)
@@ -156,7 +156,7 @@ class Rotator(Elaboratable):
             with m.Case(0b11):
                 comb += self.result_o.eq(rot | ~mr)
                 # Generate carry output for arithmetic shift right of -ve value
-                comb += self.carry_out_o.eq((rs & ~ml).bool() & rs[0])
+                comb += self.carry_out_o.eq((rs & ~ml).bool())
 
         return m