always add FinalAdd module
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 21 Aug 2019 15:11:12 +0000 (16:11 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 21 Aug 2019 15:11:12 +0000 (16:11 +0100)
src/ieee754/part_mul_add/multiply.py

index dada137fd0d63e83b8609770549a0dd8c1d11aa5..2771e882d08c382df70e5523e6d843b0d1027189 100644 (file)
@@ -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