projects
/
yosys.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
INMODE is 5 bits
[yosys.git]
/
techlibs
/
xilinx
/
dsp_map.v
1
module \$__MUL25X18 (input signed [24:0] A, input signed [17:0] B, output signed [42:0] Y);
2
parameter A_SIGNED = 0;
3
parameter B_SIGNED = 0;
4
parameter A_WIDTH = 0;
5
parameter B_WIDTH = 0;
6
parameter Y_WIDTH = 0;
7
8
wire [47:0] P_48;
9
DSP48E1 #(
10
// Disable all registers
11
.ACASCREG(0),
12
.ADREG(0),
13
.A_INPUT("DIRECT"),
14
.ALUMODEREG(0),
15
.AREG(0),
16
.BCASCREG(0),
17
.B_INPUT("DIRECT"),
18
.BREG(0),
19
.CARRYINREG(0),
20
.CARRYINSELREG(0),
21
.CREG(0),
22
.DREG(0),
23
.INMODEREG(0),
24
.MREG(0),
25
.OPMODEREG(0),
26
.PREG(0)
27
) _TECHMAP_REPLACE_ (
28
//Data path
29
.A({{5{A[24]}}, A}),
30
.B(B),
31
.C(48'b0),
32
.D(24'b0),
33
.P(P_48),
34
35
.INMODE(5'b00000),
36
.ALUMODE(4'b0000),
37
.OPMODE(7'b000101),
38
.CARRYINSEL(3'b000),
39
40
.ACIN(30'b0),
41
.BCIN(18'b0),
42
.PCIN(48'b0),
43
.CARRYIN(1'b0)
44
);
45
assign Y = P_48;
46
endmodule