From: Luke Kenneth Casson Leighton Date: Mon, 22 Jul 2019 10:32:54 +0000 (+0100) Subject: put am0 into top bits of dividend X-Git-Tag: ls180-24jan2020~773 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac21363a49dfd4b297e2f5c05f2141fb23d4104d;p=ieee754fpu.git put am0 into top bits of dividend --- diff --git a/src/ieee754/fpdiv/div0.py b/src/ieee754/fpdiv/div0.py index eb786ad3..4bd12cb2 100644 --- a/src/ieee754/fpdiv/div0.py +++ b/src/ieee754/fpdiv/div0.py @@ -71,7 +71,7 @@ class FPDivStage0Mod(Elaboratable): m.d.comb += [self.o.z.e.eq(self.i.a.e - self.i.b.e + 1), self.o.z.s.eq(self.i.a.s ^ self.i.b.s), - self.o.dividend.eq(am0), # TODO: check + self.o.dividend[-len(am0):].eq(am0), # TODO: check self.o.divisor_radicand.eq(bm0), # TODO: check self.o.operation.eq(Const(0)) # TODO check: DIV ]