From 1b1703273d54ba3ecd09fd7cd7f17dc7fadfdb1c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 7 Jun 2020 15:30:02 +0100 Subject: [PATCH] wark-wark, do not & rs[0] into carry-out from rotator --- src/soc/fu/shift_rot/rotator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/fu/shift_rot/rotator.py b/src/soc/fu/shift_rot/rotator.py index b5dc80ee..8a20b0ba 100644 --- a/src/soc/fu/shift_rot/rotator.py +++ b/src/soc/fu/shift_rot/rotator.py @@ -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 -- 2.30.2