Skip to content

Commit 528f696

Browse files
committed
mcm: comment on manual multiplication
1 parent c98ba76 commit 528f696

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

misoc/cores/duc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ def __init__(self, width, constants):
212212
assert range(n) == constants
213213

214214
ctx = self.sync if n > 8 else self.comb
215+
216+
# manually generated multiplication for small numbers,
217+
# if you use "x*y" Vivado will use a DSP48E1 instead
215218
if n > 0:
216219
ctx += o[0].eq(0)
217220
if n > 1:

0 commit comments

Comments
 (0)