From 61b2d414a758e3ba146988f197311e510a1c1b97 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 18 Feb 2019 21:32:20 +0000 Subject: [PATCH] whoops, off-by-one in use of mw, in multiply_1 stage --- src/add/fmul.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add/fmul.py b/src/add/fmul.py index bb508e1a..d7466fc3 100644 --- a/src/add/fmul.py +++ b/src/add/fmul.py @@ -106,9 +106,9 @@ class FPMUL(FPBase): mw = z.m_width m.next = "normalise_1" m.d.sync += [ - z.m.eq(product[mw+3:]), - of.guard.eq(product[mw+2]), - of.round_bit.eq(product[mw+1]), + z.m.eq(product[mw+2:]), + of.guard.eq(product[mw+1]), + of.round_bit.eq(product[mw]), of.sticky.eq(product[0:mw] != 0) ] -- 2.30.2