From c41956fcc77cd9836022dbb5c3b12001b1186677 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 17 Aug 2019 09:02:32 +0100 Subject: [PATCH] whoops use already-used list --- src/ieee754/part_mul_add/multiply.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ieee754/part_mul_add/multiply.py b/src/ieee754/part_mul_add/multiply.py index 6e2596be..94986723 100644 --- a/src/ieee754/part_mul_add/multiply.py +++ b/src/ieee754/part_mul_add/multiply.py @@ -514,16 +514,16 @@ class Mul8_16_32_64(Elaboratable): for a_index in range(8): for b_index in range(8): - terms = [] + tl = [] min_index = min(a_index, b_index) max_index = max(a_index, b_index) for i in range(min_index, max_index): pbs = Signal(reset_less=True) m.d.comb += pbs.eq(self._part_byte(i)) - terms.append(pbs) + tl.append(pbs) name = "te_%d_%d" % (a_index, b_index) term_enabled = Signal(name=name, reset_less=True) - m.d.comb += term_enabled.eq(~(Cat(*terms).bool())) + m.d.comb += term_enabled.eq(~(Cat(*tl).bool())) add_term(products[a_index][b_index], 8 * (a_index + b_index), term_enabled) -- 2.30.2