From: Luke Kenneth Casson Leighton Date: Thu, 7 Apr 2022 13:44:26 +0000 (+0100) Subject: sigh X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e519d3b7be704117b6f4e58d2fd41205d57fea8;p=nmigen-gf.git sigh --- 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)