rotator carry is set into both XER CA and CA32 fields
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 1 Jun 2020 18:13:08 +0000 (19:13 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 1 Jun 2020 18:13:08 +0000 (19:13 +0100)
src/soc/fu/shift_rot/main_stage.py

index 6b6f20a896c126d43d2071b7e910e9aca49a5645..eac9253b389acc9797f806ccffb19b9ca612ca44 100644 (file)
@@ -73,9 +73,8 @@ class ShiftRotMainStage(PipeModBase):
                     rotator.clear_right).eq(mode)
                 
         # outputs from the microwatt rotator module
-        # XXX TODO: carry32
         comb += [o.data.eq(rotator.result_o),
-                 self.o.xer_ca[0].eq(rotator.carry_out_o)]
+                 self.o.xer_ca.data.eq(Repl(rotator.carry_out_o, 2))]
 
         ###### sticky overflow and context, both pass-through #####