From: Luke Kenneth Casson Leighton Date: Thu, 9 Jul 2020 19:00:07 +0000 (+0100) Subject: clarifying comments on setting xer_ov/so X-Git-Tag: div_pipeline~131 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05ee0faf3ffe3a0bfece26c1aecab48623345c0a;p=soc.git clarifying comments on setting xer_ov/so --- diff --git a/src/soc/fu/alu/output_stage.py b/src/soc/fu/alu/output_stage.py index f6380c5f..98e653a5 100644 --- a/src/soc/fu/alu/output_stage.py +++ b/src/soc/fu/alu/output_stage.py @@ -25,7 +25,9 @@ class ALUOutputStage(CommonOutputStage): # XXX see https://bugs.libre-soc.org/show_bug.cgi?id=319#c5 comb += self.so.eq(xer_so_i[0] | xer_ov_i[0]) # SO - # copy overflow and sticky-overflow + # copy overflow and sticky-overflow. indicate to CompALU if they + # are actually required (oe enabled/set) otherwise the CompALU + # can (will) ignore them. comb += self.o.xer_so.data.eq(self.so) comb += self.o.xer_so.ok.eq(op.oe.oe & op.oe.oe_ok) comb += self.o.xer_ov.data.eq(xer_ov_i)