From 6373958df521fbd5354da77c58c5ca93072674e8 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Sun, 10 May 2020 19:16:17 -0400 Subject: [PATCH] Actually implement rlwimi --- src/soc/alu/main_stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/alu/main_stage.py b/src/soc/alu/main_stage.py index 59c896a5..9d8133f1 100644 --- a/src/soc/alu/main_stage.py +++ b/src/soc/alu/main_stage.py @@ -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 ##### -- 2.30.2