projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0157043
)
Fix typo in B
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 19 Jul 2019 17:27:44 +0000
(10:27 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Fri, 19 Jul 2019 17:27:44 +0000
(10:27 -0700)
techlibs/common/mul2dsp.v
patch
|
blob
|
history
diff --git
a/techlibs/common/mul2dsp.v
b/techlibs/common/mul2dsp.v
index ee53701eea9c61cd8b985e29b8548e8e3eaaee78..da1c7c0c7f03cde0fafd1a7d0a3b5421d32da6c8 100644
(file)
--- a/
techlibs/common/mul2dsp.v
+++ b/
techlibs/common/mul2dsp.v
@@
-201,7
+201,7
@@
module \$__mul_gen (A, B, Y);
.B(B[B_WIDTH-1 : (n-1)*(`DSP_B_MAXWIDTH-sign_headroom)]),
\r
.Y(partial[n-1])
\r
);
\r
- assign partial_sum[n-1] = (partial[n-1] << (n-1)*(`DSP_
A
_MAXWIDTH-sign_headroom)) + partial_sum[n-2];
\r
+ assign partial_sum[n-1] = (partial[n-1] << (n-1)*(`DSP_
B
_MAXWIDTH-sign_headroom)) + partial_sum[n-2];
\r
assign Y = partial_sum[n-1];
\r
end
\r
else begin
\r