From 00c68305374c9a8a11de9ae4d5e974a3f49a68b9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 20 Aug 2019 06:56:19 +0100 Subject: [PATCH] update comments --- src/ieee754/part_mul_add/multiply.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ieee754/part_mul_add/multiply.py b/src/ieee754/part_mul_add/multiply.py index 820133a1..4c3a3cf1 100644 --- a/src/ieee754/part_mul_add/multiply.py +++ b/src/ieee754/part_mul_add/multiply.py @@ -395,8 +395,9 @@ class AddReduce(Elaboratable): m.d.comb += adder_i.in1.eq(self._resized_inputs[i + 1]) m.d.comb += adder_i.in2.eq(self._resized_inputs[i + 2]) m.d.comb += adder_i.mask.eq(part_mask) + # add both the sum and the masked-carry to the next level. + # 3 inputs have now been reduced to 2... add_intermediate_term(adder_i.sum) - # mask out carry bits to prevent carries between partitions add_intermediate_term(adder_i.mcarry) # handle the remaining inputs. if len(self.inputs) % FULL_ADDER_INPUT_COUNT == 1: -- 2.30.2