only select xer_xo if OE enabled
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 3 Jun 2020 13:57:48 +0000 (14:57 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 3 Jun 2020 13:57:48 +0000 (14:57 +0100)
src/soc/fu/common_input_stage.py

index cd1620964e333bf8e5d793edf5b0c28b766a0052..d5916a0a7a0aa803f5f0a3a39b93a4d4d1b86b10 100644 (file)
@@ -44,7 +44,8 @@ class CommonInputStage(PipeModBase):
         ##### sticky overflow and context (both pass-through) #####
 
         if hasattr(self.o, "xer_so"): # hack (for now - for LogicalInputData)
-            comb += self.o.xer_so.eq(self.i.xer_so)
+            with m.If(op.oe.oe_ok):
+                comb += self.o.xer_so.eq(self.i.xer_so)
         comb += self.o.ctx.eq(self.i.ctx)
 
         return m