From: Jacob Lifshay Date: Thu, 18 Jun 2020 22:27:39 +0000 (-0700) Subject: fix bug and manually check div overflow code against instruction models X-Git-Tag: div_pipeline~330 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87116a86bd3be9b6e6aa0ab6cb582ecf204b4c44;p=soc.git fix bug and manually check div overflow code against instruction models --- diff --git a/src/soc/fu/div/output_stage.py b/src/soc/fu/div/output_stage.py index eb4461e0..6265fcbc 100644 --- a/src/soc/fu/div/output_stage.py +++ b/src/soc/fu/div/output_stage.py @@ -78,7 +78,7 @@ class DivOutputStage(PipeModBase): with m.If(op.is_32bit): calc_overflow(self.i.dive_abs_overflow_32, 0x8000_0000) with m.Else(): - calc_overflow(self.i.dive_abs_overflow_32, 0x8000_0000_0000_0000) + calc_overflow(self.i.dive_abs_overflow_64, 0x8000_0000_0000_0000) ########################## # main switch for DIV