pass through sticky-overflow
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 May 2020 13:56:16 +0000 (14:56 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 May 2020 13:56:16 +0000 (14:56 +0100)
src/soc/alu/input_stage.py

index e962692bc3ffe033376104fc02f54aa080e61661..ed86a5bf0f2be2d16b33f62f26b36bc1fd2c662c 100644 (file)
@@ -54,8 +54,9 @@ class ALUInputStage(PipeModBase):
             with m.Case(CryIn.CA):
                 comb += self.o.carry_in.eq(self.i.carry_in)
 
-        ##### context #####
+        ##### sticky overflow and context (both pass-through) #####
 
+        comb += self.o.so.eq(self.i.so)
         comb += self.o.ctx.eq(self.i.ctx)
 
         return m