whoops, self.width not self.m_width
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 18 Feb 2019 21:10:07 +0000 (21:10 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 18 Feb 2019 21:10:07 +0000 (21:10 +0000)
src/add/fmul.py

index c5e3f9d253fc2a43382e597e30a786ef4d98fa4f..deb9ffff803c2c0fc64afa6b01acf245ace196b0 100644 (file)
@@ -24,7 +24,7 @@ class FPMUL(FPBase):
         b = FPNum(self.width, False)
         z = FPNum(self.width, False)
 
-        mw = (self.m_width)*2 - 1 + 3 # sticky/round/guard bits + (2*mant) - 1
+        mw = (self.width)*2 - 1 + 3 # sticky/round/guard bits + (2*mant) - 1
         product = Signal(mw)
 
         of = Overflow()