hmmm remove extra zeros on DIV mantissas
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 23 Jul 2019 21:40:45 +0000 (22:40 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 23 Jul 2019 21:40:45 +0000 (22:40 +0100)
src/ieee754/fpdiv/div0.py

index 32d0d17cc8e38b2193400734fc4f9502bb2f27c2..3c6c0b1f45b4306383573f76d6e8ac2fcd3d6bda 100644 (file)
@@ -86,8 +86,8 @@ class FPDivStage0Mod(Elaboratable):
                 am0 = Signal(len(self.i.a.m)+3, reset_less=True)
                 bm0 = Signal(len(self.i.b.m)+3, reset_less=True)
                 m.d.comb += [
-                             am0.eq(Cat(0,0,0,self.i.a.m, 0)),
-                             bm0.eq(Cat(0,0,0,self.i.b.m, 0)),
+                             am0.eq(Cat(self.i.a.m, 0)),
+                             bm0.eq(Cat(self.i.b.m, 0)),
                             ]
 
                 # zero-extend the mantissas (room for sticky/round/guard)