From 5e519d3b7be704117b6f4e58d2fd41205d57fea8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 7 Apr 2022 14:44:26 +0100 Subject: [PATCH] sigh --- src/nmigen_gf/hdl/clmul.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nmigen_gf/hdl/clmul.py b/src/nmigen_gf/hdl/clmul.py index c332575..103fc08 100644 --- a/src/nmigen_gf/hdl/clmul.py +++ b/src/nmigen_gf/hdl/clmul.py @@ -68,8 +68,8 @@ class CLMulAdd(Elaboratable): part_prod = Signal(self.output.width, name=f"part_prod_{shift}") # TODO comment (nice ASCII diagram in docstring then refer to it?) mask = Repl(self.factor2[shift], self.factor_width) - m.d.comb += parts.eq((self.factor1 & mask) << shift) - parts.append(parts) + m.d.comb += part_prod.eq((self.factor1 & mask) << shift) + parts.append(part_prod) # TODO comment output = treereduce(parts, operator.xor) -- 2.30.2