From 88bb34cd8fb4c6428e26afc6a24351c3e841fd39 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 21 Aug 2019 16:11:12 +0100 Subject: [PATCH] always add FinalAdd module --- src/ieee754/part_mul_add/multiply.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ieee754/part_mul_add/multiply.py b/src/ieee754/part_mul_add/multiply.py index dada137f..2771e882 100644 --- a/src/ieee754/part_mul_add/multiply.py +++ b/src/ieee754/part_mul_add/multiply.py @@ -585,10 +585,9 @@ class AddReduce(Elaboratable): if len(groups) == 0: break - if ilen != 0: - next_level = FinalAdd(ilen, self.output_width, n_parts, - next_levels, partition_points) - mods.append(next_level) + next_level = FinalAdd(ilen, self.output_width, n_parts, + next_levels, partition_points) + mods.append(next_level) self.levels = mods -- 2.30.2