From 924c3fee2f21440de0fb11b30068c85a5db80a9a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 18 Feb 2019 18:18:48 +0000 Subject: [PATCH] product in multiply, not tot (was from add) --- src/add/fmul.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add/fmul.py b/src/add/fmul.py index 65b74bff..4e136f17 100644 --- a/src/add/fmul.py +++ b/src/add/fmul.py @@ -24,7 +24,8 @@ class FPMUL(FPBase): b = FPNum(self.width, False) z = FPNum(self.width, False) - tot = Signal(28) # sticky/round/guard bits, 23 result, 1 overflow + mw = (self.m_width)*2 - 1 + 3 # sticky/round/guard bits + (2*mant) - 1 + product = Signal(mw) of = Overflow() -- 2.30.2