mul2dsp to create cells that can be interchanged with $mul

This commit is contained in:
Eddie Hung 2019-07-18 15:37:35 -07:00
parent 802470746c
commit 2339b7fc37
1 changed files with 7 additions and 1 deletions

View File

@ -214,7 +214,13 @@ module \$__mul_gen (A, B, Y);
else
wire [`DSP_B_MAXWIDTH-1:0] Bext = B;
`DSP_NAME _TECHMAP_REPLACE_ (
`DSP_NAME #(
.A_SIGNED(A_SIGNED),
.B_SIGNED(B_SIGNED),
.A_WIDTH(`DSP_A_MAXWIDTH),
.B_WIDTH(`DSP_B_MAXWIDTH),
.Y_WIDTH(`DSP_A_MAXWIDTH+`DSP_B_MAXWIDTH),
) _TECHMAP_REPLACE_ (
.A(Aext),
.B(Bext),
.Y(Y)