projects
/
nmigen-gf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff7c0c5
)
sigh
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 7 Apr 2022 13:44:26 +0000
(14:44 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 7 Apr 2022 13:44:26 +0000
(14:44 +0100)
src/nmigen_gf/hdl/clmul.py
patch
|
blob
|
history
diff --git
a/src/nmigen_gf/hdl/clmul.py
b/src/nmigen_gf/hdl/clmul.py
index c332575a673843481dc847b5042113fc3bd510bf..103fc08d68c5aca21c2cc12946203ae0c130419e 100644
(file)
--- 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 += part
s
.eq((self.factor1 & mask) << shift)
- parts.append(part
s
)
+ m.d.comb += part
_prod
.eq((self.factor1 & mask) << shift)
+ parts.append(part
_prod
)
# TODO comment
output = treereduce(parts, operator.xor)