projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a423863
)
Remove unnecessary check for A_SIGNED != B_SIGNED; be more explicit
author
Eddie Hung
<eddie@fpgeh.com>
Thu, 26 Sep 2019 00:26:47 +0000
(17:26 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Thu, 26 Sep 2019 00:26:47 +0000
(17:26 -0700)
techlibs/common/mul2dsp.v
patch
|
blob
|
history
diff --git
a/techlibs/common/mul2dsp.v
b/techlibs/common/mul2dsp.v
index 3ca69b7b1ab2817a72d9a589f6959c57658270bb..9932e288f49f9df8367c1a3db6fd9e6ae1429c7b 100644
(file)
--- a/
techlibs/common/mul2dsp.v
+++ b/
techlibs/common/mul2dsp.v
@@
-77,10
+77,8
@@
module _80_mul (A, B, Y);
else if (Y_WIDTH < `DSP_Y_MINWIDTH)
\r
wire _TECHMAP_FAIL_ = 1;
\r
`endif
\r
- else if (_TECHMAP_CELLTYPE_ == "$mul" && A_SIGNED != B_SIGNED)
\r
- wire _TECHMAP_FAIL_ = 1;
\r
`ifdef DSP_SIGNEDONLY
\r
- else if (_TECHMAP_CELLTYPE_ == "$mul" && !A_SIGNED)
\r
+ else if (_TECHMAP_CELLTYPE_ == "$mul" && !A_SIGNED
&& !B_SIGNED
)
\r
\$mul #(
\r
.A_SIGNED(1),
\r
.B_SIGNED(1),
\r