Actually implement rlwimi
authorMichael Nolan <mtnolan2640@gmail.com>
Sun, 10 May 2020 23:16:17 +0000 (19:16 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Mon, 11 May 2020 13:16:02 +0000 (09:16 -0400)
src/soc/alu/main_stage.py

index 59c896a56cc6217b969f506d6dee7661bacc548d..9d8133f1638158f752659c6bfa6261e9d07f171b 100644 (file)
@@ -141,7 +141,7 @@ class ALUMainStage(PipeModBase):
                 comb += maskgen.mb.eq(mb+32)
                 comb += maskgen.me.eq(me+32)
                 comb += mask.eq(maskgen.o)
-                comb += self.o.o.eq(rotl_out & mask)
+                comb += self.o.o.eq((rotl_out & mask) | (self.i.b & ~mask))
                 
 
         ###### sticky overflow and context, both pass-through #####