From: Luke Kenneth Casson Leighton Date: Wed, 3 Jun 2020 13:57:48 +0000 (+0100) Subject: only select xer_xo if OE enabled X-Git-Tag: div_pipeline~631 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1456705b835eeba420bbe3dedb0204fabe46a069;p=soc.git only select xer_xo if OE enabled --- diff --git a/src/soc/fu/common_input_stage.py b/src/soc/fu/common_input_stage.py index cd162096..d5916a0a 100644 --- a/src/soc/fu/common_input_stage.py +++ b/src/soc/fu/common_input_stage.py @@ -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