From 570f7aafba157aa96af606218f8ef664c7f04eb0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 17 Aug 2019 09:41:41 +0100 Subject: [PATCH] whoops, a-enabled and b-enabled swapped --- src/ieee754/part_mul_add/multiply.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ieee754/part_mul_add/multiply.py b/src/ieee754/part_mul_add/multiply.py index 31fe9d97..dba87880 100644 --- a/src/ieee754/part_mul_add/multiply.py +++ b/src/ieee754/part_mul_add/multiply.py @@ -575,12 +575,12 @@ class Mul8_16_32_64(Elaboratable): byte_width = 8 // len(parts) bit_width = 8 * byte_width for i in range(len(parts)): - ae = parts[i] & self.a[(i + 1) * bit_width - 1] \ + be = parts[i] & self.a[(i + 1) * bit_width - 1] \ & self._a_signed[i * byte_width] - be = parts[i] & self.b[(i + 1) * bit_width - 1] \ + ae = parts[i] & self.b[(i + 1) * bit_width - 1] \ & self._b_signed[i * byte_width] - a_enabled = Signal(name="a_enabled_%d" % i, reset_less=True) - b_enabled = Signal(name="b_enabled_%d" % i, reset_less=True) + a_enabled = Signal(name="a_en_%d" % i, reset_less=True) + b_enabled = Signal(name="b_en_%d" % i, reset_less=True) m.d.comb += a_enabled.eq(ae) m.d.comb += b_enabled.eq(be) -- 2.30.2