OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mp3/] [lib/] [xilinx/] [unisims/] [MULT18X18.v] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 266 lampret
// $Header: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/mp3/lib/xilinx/unisims/MULT18X18.v,v 1.1.1.1 2001-11-04 18:59:49 lampret Exp $
2
 
3
/*
4
 
5
FUNCTION        : 18X18 Signed Multiplier
6
 
7
*/
8
 
9
`timescale  100 ps / 10 ps
10
 
11
`celldefine
12
 
13
module MULT18X18 (P, A, B);
14
 
15
    parameter cds_action = "ignore";
16
 
17
    output [35:0] P;
18
 
19
    input  [17:0] A;
20
    input  [17:0] B;
21
 
22
    wire [35:0] a_in, b_in;
23
    reg [35:0] p_out;
24
    wire p0_out, p1_out, p2_out, p3_out, p4_out, p5_out, p6_out, p7_out, p8_out, p9_out, p10_out, p11_out, p12_out, p13_out, p14_out, p15_out, p16_out, p17_out, p18_out, p19_out, p20_out, p21_out, p22_out, p23_out, p24_out, p25_out, p26_out, p27_out, p28_out, p29_out, p30_out, p31_out, p32_out, p33_out, p34_out, p35_out;
25
 
26
    buf A0 (a_in[0], A[0]);
27
    buf A1 (a_in[1], A[1]);
28
    buf A2 (a_in[2], A[2]);
29
    buf A3 (a_in[3], A[3]);
30
    buf A4 (a_in[4], A[4]);
31
    buf A5 (a_in[5], A[5]);
32
    buf A6 (a_in[6], A[6]);
33
    buf A7 (a_in[7], A[7]);
34
    buf A8 (a_in[8], A[8]);
35
    buf A9 (a_in[9], A[9]);
36
    buf A10 (a_in[10], A[10]);
37
    buf A11 (a_in[11], A[11]);
38
    buf A12 (a_in[12], A[12]);
39
    buf A13 (a_in[13], A[13]);
40
    buf A14 (a_in[14], A[14]);
41
    buf A15 (a_in[15], A[15]);
42
    buf A16 (a_in[16], A[16]);
43
    buf A17 (a_in[17], A[17]);
44
    buf A18 (a_in[18], A[17]);
45
    buf A19 (a_in[19], A[17]);
46
    buf A20 (a_in[20], A[17]);
47
    buf A21 (a_in[21], A[17]);
48
    buf A22 (a_in[22], A[17]);
49
    buf A23 (a_in[23], A[17]);
50
    buf A24 (a_in[24], A[17]);
51
    buf A25 (a_in[25], A[17]);
52
    buf A26 (a_in[26], A[17]);
53
    buf A27 (a_in[27], A[17]);
54
    buf A28 (a_in[28], A[17]);
55
    buf A29 (a_in[29], A[17]);
56
    buf A30 (a_in[30], A[17]);
57
    buf A31 (a_in[31], A[17]);
58
    buf A32 (a_in[32], A[17]);
59
    buf A33 (a_in[33], A[17]);
60
    buf A34 (a_in[34], A[17]);
61
    buf A35 (a_in[35], A[17]);
62
    buf B0 (b_in[0], B[0]);
63
    buf B1 (b_in[1], B[1]);
64
    buf B2 (b_in[2], B[2]);
65
    buf B3 (b_in[3], B[3]);
66
    buf B4 (b_in[4], B[4]);
67
    buf B5 (b_in[5], B[5]);
68
    buf B6 (b_in[6], B[6]);
69
    buf B7 (b_in[7], B[7]);
70
    buf B8 (b_in[8], B[8]);
71
    buf B9 (b_in[9], B[9]);
72
    buf B10 (b_in[10], B[10]);
73
    buf B11 (b_in[11], B[11]);
74
    buf B12 (b_in[12], B[12]);
75
    buf B13 (b_in[13], B[13]);
76
    buf B14 (b_in[14], B[14]);
77
    buf B15 (b_in[15], B[15]);
78
    buf B16 (b_in[16], B[16]);
79
    buf B17 (b_in[17], B[17]);
80
    buf B18 (b_in[18], B[17]);
81
    buf B19 (b_in[19], B[17]);
82
    buf B20 (b_in[20], B[17]);
83
    buf B21 (b_in[21], B[17]);
84
    buf B22 (b_in[22], B[17]);
85
    buf B23 (b_in[23], B[17]);
86
    buf B24 (b_in[24], B[17]);
87
    buf B25 (b_in[25], B[17]);
88
    buf B26 (b_in[26], B[17]);
89
    buf B27 (b_in[27], B[17]);
90
    buf B28 (b_in[28], B[17]);
91
    buf B29 (b_in[29], B[17]);
92
    buf B30 (b_in[30], B[17]);
93
    buf B31 (b_in[31], B[17]);
94
    buf B32 (b_in[32], B[17]);
95
    buf B33 (b_in[33], B[17]);
96
    buf B34 (b_in[34], B[17]);
97
    buf B35 (b_in[35], B[17]);
98
    buf P0 (P[0], p0_out);
99
    buf P1 (P[1], p1_out);
100
    buf P2 (P[2], p2_out);
101
    buf P3 (P[3], p3_out);
102
    buf P4 (P[4], p4_out);
103
    buf P5 (P[5], p5_out);
104
    buf P6 (P[6], p6_out);
105
    buf P7 (P[7], p7_out);
106
    buf P8 (P[8], p8_out);
107
    buf P9 (P[9], p9_out);
108
    buf P10 (P[10], p10_out);
109
    buf P11 (P[11], p11_out);
110
    buf P12 (P[12], p12_out);
111
    buf P13 (P[13], p13_out);
112
    buf P14 (P[14], p14_out);
113
    buf P15 (P[15], p15_out);
114
    buf P16 (P[16], p16_out);
115
    buf P17 (P[17], p17_out);
116
    buf P18 (P[18], p18_out);
117
    buf P19 (P[19], p19_out);
118
    buf P20 (P[20], p20_out);
119
    buf P21 (P[21], p21_out);
120
    buf P22 (P[22], p22_out);
121
    buf P23 (P[23], p23_out);
122
    buf P24 (P[24], p24_out);
123
    buf P25 (P[25], p25_out);
124
    buf P26 (P[26], p26_out);
125
    buf P27 (P[27], p27_out);
126
    buf P28 (P[28], p28_out);
127
    buf P29 (P[29], p29_out);
128
    buf P30 (P[30], p30_out);
129
    buf P31 (P[31], p31_out);
130
    buf P32 (P[32], p32_out);
131
    buf P33 (P[33], p33_out);
132
    buf P34 (P[34], p34_out);
133
    buf P35 (P[35], p35_out);
134
 
135
    assign {p35_out, p34_out, p33_out, p32_out, p31_out, p30_out, p29_out, p28_out, p27_out, p26_out, p25_out, p24_out, p23_out, p22_out, p21_out, p20_out, p19_out, p18_out, p17_out, p16_out, p15_out, p14_out, p13_out, p12_out, p11_out, p10_out, p9_out, p8_out, p7_out, p6_out, p5_out, p4_out, p3_out, p2_out, p1_out, p0_out} = a_in * b_in;
136
 
137
    specify
138
        (A *> P) = (1, 1);
139
        (B *> P) = (1, 1);
140
    endspecify
141
 
142
endmodule
143
 
144
`endcelldefine

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.