From 05ee0faf3ffe3a0bfece26c1aecab48623345c0a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 9 Jul 2020 20:00:07 +0100 Subject: [PATCH] clarifying comments on setting xer_ov/so --- src/soc/fu/alu/output_stage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2