From 0087cc199190a70fbd612651b738ff4e9c0e21d5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 29 Jun 2019 10:33:28 +0100 Subject: [PATCH] comments --- src/ieee754/fpdiv/div0.py | 4 ++++ src/ieee754/fpdiv/div2.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/ieee754/fpdiv/div0.py b/src/ieee754/fpdiv/div0.py index 167edde6..0667639d 100644 --- a/src/ieee754/fpdiv/div0.py +++ b/src/ieee754/fpdiv/div0.py @@ -64,6 +64,10 @@ class FPDivStage0Mod(Elaboratable): # *begins* the processing phase (enters the massive DIV # pipeline chain) - see ospec. + # NOTE: this stage does *NOT* do *ACTUAL* DIV processing, + # it is PURELY the *ENTRY* point into the chain, performing + # "preparation" work + # store intermediate tests (and zero-extended mantissas) am0 = Signal(len(self.i.a.m)+1, reset_less=True) bm0 = Signal(len(self.i.b.m)+1, reset_less=True) diff --git a/src/ieee754/fpdiv/div2.py b/src/ieee754/fpdiv/div2.py index 6b9be39c..1b54db47 100644 --- a/src/ieee754/fpdiv/div2.py +++ b/src/ieee754/fpdiv/div2.py @@ -50,6 +50,9 @@ class FPDivStage2Mod(FPState, Elaboratable): # last-stage guard/round/sticky and copies mantissa into z. # post-processing stages take care of things from that point. + # NOTE: this phase does NOT do ACTUAL DIV processing, it ONLY + # does "conversion" *out* of the Q/REM last stage + with m.If(~self.i.out_do_z): mw = self.o.z.m_width m.d.comb += [ -- 2.30.2