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

Subversion Repositories csa

[/] [csa/] [trunk/] [rtl/] [stream_8bytes.v] - Blame information for rev 30

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

Line No. Rev Author Line
1 20 simon111
 
2
 
3
// this module do 8bytes iteration
4
 
5
module stream_8bytes(
6
                                init,sb,
7
                                Ai,Bi,Di,Ei,Fi,Xi,Yi,Zi,pi,qi,ri,
8
                                Ao,Bo,Do,Eo,Fo,Xo,Yo,Zo,po,qo,ro,
9
                                cb
10
                        );
11
input            init;
12
input [8*8-1 :0] sb;
13
 
14
input [10*4-1:0] Ai;
15
input [10*4-1:0] Bi;
16
input [3     :0] Di;
17
input [3     :0] Ei;
18
input [3     :0] Fi;
19
input [3     :0] Xi;
20
input [3     :0] Yi;
21
input [3     :0] Zi;
22
input            pi;
23
input            qi;
24
input            ri;
25
 
26
output [10*4-1:0] Ao;
27
output [10*4-1:0] Bo;
28
output [3     :0] Do;
29
output [3     :0] Eo;
30
output [3     :0] Fo;
31
output [3     :0] Xo;
32
output [3     :0] Yo;
33
output [3     :0] Zo;
34
output            po;
35
output            qo;
36
output            ro;
37
 
38
output [8*8-1 :0] cb;
39
 
40
wire  [10*4-1:0] A1;
41
wire  [10*4-1:0] B1;
42
wire  [3     :0] D1;
43
wire  [3     :0] E1;
44
wire  [3     :0] F1;
45
wire  [3     :0] X1;
46
wire  [3     :0] Y1;
47
wire  [3     :0] Z1;
48
wire             p1;
49
wire             q1;
50
wire             r1;
51
 
52
wire  [10*4-1:0] A2;
53
wire  [10*4-1:0] B2;
54
wire  [3     :0] D2;
55
wire  [3     :0] E2;
56
wire  [3     :0] F2;
57
wire  [3     :0] X2;
58
wire  [3     :0] Y2;
59
wire  [3     :0] Z2;
60
wire             p2;
61
wire             q2;
62
wire             r2;
63
 
64
wire  [10*4-1:0] A3;
65
wire  [10*4-1:0] B3;
66
wire  [3     :0] D3;
67
wire  [3     :0] E3;
68
wire  [3     :0] F3;
69
wire  [3     :0] X3;
70
wire  [3     :0] Y3;
71
wire  [3     :0] Z3;
72
wire             p3;
73
wire             q3;
74
wire             r3;
75
 
76
wire  [10*4-1:0] A4;
77
wire  [10*4-1:0] B4;
78
wire  [3     :0] D4;
79
wire  [3     :0] E4;
80
wire  [3     :0] F4;
81
wire  [3     :0] X4;
82
wire  [3     :0] Y4;
83
wire  [3     :0] Z4;
84
wire             p4;
85
wire             q4;
86
wire             r4;
87
 
88
wire  [10*4-1:0] A5;
89
wire  [10*4-1:0] B5;
90
wire  [3     :0] D5;
91
wire  [3     :0] E5;
92
wire  [3     :0] F5;
93
wire  [3     :0] X5;
94
wire  [3     :0] Y5;
95
wire  [3     :0] Z5;
96
wire             p5;
97
wire             q5;
98
wire             r5;
99
 
100
wire  [10*4-1:0] A6;
101
wire  [10*4-1:0] B6;
102
wire  [3     :0] D6;
103
wire  [3     :0] E6;
104
wire  [3     :0] F6;
105
wire  [3     :0] X6;
106
wire  [3     :0] Y6;
107
wire  [3     :0] Z6;
108
wire             p6;
109
wire             q6;
110
wire             r6;
111
 
112
wire  [10*4-1:0] A7;
113
wire  [10*4-1:0] B7;
114
wire  [3     :0] D7;
115
wire  [3     :0] E7;
116
wire  [3     :0] F7;
117
wire  [3     :0] X7;
118
wire  [3     :0] Y7;
119
wire  [3     :0] Z7;
120
wire             p7;
121
wire             q7;
122
wire             r7;
123
 
124
stream_byte b1(
125
                         .init(init)
126
                        ,.sb  (sb[8*1-1:8*0])
127
                        ,.Ai  (Ai)
128
                        ,.Bi  (Bi)
129
                        ,.Di  (Di)
130
                        ,.Ei  (Ei)
131
                        ,.Fi  (Fi)
132
                        ,.Xi  (Xi)
133
                        ,.Yi  (Yi)
134
                        ,.Zi  (Zi)
135
                        ,.pi  (pi)
136
                        ,.qi  (qi)
137
                        ,.ri  (ri)
138
                        ,.Ao  (A1)
139
                        ,.Bo  (B1)
140
                        ,.Do  (D1)
141
                        ,.Eo  (E1)
142
                        ,.Fo  (F1)
143
                        ,.Xo  (X1)
144
                        ,.Yo  (Y1)
145
                        ,.Zo  (Z1)
146
                        ,.po  (p1)
147
                        ,.qo  (q1)
148
                        ,.ro  (r1)
149
                        ,.op  (cb[8*1-1:8*0])
150
                );
151
 
152
stream_byte b2(
153
                         .init(init)
154
                        ,.sb  (sb[8*2-1:8*1])
155
                        ,.Ai  (A1)
156
                        ,.Bi  (B1)
157
                        ,.Di  (D1)
158
                        ,.Ei  (E1)
159
                        ,.Fi  (F1)
160
                        ,.Xi  (X1)
161
                        ,.Yi  (Y1)
162
                        ,.Zi  (Z1)
163
                        ,.pi  (p1)
164
                        ,.qi  (q1)
165
                        ,.ri  (r1)
166
                        ,.Ao  (A2)
167
                        ,.Bo  (B2)
168
                        ,.Do  (D2)
169
                        ,.Eo  (E2)
170
                        ,.Fo  (F2)
171
                        ,.Xo  (X2)
172
                        ,.Yo  (Y2)
173
                        ,.Zo  (Z2)
174
                        ,.po  (p2)
175
                        ,.qo  (q2)
176
                        ,.ro  (r2)
177
                        ,.op  (cb[8*2-1:8*1])
178
                );
179
 
180
stream_byte b3(
181
                         .init(init)
182
                        ,.sb  (sb[8*3-1:8*2])
183
                        ,.Ai  (A2)
184
                        ,.Bi  (B2)
185
                        ,.Di  (D2)
186
                        ,.Ei  (E2)
187
                        ,.Fi  (F2)
188
                        ,.Xi  (X2)
189
                        ,.Yi  (Y2)
190
                        ,.Zi  (Z2)
191
                        ,.pi  (p2)
192
                        ,.qi  (q2)
193
                        ,.ri  (r2)
194
                        ,.Ao  (A3)
195
                        ,.Bo  (B3)
196
                        ,.Do  (D3)
197
                        ,.Eo  (E3)
198
                        ,.Fo  (F3)
199
                        ,.Xo  (X3)
200
                        ,.Yo  (Y3)
201
                        ,.Zo  (Z3)
202
                        ,.po  (p3)
203
                        ,.qo  (q3)
204
                        ,.ro  (r3)
205
                        ,.op  (cb[8*3-1:8*2])
206
                );
207
 
208
stream_byte b4(
209
                         .init(init)
210
                        ,.sb  (sb[8*4-1:8*3])
211
                        ,.Ai  (A3)
212
                        ,.Bi  (B3)
213
                        ,.Di  (D3)
214
                        ,.Ei  (E3)
215
                        ,.Fi  (F3)
216
                        ,.Xi  (X3)
217
                        ,.Yi  (Y3)
218
                        ,.Zi  (Z3)
219
                        ,.pi  (p3)
220
                        ,.qi  (q3)
221
                        ,.ri  (r3)
222
                        ,.Ao  (A4)
223
                        ,.Bo  (B4)
224
                        ,.Do  (D4)
225
                        ,.Eo  (E4)
226
                        ,.Fo  (F4)
227
                        ,.Xo  (X4)
228
                        ,.Yo  (Y4)
229
                        ,.Zo  (Z4)
230
                        ,.po  (p4)
231
                        ,.qo  (q4)
232
                        ,.ro  (r4)
233
                        ,.op  (cb[8*4-1:8*3])
234
                );
235
 
236
stream_byte b5(
237
                         .init(init)
238
                        ,.sb  (sb[8*5-1:8*4])
239
                        ,.Ai  (A4)
240
                        ,.Bi  (B4)
241
                        ,.Di  (D4)
242
                        ,.Ei  (E4)
243
                        ,.Fi  (F4)
244
                        ,.Xi  (X4)
245
                        ,.Yi  (Y4)
246
                        ,.Zi  (Z4)
247
                        ,.pi  (p4)
248
                        ,.qi  (q4)
249
                        ,.ri  (r4)
250
                        ,.Ao  (A5)
251
                        ,.Bo  (B5)
252
                        ,.Do  (D5)
253
                        ,.Eo  (E5)
254
                        ,.Fo  (F5)
255
                        ,.Xo  (X5)
256
                        ,.Yo  (Y5)
257
                        ,.Zo  (Z5)
258
                        ,.po  (p5)
259
                        ,.qo  (q5)
260
                        ,.ro  (r5)
261
                        ,.op  (cb[8*5-1:8*4])
262
                );
263
 
264
stream_byte b6(
265
                         .init(init)
266
                        ,.sb  (sb[8*6-1:8*5])
267
                        ,.Ai  (A5)
268
                        ,.Bi  (B5)
269
                        ,.Di  (D5)
270
                        ,.Ei  (E5)
271
                        ,.Fi  (F5)
272
                        ,.Xi  (X5)
273
                        ,.Yi  (Y5)
274
                        ,.Zi  (Z5)
275
                        ,.pi  (p5)
276
                        ,.qi  (q5)
277
                        ,.ri  (r5)
278
                        ,.Ao  (A6)
279
                        ,.Bo  (B6)
280
                        ,.Do  (D6)
281
                        ,.Eo  (E6)
282
                        ,.Fo  (F6)
283
                        ,.Xo  (X6)
284
                        ,.Yo  (Y6)
285
                        ,.Zo  (Z6)
286
                        ,.po  (p6)
287
                        ,.qo  (q6)
288
                        ,.ro  (r6)
289
                        ,.op  (cb[8*6-1:8*5])
290
                );
291
 
292
stream_byte b7(
293
                         .init(init)
294
                        ,.sb  (sb[8*7-1:8*6])
295
                        ,.Ai  (A6)
296
                        ,.Bi  (B6)
297
                        ,.Di  (D6)
298
                        ,.Ei  (E6)
299
                        ,.Fi  (F6)
300
                        ,.Xi  (X6)
301
                        ,.Yi  (Y6)
302
                        ,.Zi  (Z6)
303
                        ,.pi  (p6)
304
                        ,.qi  (q6)
305
                        ,.ri  (r6)
306
                        ,.Ao  (A7)
307
                        ,.Bo  (B7)
308
                        ,.Do  (D7)
309
                        ,.Eo  (E7)
310
                        ,.Fo  (F7)
311
                        ,.Xo  (X7)
312
                        ,.Yo  (Y7)
313
                        ,.Zo  (Z7)
314
                        ,.po  (p7)
315
                        ,.qo  (q7)
316
                        ,.ro  (r7)
317
                        ,.op  (cb[8*7-1:8*6])
318
                );
319
 
320
stream_byte b8(
321
                         .init(init)
322
                        ,.sb  (sb[8*8-1:8*7])
323
                        ,.Ai  (A7)
324
                        ,.Bi  (B7)
325
                        ,.Di  (D7)
326
                        ,.Ei  (E7)
327
                        ,.Fi  (F7)
328
                        ,.Xi  (X7)
329
                        ,.Yi  (Y7)
330
                        ,.Zi  (Z7)
331
                        ,.pi  (p7)
332
                        ,.qi  (q7)
333
                        ,.ri  (r7)
334
                        ,.Ao  (Ao)
335
                        ,.Bo  (Bo)
336
                        ,.Do  (Do)
337
                        ,.Eo  (Eo)
338
                        ,.Fo  (Fo)
339
                        ,.Xo  (Xo)
340
                        ,.Yo  (Yo)
341
                        ,.Zo  (Zo)
342
                        ,.po  (po)
343
                        ,.qo  (qo)
344
                        ,.ro  (ro)
345
                        ,.op  (cb[8*8-1:8*7])
346
                );
347
 
348
endmodule

powered by: WebSVN 2.1.0

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