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

Subversion Repositories reed_solomon_codec_generator

[/] [reed_solomon_codec_generator/] [trunk/] [example/] [rtl/] [RsDecodeShiftOmega.v] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 issei
//===================================================================
2
// Module Name : RsDecodeShiftOmega
3
// File Name   : RsDecodeShiftOmega.v
4
// Function    : Rs Decoder Shift Omega Module
5
// 
6
// Revision History:
7
// Date          By           Version    Change Description
8
//===================================================================
9
// 2009/02/03  Gael Sapience     1.0       Original
10
//
11
//===================================================================
12
// (C) COPYRIGHT 2009 SYSTEM LSI CO., Ltd.
13
//
14
 
15
 
16
module RsDecodeShiftOmega(
17
   omega_0,           // omega polynom 0
18
   omega_1,           // omega polynom 1
19
   omega_2,           // omega polynom 2
20
   omega_3,           // omega polynom 3
21
   omega_4,           // omega polynom 4
22
   omega_5,           // omega polynom 5
23
   omega_6,           // omega polynom 6
24
   omega_7,           // omega polynom 7
25
   omega_8,           // omega polynom 8
26
   omega_9,           // omega polynom 9
27
   omega_10,          // omega polynom 10
28
   omega_11,          // omega polynom 11
29
   omega_12,          // omega polynom 12
30
   omega_13,          // omega polynom 13
31
   omega_14,          // omega polynom 14
32
   omega_15,          // omega polynom 15
33
   omega_16,          // omega polynom 16
34
   omega_17,          // omega polynom 17
35
   omega_18,          // omega polynom 18
36
   omega_19,          // omega polynom 19
37
   omega_20,          // omega polynom 20
38
   omega_21,          // omega polynom 21
39
   omegaShifted_0,    // omega shifted polynom 0
40
   omegaShifted_1,    // omega shifted polynom 1
41
   omegaShifted_2,    // omega shifted polynom 2
42
   omegaShifted_3,    // omega shifted polynom 3
43
   omegaShifted_4,    // omega shifted polynom 4
44
   omegaShifted_5,    // omega shifted polynom 5
45
   omegaShifted_6,    // omega shifted polynom 6
46
   omegaShifted_7,    // omega shifted polynom 7
47
   omegaShifted_8,    // omega shifted polynom 8
48
   omegaShifted_9,    // omega shifted polynom 9
49
   omegaShifted_10,   // omega shifted polynom 10
50
   omegaShifted_11,   // omega shifted polynom 11
51
   omegaShifted_12,   // omega shifted polynom 12
52
   omegaShifted_13,   // omega shifted polynom 13
53
   omegaShifted_14,   // omega shifted polynom 14
54
   omegaShifted_15,   // omega shifted polynom 15
55
   omegaShifted_16,   // omega shifted polynom 16
56
   omegaShifted_17,   // omega shifted polynom 17
57
   omegaShifted_18,   // omega shifted polynom 18
58
   omegaShifted_19,   // omega shifted polynom 19
59
   omegaShifted_20,   // omega shifted polynom 20
60
   omegaShifted_21,   // omega shifted polynom 21
61
   numShifted         // shift amount
62
);
63
 
64
 
65
   input [7:0] omega_0;            // omega polynom 0
66
   input [7:0] omega_1;            // omega polynom 1
67
   input [7:0] omega_2;            // omega polynom 2
68
   input [7:0] omega_3;            // omega polynom 3
69
   input [7:0] omega_4;            // omega polynom 4
70
   input [7:0] omega_5;            // omega polynom 5
71
   input [7:0] omega_6;            // omega polynom 6
72
   input [7:0] omega_7;            // omega polynom 7
73
   input [7:0] omega_8;            // omega polynom 8
74
   input [7:0] omega_9;            // omega polynom 9
75
   input [7:0] omega_10;           // omega polynom 10
76
   input [7:0] omega_11;           // omega polynom 11
77
   input [7:0] omega_12;           // omega polynom 12
78
   input [7:0] omega_13;           // omega polynom 13
79
   input [7:0] omega_14;           // omega polynom 14
80
   input [7:0] omega_15;           // omega polynom 15
81
   input [7:0] omega_16;           // omega polynom 16
82
   input [7:0] omega_17;           // omega polynom 17
83
   input [7:0] omega_18;           // omega polynom 18
84
   input [7:0] omega_19;           // omega polynom 19
85
   input [7:0] omega_20;           // omega polynom 20
86
   input [7:0] omega_21;           // omega polynom 21
87
   input [4:0] numShifted;         // shift amount
88
 
89
   output [7:0] omegaShifted_0;    // omega shifted polynom 0
90
   output [7:0] omegaShifted_1;    // omega shifted polynom 1
91
   output [7:0] omegaShifted_2;    // omega shifted polynom 2
92
   output [7:0] omegaShifted_3;    // omega shifted polynom 3
93
   output [7:0] omegaShifted_4;    // omega shifted polynom 4
94
   output [7:0] omegaShifted_5;    // omega shifted polynom 5
95
   output [7:0] omegaShifted_6;    // omega shifted polynom 6
96
   output [7:0] omegaShifted_7;    // omega shifted polynom 7
97
   output [7:0] omegaShifted_8;    // omega shifted polynom 8
98
   output [7:0] omegaShifted_9;    // omega shifted polynom 9
99
   output [7:0] omegaShifted_10;   // omega shifted polynom 10
100
   output [7:0] omegaShifted_11;   // omega shifted polynom 11
101
   output [7:0] omegaShifted_12;   // omega shifted polynom 12
102
   output [7:0] omegaShifted_13;   // omega shifted polynom 13
103
   output [7:0] omegaShifted_14;   // omega shifted polynom 14
104
   output [7:0] omegaShifted_15;   // omega shifted polynom 15
105
   output [7:0] omegaShifted_16;   // omega shifted polynom 16
106
   output [7:0] omegaShifted_17;   // omega shifted polynom 17
107
   output [7:0] omegaShifted_18;   // omega shifted polynom 18
108
   output [7:0] omegaShifted_19;   // omega shifted polynom 19
109
   output [7:0] omegaShifted_20;   // omega shifted polynom 20
110
   output [7:0] omegaShifted_21;   // omega shifted polynom 21
111
 
112
 
113
 
114
   //------------------------------------------------------------------------
115
   //+ omegaShifted_0,..., omegaShifted_21
116
   //- omegaShifted registers
117
   //------------------------------------------------------------------------
118
   reg [7:0]   omegaShiftedInner_0;
119
   reg [7:0]   omegaShiftedInner_1;
120
   reg [7:0]   omegaShiftedInner_2;
121
   reg [7:0]   omegaShiftedInner_3;
122
   reg [7:0]   omegaShiftedInner_4;
123
   reg [7:0]   omegaShiftedInner_5;
124
   reg [7:0]   omegaShiftedInner_6;
125
   reg [7:0]   omegaShiftedInner_7;
126
   reg [7:0]   omegaShiftedInner_8;
127
   reg [7:0]   omegaShiftedInner_9;
128
   reg [7:0]   omegaShiftedInner_10;
129
   reg [7:0]   omegaShiftedInner_11;
130
   reg [7:0]   omegaShiftedInner_12;
131
   reg [7:0]   omegaShiftedInner_13;
132
   reg [7:0]   omegaShiftedInner_14;
133
   reg [7:0]   omegaShiftedInner_15;
134
   reg [7:0]   omegaShiftedInner_16;
135
   reg [7:0]   omegaShiftedInner_17;
136
   reg [7:0]   omegaShiftedInner_18;
137
   reg [7:0]   omegaShiftedInner_19;
138
   reg [7:0]   omegaShiftedInner_20;
139
   reg [7:0]   omegaShiftedInner_21;
140
 
141
 
142
   always @ (numShifted or omega_0 or omega_1 or omega_2 or omega_3 or omega_4 or omega_5 or omega_6 or omega_7 or omega_8 or omega_9 or omega_10 or omega_11 or omega_12 or omega_13 or omega_14 or omega_15 or omega_16 or omega_17 or omega_18 or omega_19 or omega_20 or omega_21 ) begin
143
      case (numShifted)
144
         (5'd0): begin
145
            omegaShiftedInner_0 [7:0]  = omega_0 [7:0];
146
            omegaShiftedInner_1 [7:0]  = omega_1 [7:0];
147
            omegaShiftedInner_2 [7:0]  = omega_2 [7:0];
148
            omegaShiftedInner_3 [7:0]  = omega_3 [7:0];
149
            omegaShiftedInner_4 [7:0]  = omega_4 [7:0];
150
            omegaShiftedInner_5 [7:0]  = omega_5 [7:0];
151
            omegaShiftedInner_6 [7:0]  = omega_6 [7:0];
152
            omegaShiftedInner_7 [7:0]  = omega_7 [7:0];
153
            omegaShiftedInner_8 [7:0]  = omega_8 [7:0];
154
            omegaShiftedInner_9 [7:0]  = omega_9 [7:0];
155
            omegaShiftedInner_10 [7:0] = omega_10 [7:0];
156
            omegaShiftedInner_11 [7:0] = omega_11 [7:0];
157
            omegaShiftedInner_12 [7:0] = omega_12 [7:0];
158
            omegaShiftedInner_13 [7:0] = omega_13 [7:0];
159
            omegaShiftedInner_14 [7:0] = omega_14 [7:0];
160
            omegaShiftedInner_15 [7:0] = omega_15 [7:0];
161
            omegaShiftedInner_16 [7:0] = omega_16 [7:0];
162
            omegaShiftedInner_17 [7:0] = omega_17 [7:0];
163
            omegaShiftedInner_18 [7:0] = omega_18 [7:0];
164
            omegaShiftedInner_19 [7:0] = omega_19 [7:0];
165
            omegaShiftedInner_20 [7:0] = omega_20 [7:0];
166
            omegaShiftedInner_21 [7:0] = omega_21 [7:0];
167
         end
168
         (5'd1): begin
169
            omegaShiftedInner_0 [7:0]  = omega_1 [7:0];
170
            omegaShiftedInner_1 [7:0]  = omega_2 [7:0];
171
            omegaShiftedInner_2 [7:0]  = omega_3 [7:0];
172
            omegaShiftedInner_3 [7:0]  = omega_4 [7:0];
173
            omegaShiftedInner_4 [7:0]  = omega_5 [7:0];
174
            omegaShiftedInner_5 [7:0]  = omega_6 [7:0];
175
            omegaShiftedInner_6 [7:0]  = omega_7 [7:0];
176
            omegaShiftedInner_7 [7:0]  = omega_8 [7:0];
177
            omegaShiftedInner_8 [7:0]  = omega_9 [7:0];
178
            omegaShiftedInner_9 [7:0]  = omega_10 [7:0];
179
            omegaShiftedInner_10 [7:0] = omega_11 [7:0];
180
            omegaShiftedInner_11 [7:0] = omega_12 [7:0];
181
            omegaShiftedInner_12 [7:0] = omega_13 [7:0];
182
            omegaShiftedInner_13 [7:0] = omega_14 [7:0];
183
            omegaShiftedInner_14 [7:0] = omega_15 [7:0];
184
            omegaShiftedInner_15 [7:0] = omega_16 [7:0];
185
            omegaShiftedInner_16 [7:0] = omega_17 [7:0];
186
            omegaShiftedInner_17 [7:0] = omega_18 [7:0];
187
            omegaShiftedInner_18 [7:0] = omega_19 [7:0];
188
            omegaShiftedInner_19 [7:0] = omega_20 [7:0];
189
            omegaShiftedInner_20 [7:0] = omega_21 [7:0];
190
            omegaShiftedInner_21 [7:0] = 8'd0;
191
         end
192
         (5'd2): begin
193
            omegaShiftedInner_0 [7:0]  = omega_2 [7:0];
194
            omegaShiftedInner_1 [7:0]  = omega_3 [7:0];
195
            omegaShiftedInner_2 [7:0]  = omega_4 [7:0];
196
            omegaShiftedInner_3 [7:0]  = omega_5 [7:0];
197
            omegaShiftedInner_4 [7:0]  = omega_6 [7:0];
198
            omegaShiftedInner_5 [7:0]  = omega_7 [7:0];
199
            omegaShiftedInner_6 [7:0]  = omega_8 [7:0];
200
            omegaShiftedInner_7 [7:0]  = omega_9 [7:0];
201
            omegaShiftedInner_8 [7:0]  = omega_10 [7:0];
202
            omegaShiftedInner_9 [7:0]  = omega_11 [7:0];
203
            omegaShiftedInner_10 [7:0] = omega_12 [7:0];
204
            omegaShiftedInner_11 [7:0] = omega_13 [7:0];
205
            omegaShiftedInner_12 [7:0] = omega_14 [7:0];
206
            omegaShiftedInner_13 [7:0] = omega_15 [7:0];
207
            omegaShiftedInner_14 [7:0] = omega_16 [7:0];
208
            omegaShiftedInner_15 [7:0] = omega_17 [7:0];
209
            omegaShiftedInner_16 [7:0] = omega_18 [7:0];
210
            omegaShiftedInner_17 [7:0] = omega_19 [7:0];
211
            omegaShiftedInner_18 [7:0] = omega_20 [7:0];
212
            omegaShiftedInner_19 [7:0] = omega_21 [7:0];
213
            omegaShiftedInner_20 [7:0] = 8'd0;
214
            omegaShiftedInner_21 [7:0] = 8'd0;
215
         end
216
         (5'd3): begin
217
            omegaShiftedInner_0 [7:0]  = omega_3 [7:0];
218
            omegaShiftedInner_1 [7:0]  = omega_4 [7:0];
219
            omegaShiftedInner_2 [7:0]  = omega_5 [7:0];
220
            omegaShiftedInner_3 [7:0]  = omega_6 [7:0];
221
            omegaShiftedInner_4 [7:0]  = omega_7 [7:0];
222
            omegaShiftedInner_5 [7:0]  = omega_8 [7:0];
223
            omegaShiftedInner_6 [7:0]  = omega_9 [7:0];
224
            omegaShiftedInner_7 [7:0]  = omega_10 [7:0];
225
            omegaShiftedInner_8 [7:0]  = omega_11 [7:0];
226
            omegaShiftedInner_9 [7:0]  = omega_12 [7:0];
227
            omegaShiftedInner_10 [7:0] = omega_13 [7:0];
228
            omegaShiftedInner_11 [7:0] = omega_14 [7:0];
229
            omegaShiftedInner_12 [7:0] = omega_15 [7:0];
230
            omegaShiftedInner_13 [7:0] = omega_16 [7:0];
231
            omegaShiftedInner_14 [7:0] = omega_17 [7:0];
232
            omegaShiftedInner_15 [7:0] = omega_18 [7:0];
233
            omegaShiftedInner_16 [7:0] = omega_19 [7:0];
234
            omegaShiftedInner_17 [7:0] = omega_20 [7:0];
235
            omegaShiftedInner_18 [7:0] = omega_21 [7:0];
236
            omegaShiftedInner_19 [7:0] = 8'd0;
237
            omegaShiftedInner_20 [7:0] = 8'd0;
238
            omegaShiftedInner_21 [7:0] = 8'd0;
239
         end
240
         (5'd4): begin
241
            omegaShiftedInner_0 [7:0]  = omega_4 [7:0];
242
            omegaShiftedInner_1 [7:0]  = omega_5 [7:0];
243
            omegaShiftedInner_2 [7:0]  = omega_6 [7:0];
244
            omegaShiftedInner_3 [7:0]  = omega_7 [7:0];
245
            omegaShiftedInner_4 [7:0]  = omega_8 [7:0];
246
            omegaShiftedInner_5 [7:0]  = omega_9 [7:0];
247
            omegaShiftedInner_6 [7:0]  = omega_10 [7:0];
248
            omegaShiftedInner_7 [7:0]  = omega_11 [7:0];
249
            omegaShiftedInner_8 [7:0]  = omega_12 [7:0];
250
            omegaShiftedInner_9 [7:0]  = omega_13 [7:0];
251
            omegaShiftedInner_10 [7:0] = omega_14 [7:0];
252
            omegaShiftedInner_11 [7:0] = omega_15 [7:0];
253
            omegaShiftedInner_12 [7:0] = omega_16 [7:0];
254
            omegaShiftedInner_13 [7:0] = omega_17 [7:0];
255
            omegaShiftedInner_14 [7:0] = omega_18 [7:0];
256
            omegaShiftedInner_15 [7:0] = omega_19 [7:0];
257
            omegaShiftedInner_16 [7:0] = omega_20 [7:0];
258
            omegaShiftedInner_17 [7:0] = omega_21 [7:0];
259
            omegaShiftedInner_18 [7:0] = 8'd0;
260
            omegaShiftedInner_19 [7:0] = 8'd0;
261
            omegaShiftedInner_20 [7:0] = 8'd0;
262
            omegaShiftedInner_21 [7:0] = 8'd0;
263
         end
264
         (5'd5): begin
265
            omegaShiftedInner_0 [7:0]  = omega_5 [7:0];
266
            omegaShiftedInner_1 [7:0]  = omega_6 [7:0];
267
            omegaShiftedInner_2 [7:0]  = omega_7 [7:0];
268
            omegaShiftedInner_3 [7:0]  = omega_8 [7:0];
269
            omegaShiftedInner_4 [7:0]  = omega_9 [7:0];
270
            omegaShiftedInner_5 [7:0]  = omega_10 [7:0];
271
            omegaShiftedInner_6 [7:0]  = omega_11 [7:0];
272
            omegaShiftedInner_7 [7:0]  = omega_12 [7:0];
273
            omegaShiftedInner_8 [7:0]  = omega_13 [7:0];
274
            omegaShiftedInner_9 [7:0]  = omega_14 [7:0];
275
            omegaShiftedInner_10 [7:0] = omega_15 [7:0];
276
            omegaShiftedInner_11 [7:0] = omega_16 [7:0];
277
            omegaShiftedInner_12 [7:0] = omega_17 [7:0];
278
            omegaShiftedInner_13 [7:0] = omega_18 [7:0];
279
            omegaShiftedInner_14 [7:0] = omega_19 [7:0];
280
            omegaShiftedInner_15 [7:0] = omega_20 [7:0];
281
            omegaShiftedInner_16 [7:0] = omega_21 [7:0];
282
            omegaShiftedInner_17 [7:0] = 8'd0;
283
            omegaShiftedInner_18 [7:0] = 8'd0;
284
            omegaShiftedInner_19 [7:0] = 8'd0;
285
            omegaShiftedInner_20 [7:0] = 8'd0;
286
            omegaShiftedInner_21 [7:0] = 8'd0;
287
         end
288
         (5'd6): begin
289
            omegaShiftedInner_0 [7:0]  = omega_6 [7:0];
290
            omegaShiftedInner_1 [7:0]  = omega_7 [7:0];
291
            omegaShiftedInner_2 [7:0]  = omega_8 [7:0];
292
            omegaShiftedInner_3 [7:0]  = omega_9 [7:0];
293
            omegaShiftedInner_4 [7:0]  = omega_10 [7:0];
294
            omegaShiftedInner_5 [7:0]  = omega_11 [7:0];
295
            omegaShiftedInner_6 [7:0]  = omega_12 [7:0];
296
            omegaShiftedInner_7 [7:0]  = omega_13 [7:0];
297
            omegaShiftedInner_8 [7:0]  = omega_14 [7:0];
298
            omegaShiftedInner_9 [7:0]  = omega_15 [7:0];
299
            omegaShiftedInner_10 [7:0] = omega_16 [7:0];
300
            omegaShiftedInner_11 [7:0] = omega_17 [7:0];
301
            omegaShiftedInner_12 [7:0] = omega_18 [7:0];
302
            omegaShiftedInner_13 [7:0] = omega_19 [7:0];
303
            omegaShiftedInner_14 [7:0] = omega_20 [7:0];
304
            omegaShiftedInner_15 [7:0] = omega_21 [7:0];
305
            omegaShiftedInner_16 [7:0] = 8'd0;
306
            omegaShiftedInner_17 [7:0] = 8'd0;
307
            omegaShiftedInner_18 [7:0] = 8'd0;
308
            omegaShiftedInner_19 [7:0] = 8'd0;
309
            omegaShiftedInner_20 [7:0] = 8'd0;
310
            omegaShiftedInner_21 [7:0] = 8'd0;
311
         end
312
         (5'd7): begin
313
            omegaShiftedInner_0 [7:0]  = omega_7 [7:0];
314
            omegaShiftedInner_1 [7:0]  = omega_8 [7:0];
315
            omegaShiftedInner_2 [7:0]  = omega_9 [7:0];
316
            omegaShiftedInner_3 [7:0]  = omega_10 [7:0];
317
            omegaShiftedInner_4 [7:0]  = omega_11 [7:0];
318
            omegaShiftedInner_5 [7:0]  = omega_12 [7:0];
319
            omegaShiftedInner_6 [7:0]  = omega_13 [7:0];
320
            omegaShiftedInner_7 [7:0]  = omega_14 [7:0];
321
            omegaShiftedInner_8 [7:0]  = omega_15 [7:0];
322
            omegaShiftedInner_9 [7:0]  = omega_16 [7:0];
323
            omegaShiftedInner_10 [7:0] = omega_17 [7:0];
324
            omegaShiftedInner_11 [7:0] = omega_18 [7:0];
325
            omegaShiftedInner_12 [7:0] = omega_19 [7:0];
326
            omegaShiftedInner_13 [7:0] = omega_20 [7:0];
327
            omegaShiftedInner_14 [7:0] = omega_21 [7:0];
328
            omegaShiftedInner_15 [7:0] = 8'd0;
329
            omegaShiftedInner_16 [7:0] = 8'd0;
330
            omegaShiftedInner_17 [7:0] = 8'd0;
331
            omegaShiftedInner_18 [7:0] = 8'd0;
332
            omegaShiftedInner_19 [7:0] = 8'd0;
333
            omegaShiftedInner_20 [7:0] = 8'd0;
334
            omegaShiftedInner_21 [7:0] = 8'd0;
335
         end
336
         (5'd8): begin
337
            omegaShiftedInner_0 [7:0]  = omega_8 [7:0];
338
            omegaShiftedInner_1 [7:0]  = omega_9 [7:0];
339
            omegaShiftedInner_2 [7:0]  = omega_10 [7:0];
340
            omegaShiftedInner_3 [7:0]  = omega_11 [7:0];
341
            omegaShiftedInner_4 [7:0]  = omega_12 [7:0];
342
            omegaShiftedInner_5 [7:0]  = omega_13 [7:0];
343
            omegaShiftedInner_6 [7:0]  = omega_14 [7:0];
344
            omegaShiftedInner_7 [7:0]  = omega_15 [7:0];
345
            omegaShiftedInner_8 [7:0]  = omega_16 [7:0];
346
            omegaShiftedInner_9 [7:0]  = omega_17 [7:0];
347
            omegaShiftedInner_10 [7:0] = omega_18 [7:0];
348
            omegaShiftedInner_11 [7:0] = omega_19 [7:0];
349
            omegaShiftedInner_12 [7:0] = omega_20 [7:0];
350
            omegaShiftedInner_13 [7:0] = omega_21 [7:0];
351
            omegaShiftedInner_14 [7:0] = 8'd0;
352
            omegaShiftedInner_15 [7:0] = 8'd0;
353
            omegaShiftedInner_16 [7:0] = 8'd0;
354
            omegaShiftedInner_17 [7:0] = 8'd0;
355
            omegaShiftedInner_18 [7:0] = 8'd0;
356
            omegaShiftedInner_19 [7:0] = 8'd0;
357
            omegaShiftedInner_20 [7:0] = 8'd0;
358
            omegaShiftedInner_21 [7:0] = 8'd0;
359
         end
360
         (5'd9): begin
361
            omegaShiftedInner_0 [7:0]  = omega_9 [7:0];
362
            omegaShiftedInner_1 [7:0]  = omega_10 [7:0];
363
            omegaShiftedInner_2 [7:0]  = omega_11 [7:0];
364
            omegaShiftedInner_3 [7:0]  = omega_12 [7:0];
365
            omegaShiftedInner_4 [7:0]  = omega_13 [7:0];
366
            omegaShiftedInner_5 [7:0]  = omega_14 [7:0];
367
            omegaShiftedInner_6 [7:0]  = omega_15 [7:0];
368
            omegaShiftedInner_7 [7:0]  = omega_16 [7:0];
369
            omegaShiftedInner_8 [7:0]  = omega_17 [7:0];
370
            omegaShiftedInner_9 [7:0]  = omega_18 [7:0];
371
            omegaShiftedInner_10 [7:0] = omega_19 [7:0];
372
            omegaShiftedInner_11 [7:0] = omega_20 [7:0];
373
            omegaShiftedInner_12 [7:0] = omega_21 [7:0];
374
            omegaShiftedInner_13 [7:0] = 8'd0;
375
            omegaShiftedInner_14 [7:0] = 8'd0;
376
            omegaShiftedInner_15 [7:0] = 8'd0;
377
            omegaShiftedInner_16 [7:0] = 8'd0;
378
            omegaShiftedInner_17 [7:0] = 8'd0;
379
            omegaShiftedInner_18 [7:0] = 8'd0;
380
            omegaShiftedInner_19 [7:0] = 8'd0;
381
            omegaShiftedInner_20 [7:0] = 8'd0;
382
            omegaShiftedInner_21 [7:0] = 8'd0;
383
         end
384
         (5'd10): begin
385
            omegaShiftedInner_0 [7:0]  = omega_10 [7:0];
386
            omegaShiftedInner_1 [7:0]  = omega_11 [7:0];
387
            omegaShiftedInner_2 [7:0]  = omega_12 [7:0];
388
            omegaShiftedInner_3 [7:0]  = omega_13 [7:0];
389
            omegaShiftedInner_4 [7:0]  = omega_14 [7:0];
390
            omegaShiftedInner_5 [7:0]  = omega_15 [7:0];
391
            omegaShiftedInner_6 [7:0]  = omega_16 [7:0];
392
            omegaShiftedInner_7 [7:0]  = omega_17 [7:0];
393
            omegaShiftedInner_8 [7:0]  = omega_18 [7:0];
394
            omegaShiftedInner_9 [7:0]  = omega_19 [7:0];
395
            omegaShiftedInner_10 [7:0] = omega_20 [7:0];
396
            omegaShiftedInner_11 [7:0] = omega_21 [7:0];
397
            omegaShiftedInner_12 [7:0] = 8'd0;
398
            omegaShiftedInner_13 [7:0] = 8'd0;
399
            omegaShiftedInner_14 [7:0] = 8'd0;
400
            omegaShiftedInner_15 [7:0] = 8'd0;
401
            omegaShiftedInner_16 [7:0] = 8'd0;
402
            omegaShiftedInner_17 [7:0] = 8'd0;
403
            omegaShiftedInner_18 [7:0] = 8'd0;
404
            omegaShiftedInner_19 [7:0] = 8'd0;
405
            omegaShiftedInner_20 [7:0] = 8'd0;
406
            omegaShiftedInner_21 [7:0] = 8'd0;
407
         end
408
         (5'd11): begin
409
            omegaShiftedInner_0 [7:0]  = omega_11 [7:0];
410
            omegaShiftedInner_1 [7:0]  = omega_12 [7:0];
411
            omegaShiftedInner_2 [7:0]  = omega_13 [7:0];
412
            omegaShiftedInner_3 [7:0]  = omega_14 [7:0];
413
            omegaShiftedInner_4 [7:0]  = omega_15 [7:0];
414
            omegaShiftedInner_5 [7:0]  = omega_16 [7:0];
415
            omegaShiftedInner_6 [7:0]  = omega_17 [7:0];
416
            omegaShiftedInner_7 [7:0]  = omega_18 [7:0];
417
            omegaShiftedInner_8 [7:0]  = omega_19 [7:0];
418
            omegaShiftedInner_9 [7:0]  = omega_20 [7:0];
419
            omegaShiftedInner_10 [7:0] = omega_21 [7:0];
420
            omegaShiftedInner_11 [7:0] = 8'd0;
421
            omegaShiftedInner_12 [7:0] = 8'd0;
422
            omegaShiftedInner_13 [7:0] = 8'd0;
423
            omegaShiftedInner_14 [7:0] = 8'd0;
424
            omegaShiftedInner_15 [7:0] = 8'd0;
425
            omegaShiftedInner_16 [7:0] = 8'd0;
426
            omegaShiftedInner_17 [7:0] = 8'd0;
427
            omegaShiftedInner_18 [7:0] = 8'd0;
428
            omegaShiftedInner_19 [7:0] = 8'd0;
429
            omegaShiftedInner_20 [7:0] = 8'd0;
430
            omegaShiftedInner_21 [7:0] = 8'd0;
431
         end
432
         (5'd12): begin
433
            omegaShiftedInner_0 [7:0]  = omega_12 [7:0];
434
            omegaShiftedInner_1 [7:0]  = omega_13 [7:0];
435
            omegaShiftedInner_2 [7:0]  = omega_14 [7:0];
436
            omegaShiftedInner_3 [7:0]  = omega_15 [7:0];
437
            omegaShiftedInner_4 [7:0]  = omega_16 [7:0];
438
            omegaShiftedInner_5 [7:0]  = omega_17 [7:0];
439
            omegaShiftedInner_6 [7:0]  = omega_18 [7:0];
440
            omegaShiftedInner_7 [7:0]  = omega_19 [7:0];
441
            omegaShiftedInner_8 [7:0]  = omega_20 [7:0];
442
            omegaShiftedInner_9 [7:0]  = omega_21 [7:0];
443
            omegaShiftedInner_10 [7:0] = 8'd0;
444
            omegaShiftedInner_11 [7:0] = 8'd0;
445
            omegaShiftedInner_12 [7:0] = 8'd0;
446
            omegaShiftedInner_13 [7:0] = 8'd0;
447
            omegaShiftedInner_14 [7:0] = 8'd0;
448
            omegaShiftedInner_15 [7:0] = 8'd0;
449
            omegaShiftedInner_16 [7:0] = 8'd0;
450
            omegaShiftedInner_17 [7:0] = 8'd0;
451
            omegaShiftedInner_18 [7:0] = 8'd0;
452
            omegaShiftedInner_19 [7:0] = 8'd0;
453
            omegaShiftedInner_20 [7:0] = 8'd0;
454
            omegaShiftedInner_21 [7:0] = 8'd0;
455
         end
456
         (5'd13): begin
457
            omegaShiftedInner_0 [7:0]  = omega_13 [7:0];
458
            omegaShiftedInner_1 [7:0]  = omega_14 [7:0];
459
            omegaShiftedInner_2 [7:0]  = omega_15 [7:0];
460
            omegaShiftedInner_3 [7:0]  = omega_16 [7:0];
461
            omegaShiftedInner_4 [7:0]  = omega_17 [7:0];
462
            omegaShiftedInner_5 [7:0]  = omega_18 [7:0];
463
            omegaShiftedInner_6 [7:0]  = omega_19 [7:0];
464
            omegaShiftedInner_7 [7:0]  = omega_20 [7:0];
465
            omegaShiftedInner_8 [7:0]  = omega_21 [7:0];
466
            omegaShiftedInner_9 [7:0]  = 8'd0;
467
            omegaShiftedInner_10 [7:0] = 8'd0;
468
            omegaShiftedInner_11 [7:0] = 8'd0;
469
            omegaShiftedInner_12 [7:0] = 8'd0;
470
            omegaShiftedInner_13 [7:0] = 8'd0;
471
            omegaShiftedInner_14 [7:0] = 8'd0;
472
            omegaShiftedInner_15 [7:0] = 8'd0;
473
            omegaShiftedInner_16 [7:0] = 8'd0;
474
            omegaShiftedInner_17 [7:0] = 8'd0;
475
            omegaShiftedInner_18 [7:0] = 8'd0;
476
            omegaShiftedInner_19 [7:0] = 8'd0;
477
            omegaShiftedInner_20 [7:0] = 8'd0;
478
            omegaShiftedInner_21 [7:0] = 8'd0;
479
         end
480
         (5'd14): begin
481
            omegaShiftedInner_0 [7:0]  = omega_14 [7:0];
482
            omegaShiftedInner_1 [7:0]  = omega_15 [7:0];
483
            omegaShiftedInner_2 [7:0]  = omega_16 [7:0];
484
            omegaShiftedInner_3 [7:0]  = omega_17 [7:0];
485
            omegaShiftedInner_4 [7:0]  = omega_18 [7:0];
486
            omegaShiftedInner_5 [7:0]  = omega_19 [7:0];
487
            omegaShiftedInner_6 [7:0]  = omega_20 [7:0];
488
            omegaShiftedInner_7 [7:0]  = omega_21 [7:0];
489
            omegaShiftedInner_8 [7:0]  = 8'd0;
490
            omegaShiftedInner_9 [7:0]  = 8'd0;
491
            omegaShiftedInner_10 [7:0] = 8'd0;
492
            omegaShiftedInner_11 [7:0] = 8'd0;
493
            omegaShiftedInner_12 [7:0] = 8'd0;
494
            omegaShiftedInner_13 [7:0] = 8'd0;
495
            omegaShiftedInner_14 [7:0] = 8'd0;
496
            omegaShiftedInner_15 [7:0] = 8'd0;
497
            omegaShiftedInner_16 [7:0] = 8'd0;
498
            omegaShiftedInner_17 [7:0] = 8'd0;
499
            omegaShiftedInner_18 [7:0] = 8'd0;
500
            omegaShiftedInner_19 [7:0] = 8'd0;
501
            omegaShiftedInner_20 [7:0] = 8'd0;
502
            omegaShiftedInner_21 [7:0] = 8'd0;
503
         end
504
         (5'd15): begin
505
            omegaShiftedInner_0 [7:0]  = omega_15 [7:0];
506
            omegaShiftedInner_1 [7:0]  = omega_16 [7:0];
507
            omegaShiftedInner_2 [7:0]  = omega_17 [7:0];
508
            omegaShiftedInner_3 [7:0]  = omega_18 [7:0];
509
            omegaShiftedInner_4 [7:0]  = omega_19 [7:0];
510
            omegaShiftedInner_5 [7:0]  = omega_20 [7:0];
511
            omegaShiftedInner_6 [7:0]  = omega_21 [7:0];
512
            omegaShiftedInner_7 [7:0]  = 8'd0;
513
            omegaShiftedInner_8 [7:0]  = 8'd0;
514
            omegaShiftedInner_9 [7:0]  = 8'd0;
515
            omegaShiftedInner_10 [7:0] = 8'd0;
516
            omegaShiftedInner_11 [7:0] = 8'd0;
517
            omegaShiftedInner_12 [7:0] = 8'd0;
518
            omegaShiftedInner_13 [7:0] = 8'd0;
519
            omegaShiftedInner_14 [7:0] = 8'd0;
520
            omegaShiftedInner_15 [7:0] = 8'd0;
521
            omegaShiftedInner_16 [7:0] = 8'd0;
522
            omegaShiftedInner_17 [7:0] = 8'd0;
523
            omegaShiftedInner_18 [7:0] = 8'd0;
524
            omegaShiftedInner_19 [7:0] = 8'd0;
525
            omegaShiftedInner_20 [7:0] = 8'd0;
526
            omegaShiftedInner_21 [7:0] = 8'd0;
527
         end
528
         (5'd16): begin
529
            omegaShiftedInner_0 [7:0]  = omega_16 [7:0];
530
            omegaShiftedInner_1 [7:0]  = omega_17 [7:0];
531
            omegaShiftedInner_2 [7:0]  = omega_18 [7:0];
532
            omegaShiftedInner_3 [7:0]  = omega_19 [7:0];
533
            omegaShiftedInner_4 [7:0]  = omega_20 [7:0];
534
            omegaShiftedInner_5 [7:0]  = omega_21 [7:0];
535
            omegaShiftedInner_6 [7:0]  = 8'd0;
536
            omegaShiftedInner_7 [7:0]  = 8'd0;
537
            omegaShiftedInner_8 [7:0]  = 8'd0;
538
            omegaShiftedInner_9 [7:0]  = 8'd0;
539
            omegaShiftedInner_10 [7:0] = 8'd0;
540
            omegaShiftedInner_11 [7:0] = 8'd0;
541
            omegaShiftedInner_12 [7:0] = 8'd0;
542
            omegaShiftedInner_13 [7:0] = 8'd0;
543
            omegaShiftedInner_14 [7:0] = 8'd0;
544
            omegaShiftedInner_15 [7:0] = 8'd0;
545
            omegaShiftedInner_16 [7:0] = 8'd0;
546
            omegaShiftedInner_17 [7:0] = 8'd0;
547
            omegaShiftedInner_18 [7:0] = 8'd0;
548
            omegaShiftedInner_19 [7:0] = 8'd0;
549
            omegaShiftedInner_20 [7:0] = 8'd0;
550
            omegaShiftedInner_21 [7:0] = 8'd0;
551
         end
552
         (5'd17): begin
553
            omegaShiftedInner_0 [7:0]  = omega_17 [7:0];
554
            omegaShiftedInner_1 [7:0]  = omega_18 [7:0];
555
            omegaShiftedInner_2 [7:0]  = omega_19 [7:0];
556
            omegaShiftedInner_3 [7:0]  = omega_20 [7:0];
557
            omegaShiftedInner_4 [7:0]  = omega_21 [7:0];
558
            omegaShiftedInner_5 [7:0]  = 8'd0;
559
            omegaShiftedInner_6 [7:0]  = 8'd0;
560
            omegaShiftedInner_7 [7:0]  = 8'd0;
561
            omegaShiftedInner_8 [7:0]  = 8'd0;
562
            omegaShiftedInner_9 [7:0]  = 8'd0;
563
            omegaShiftedInner_10 [7:0] = 8'd0;
564
            omegaShiftedInner_11 [7:0] = 8'd0;
565
            omegaShiftedInner_12 [7:0] = 8'd0;
566
            omegaShiftedInner_13 [7:0] = 8'd0;
567
            omegaShiftedInner_14 [7:0] = 8'd0;
568
            omegaShiftedInner_15 [7:0] = 8'd0;
569
            omegaShiftedInner_16 [7:0] = 8'd0;
570
            omegaShiftedInner_17 [7:0] = 8'd0;
571
            omegaShiftedInner_18 [7:0] = 8'd0;
572
            omegaShiftedInner_19 [7:0] = 8'd0;
573
            omegaShiftedInner_20 [7:0] = 8'd0;
574
            omegaShiftedInner_21 [7:0] = 8'd0;
575
         end
576
         (5'd18): begin
577
            omegaShiftedInner_0 [7:0]  = omega_18 [7:0];
578
            omegaShiftedInner_1 [7:0]  = omega_19 [7:0];
579
            omegaShiftedInner_2 [7:0]  = omega_20 [7:0];
580
            omegaShiftedInner_3 [7:0]  = omega_21 [7:0];
581
            omegaShiftedInner_4 [7:0]  = 8'd0;
582
            omegaShiftedInner_5 [7:0]  = 8'd0;
583
            omegaShiftedInner_6 [7:0]  = 8'd0;
584
            omegaShiftedInner_7 [7:0]  = 8'd0;
585
            omegaShiftedInner_8 [7:0]  = 8'd0;
586
            omegaShiftedInner_9 [7:0]  = 8'd0;
587
            omegaShiftedInner_10 [7:0] = 8'd0;
588
            omegaShiftedInner_11 [7:0] = 8'd0;
589
            omegaShiftedInner_12 [7:0] = 8'd0;
590
            omegaShiftedInner_13 [7:0] = 8'd0;
591
            omegaShiftedInner_14 [7:0] = 8'd0;
592
            omegaShiftedInner_15 [7:0] = 8'd0;
593
            omegaShiftedInner_16 [7:0] = 8'd0;
594
            omegaShiftedInner_17 [7:0] = 8'd0;
595
            omegaShiftedInner_18 [7:0] = 8'd0;
596
            omegaShiftedInner_19 [7:0] = 8'd0;
597
            omegaShiftedInner_20 [7:0] = 8'd0;
598
            omegaShiftedInner_21 [7:0] = 8'd0;
599
         end
600
         (5'd19): begin
601
            omegaShiftedInner_0 [7:0]  = omega_19 [7:0];
602
            omegaShiftedInner_1 [7:0]  = omega_20 [7:0];
603
            omegaShiftedInner_2 [7:0]  = omega_21 [7:0];
604
            omegaShiftedInner_3 [7:0]  = 8'd0;
605
            omegaShiftedInner_4 [7:0]  = 8'd0;
606
            omegaShiftedInner_5 [7:0]  = 8'd0;
607
            omegaShiftedInner_6 [7:0]  = 8'd0;
608
            omegaShiftedInner_7 [7:0]  = 8'd0;
609
            omegaShiftedInner_8 [7:0]  = 8'd0;
610
            omegaShiftedInner_9 [7:0]  = 8'd0;
611
            omegaShiftedInner_10 [7:0] = 8'd0;
612
            omegaShiftedInner_11 [7:0] = 8'd0;
613
            omegaShiftedInner_12 [7:0] = 8'd0;
614
            omegaShiftedInner_13 [7:0] = 8'd0;
615
            omegaShiftedInner_14 [7:0] = 8'd0;
616
            omegaShiftedInner_15 [7:0] = 8'd0;
617
            omegaShiftedInner_16 [7:0] = 8'd0;
618
            omegaShiftedInner_17 [7:0] = 8'd0;
619
            omegaShiftedInner_18 [7:0] = 8'd0;
620
            omegaShiftedInner_19 [7:0] = 8'd0;
621
            omegaShiftedInner_20 [7:0] = 8'd0;
622
            omegaShiftedInner_21 [7:0] = 8'd0;
623
         end
624
         (5'd20): begin
625
            omegaShiftedInner_0 [7:0]  = omega_20 [7:0];
626
            omegaShiftedInner_1 [7:0]  = omega_21 [7:0];
627
            omegaShiftedInner_2 [7:0]  = 8'd0;
628
            omegaShiftedInner_3 [7:0]  = 8'd0;
629
            omegaShiftedInner_4 [7:0]  = 8'd0;
630
            omegaShiftedInner_5 [7:0]  = 8'd0;
631
            omegaShiftedInner_6 [7:0]  = 8'd0;
632
            omegaShiftedInner_7 [7:0]  = 8'd0;
633
            omegaShiftedInner_8 [7:0]  = 8'd0;
634
            omegaShiftedInner_9 [7:0]  = 8'd0;
635
            omegaShiftedInner_10 [7:0] = 8'd0;
636
            omegaShiftedInner_11 [7:0] = 8'd0;
637
            omegaShiftedInner_12 [7:0] = 8'd0;
638
            omegaShiftedInner_13 [7:0] = 8'd0;
639
            omegaShiftedInner_14 [7:0] = 8'd0;
640
            omegaShiftedInner_15 [7:0] = 8'd0;
641
            omegaShiftedInner_16 [7:0] = 8'd0;
642
            omegaShiftedInner_17 [7:0] = 8'd0;
643
            omegaShiftedInner_18 [7:0] = 8'd0;
644
            omegaShiftedInner_19 [7:0] = 8'd0;
645
            omegaShiftedInner_20 [7:0] = 8'd0;
646
            omegaShiftedInner_21 [7:0] = 8'd0;
647
         end
648
         (5'd21): begin
649
            omegaShiftedInner_0 [7:0]  = omega_21 [7:0];
650
            omegaShiftedInner_1 [7:0]  = 8'd0;
651
            omegaShiftedInner_2 [7:0]  = 8'd0;
652
            omegaShiftedInner_3 [7:0]  = 8'd0;
653
            omegaShiftedInner_4 [7:0]  = 8'd0;
654
            omegaShiftedInner_5 [7:0]  = 8'd0;
655
            omegaShiftedInner_6 [7:0]  = 8'd0;
656
            omegaShiftedInner_7 [7:0]  = 8'd0;
657
            omegaShiftedInner_8 [7:0]  = 8'd0;
658
            omegaShiftedInner_9 [7:0]  = 8'd0;
659
            omegaShiftedInner_10 [7:0] = 8'd0;
660
            omegaShiftedInner_11 [7:0] = 8'd0;
661
            omegaShiftedInner_12 [7:0] = 8'd0;
662
            omegaShiftedInner_13 [7:0] = 8'd0;
663
            omegaShiftedInner_14 [7:0] = 8'd0;
664
            omegaShiftedInner_15 [7:0] = 8'd0;
665
            omegaShiftedInner_16 [7:0] = 8'd0;
666
            omegaShiftedInner_17 [7:0] = 8'd0;
667
            omegaShiftedInner_18 [7:0] = 8'd0;
668
            omegaShiftedInner_19 [7:0] = 8'd0;
669
            omegaShiftedInner_20 [7:0] = 8'd0;
670
            omegaShiftedInner_21 [7:0] = 8'd0;
671
         end
672
         default: begin
673
            omegaShiftedInner_0 [7:0]  = 8'd0;
674
            omegaShiftedInner_1 [7:0]  = 8'd0;
675
            omegaShiftedInner_2 [7:0]  = 8'd0;
676
            omegaShiftedInner_3 [7:0]  = 8'd0;
677
            omegaShiftedInner_4 [7:0]  = 8'd0;
678
            omegaShiftedInner_5 [7:0]  = 8'd0;
679
            omegaShiftedInner_6 [7:0]  = 8'd0;
680
            omegaShiftedInner_7 [7:0]  = 8'd0;
681
            omegaShiftedInner_8 [7:0]  = 8'd0;
682
            omegaShiftedInner_9 [7:0]  = 8'd0;
683
            omegaShiftedInner_10 [7:0] = 8'd0;
684
            omegaShiftedInner_11 [7:0] = 8'd0;
685
            omegaShiftedInner_12 [7:0] = 8'd0;
686
            omegaShiftedInner_13 [7:0] = 8'd0;
687
            omegaShiftedInner_14 [7:0] = 8'd0;
688
            omegaShiftedInner_15 [7:0] = 8'd0;
689
            omegaShiftedInner_16 [7:0] = 8'd0;
690
            omegaShiftedInner_17 [7:0] = 8'd0;
691
            omegaShiftedInner_18 [7:0] = 8'd0;
692
            omegaShiftedInner_19 [7:0] = 8'd0;
693
            omegaShiftedInner_20 [7:0] = 8'd0;
694
            omegaShiftedInner_21 [7:0] = 8'd0;
695
         end
696
        endcase
697
    end
698
 
699
 
700
 
701
   //------------------------------------------------------------------------
702
   //- Output Ports
703
   //------------------------------------------------------------------------
704
   assign omegaShifted_0   = omegaShiftedInner_0;
705
   assign omegaShifted_1   = omegaShiftedInner_1;
706
   assign omegaShifted_2   = omegaShiftedInner_2;
707
   assign omegaShifted_3   = omegaShiftedInner_3;
708
   assign omegaShifted_4   = omegaShiftedInner_4;
709
   assign omegaShifted_5   = omegaShiftedInner_5;
710
   assign omegaShifted_6   = omegaShiftedInner_6;
711
   assign omegaShifted_7   = omegaShiftedInner_7;
712
   assign omegaShifted_8   = omegaShiftedInner_8;
713
   assign omegaShifted_9   = omegaShiftedInner_9;
714
   assign omegaShifted_10  = omegaShiftedInner_10;
715
   assign omegaShifted_11  = omegaShiftedInner_11;
716
   assign omegaShifted_12  = omegaShiftedInner_12;
717
   assign omegaShifted_13  = omegaShiftedInner_13;
718
   assign omegaShifted_14  = omegaShiftedInner_14;
719
   assign omegaShifted_15  = omegaShiftedInner_15;
720
   assign omegaShifted_16  = omegaShiftedInner_16;
721
   assign omegaShifted_17  = omegaShiftedInner_17;
722
   assign omegaShifted_18  = omegaShiftedInner_18;
723
   assign omegaShifted_19  = omegaShiftedInner_19;
724
   assign omegaShifted_20  = omegaShiftedInner_20;
725
   assign omegaShifted_21  = omegaShiftedInner_21;
726
 
727
 
728
 
729
endmodule

powered by: WebSVN 2.1.0

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