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

Subversion Repositories pci

[/] [pci/] [trunk/] [sim/] [rtl_sim/] [run/] [run_pci_sim_regr.scr] - Blame information for rev 155

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

Line No. Rev Author Line
1 17 mihad
#!/bin/csh -f
2
 
3 45 mihad
set arg_num = $#argv; # number of arguments
4 17 mihad
 
5 26 mihad
# current iterration
6 17 mihad
set iter = 1;
7 26 mihad
# number of tests with DEFINES + test with user defined constants!
8 104 mihad
set all_iterations = 14;
9 26 mihad
 
10
# variables
11
set iter_failed = 0;
12
set all_iters = 0;
13
set subtest_failed = 0;
14
set sub_tests = 0;
15
set test_failed = 0;
16 17 mihad
set all_tests = 0;
17
 
18
# Process arguments
19
set arg_regression = 0;
20
set arg_xilinx = 0;
21
set arg_artisan = 0;
22 26 mihad
set arg_waves = 0;
23 60 mihad
set arg_vs_hdtp = 0
24 140 mihad
set arg_dis_comp_exp_tst = 0
25 106 mihad
set arg_wb_b3 = 0
26 17 mihad
 
27 45 mihad
@ arg_num     = 1
28
set arg_check = 0
29
 
30 140 mihad
while($arg_num <= $#argv)
31 63 mihad
 
32 106 mihad
        switch ( $argv[$arg_num] )
33
        case "help":
34
            goto help
35
            breaksw
36 104 mihad
 
37 106 mihad
        case "regression":
38
            @ arg_regression = 1
39
            breaksw
40 17 mihad
 
41 106 mihad
        case "xilinx":
42
            @ arg_xilinx = 1
43
            breaksw
44 104 mihad
 
45 106 mihad
        case "artisan":
46
            @ arg_artisan = 1
47
            breaksw
48 17 mihad
 
49 106 mihad
        case "waves":
50
            @ arg_waves = 1
51
            breaksw
52 60 mihad
 
53 140 mihad
        case "disable_completion_expired_tests":
54
            @ arg_dis_comp_exp_tst = 1
55
            breaksw
56
 
57 106 mihad
        case "vs_two_port":
58
            @ arg_vs_hdtp = 1
59
            breaksw
60 104 mihad
 
61 106 mihad
        case "wb_b3":
62
            @ arg_wb_b3 = 1
63
            breaksw
64
 
65
        case "iter":
66
            @ arg_num = $arg_num + 1
67
            @ iter    = $argv[$arg_num]
68
            @ all_iterations = $iter
69
            breaksw
70
 
71
        default:
72
            echo "Invalid argument!"
73
            goto help
74
            breaksw
75
        endsw
76
 
77
    @ arg_num++
78 45 mihad
end
79
 
80 17 mihad
# ITERATION LOOP
81
iteration:
82
 
83
echo ""
84
echo "<<<"
85
echo "<<< Iteration ${iter}"
86
echo "<<<"
87
 
88
 
89
if ($arg_regression == 1) then
90 104 mihad
    # Preparing defines into file
91
    if ($iter <= $all_iterations) then
92 63 mihad
 
93 104 mihad
        if ($iter == 1) then
94
            echo "<<< Defines:"
95
 
96
            if ($arg_xilinx == 0) then
97
                echo "\tREGR_FIFO_SMALL_GENERIC, "
98
            else
99
                echo "\tREGR_FIFO_SMALL_XILINX, "
100
            endif
101
 
102
            echo "\tHOST, WB_DECODE_FAST, PCI_DECODE_MAX, "
103
            echo "\tWB_DECODE_MIN, PCI33, WB_CLK10, ACTIVE_LOW_OE, REGISTER_WBM_OUTPUTS, "
104
            echo "\tREGISTER_WBS_OUTPUTS, ADDR_TRAN_IMPL, PCI_IMAGE0, PCI_IMAGE2. "
105
 
106
            echo "-DEFINE REGRESSION" > ./defines.args
107
 
108
            if ($arg_xilinx == 0) then
109
                echo "-DEFINE REGR_FIFO_SMALL_GENERIC" >> ./defines.args
110
            else
111
                echo "-DEFINE REGR_FIFO_SMALL_XILINX" >> ./defines.args
112
            endif
113
 
114
            echo "-DEFINE HOST                " >> ./defines.args
115
            echo "-DEFINE PCI_DECODE_MAX      " >> ./defines.args
116
            echo "-DEFINE WB_DECODE_MIN       " >> ./defines.args
117
            echo "-DEFINE PCI33               " >> ./defines.args
118
            echo "-DEFINE WB_CLK10            " >> ./defines.args
119
            echo "-DEFINE ACTIVE_LOW_OE       " >> ./defines.args
120
            echo "-DEFINE REGISTER_WBM_OUTPUTS" >> ./defines.args
121 132 mihad
            echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
122
 
123
            if ($arg_wb_b3 == 0) then
124
                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
125
            endif
126
 
127 104 mihad
            echo "-DEFINE ADDR_TRAN_IMPL      " >> ./defines.args
128
            echo "-DEFINE PCI_IMAGE0          " >> ./defines.args
129
            echo "-DEFINE PCI_IMAGE2          " >> ./defines.args
130
 
131 63 mihad
        endif
132 104 mihad
 
133
        if ($iter == 2) then
134
 
135
            echo "<<< Defines:"
136
 
137
            if ($arg_xilinx == 1) then
138
                echo "\tREGR_FIFO_MEDIUM_XILINX, "
139
            else if ($arg_artisan == 1) then
140
                echo "\tREGR_FIFO_MEDIUM_ARTISAN, "
141
            else
142
                echo "\tREGR_FIFO_MEDIUM_GENERIC, "
143
            endif
144
 
145
            echo "\tHOST, WB_DECODE_MEDIUM, PCI_DECODE_MED, "
146
            echo "\tWB_DECODE_MED, PCI33, WB_CLK66, ACTIVE_LOW_OE, REGISTER_WBM_OUTPUTS, "
147
            echo "\tREGISTER_WBS_OUTPUTS, ADDR_TRAN_IMPL, PCI_IMAGE0, PCI_IMAGE2, "
148
            echo "\tPCI_IMAGE3, PCI_IMAGE4, PCI_IMAGE5, WB_IMAGE2, WB_IMAGE5. "
149
 
150
            echo "-DEFINE REGRESSION          " > ./defines.args
151
 
152
            if ($arg_xilinx == 1) then
153
                echo "-DEFINE REGR_FIFO_MEDIUM_XILINX" >> ./defines.args
154
            else if ($arg_artisan == 1) then
155
                        echo "-DEFINE REGR_FIFO_MEDIUM_ARTISAN" >> ./defines.args
156
            else
157
                echo "-DEFINE REGR_FIFO_MEDIUM_GENERIC" >> ./defines.args
158
            endif
159
 
160
            echo "-DEFINE HOST                " >> ./defines.args
161
            echo "-DEFINE PCI_DECODE_MED      " >> ./defines.args
162
            echo "-DEFINE WB_DECODE_MED       " >> ./defines.args
163
            echo "-DEFINE PCI33               " >> ./defines.args
164
            echo "-DEFINE WB_CLK66            " >> ./defines.args
165
            echo "-DEFINE ACTIVE_LOW_OE       " >> ./defines.args
166
            echo "-DEFINE REGISTER_WBM_OUTPUTS" >> ./defines.args
167 132 mihad
 
168
            if ($arg_wb_b3 == 0) then
169
                echo "-DEFINE WB_DECODE_MEDIUM    " >> ./defines.args
170
                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
171
            else
172
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
173
            endif
174
 
175 104 mihad
            echo "-DEFINE ADDR_TRAN_IMPL      " >> ./defines.args
176
            echo "-DEFINE PCI_IMAGE0          " >> ./defines.args
177
            echo "-DEFINE PCI_IMAGE2          " >> ./defines.args
178
            echo "-DEFINE PCI_IMAGE3          " >> ./defines.args
179
            echo "-DEFINE PCI_IMAGE4          " >> ./defines.args
180
            echo "-DEFINE PCI_IMAGE5          " >> ./defines.args
181
            echo "-DEFINE WB_IMAGE2           " >> ./defines.args
182
            echo "-DEFINE WB_IMAGE5           " >> ./defines.args
183 81 mihad
 
184 104 mihad
        endif
185 81 mihad
 
186 104 mihad
        if ($iter == 3) then
187
            echo "<<< Defines:"
188
            echo "\tHOST, REGR_FIFO_LARGE_GENERIC, WB_DECODE_SLOW, PCI_DECODE_MIN, "
189
            echo "\tWB_DECODE_MAX, PCI66, WB_CLK66, ACTIVE_LOW_OE, REGISTER_WBM_OUTPUTS, "
190
            echo "\tREGISTER_WBS_OUTPUTS, WB_IMAGE5. "
191
 
192
            echo "-DEFINE REGRESSION             " >  ./defines.args
193 81 mihad
 
194 104 mihad
            echo "-DEFINE HOST                   " >> ./defines.args
195
            echo "-DEFINE REGR_FIFO_LARGE_GENERIC" >> ./defines.args
196
            echo "-DEFINE PCI_DECODE_MIN         " >> ./defines.args
197
            echo "-DEFINE WB_DECODE_MAX          " >> ./defines.args
198
            echo "-DEFINE PCI66                  " >> ./defines.args
199
            echo "-DEFINE WB_CLK66               " >> ./defines.args
200
            echo "-DEFINE ACTIVE_LOW_OE          " >> ./defines.args
201
            echo "-DEFINE REGISTER_WBM_OUTPUTS   " >> ./defines.args
202
            echo "-DEFINE WB_IMAGE5              " >> ./defines.args
203
 
204 132 mihad
            if ($arg_wb_b3 == 0) then
205
                echo "-DEFINE WB_DECODE_SLOW     " >> ./defines.args
206
                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
207
            else
208
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
209
            endif
210
 
211 104 mihad
        endif
212
 
213
        if ($iter == 4) then
214
            echo "<<< Defines:"
215
            echo "\tGUEST, REGR_FIFO_SMALL_GENERIC, WB_DECODE_SLOW, PCI_DECODE_MED, "
216
            echo "\tWB_DECODE_MIN, PCI66, WB_CLK220, ACTIVE_LOW_OE, REGISTER_WBM_OUTPUTS, "
217
            echo "\tREGISTER_WBS_OUTPUTS, PCI_IMAGE0, PCI_IMAGE5, WB_IMAGE4. "
218
 
219
            echo "-DEFINE REGRESSION" > ./defines.args
220
 
221
            echo "-DEFINE GUEST                  " >> ./defines.args
222
            echo "-DEFINE REGR_FIFO_SMALL_GENERIC" >> ./defines.args
223
            echo "-DEFINE PCI_DECODE_MED         " >> ./defines.args
224 140 mihad
            echo "-DEFINE PCI_SPOCI              " >> ./defines.args
225
            echo "-DEFINE PCI_CPCI_HS_IMPLEMENT  " >> ./defines.args
226 104 mihad
            echo "-DEFINE WB_DECODE_MIN          " >> ./defines.args
227
            echo "-DEFINE PCI66                  " >> ./defines.args
228
            echo "-DEFINE WB_CLK220              " >> ./defines.args
229
            echo "-DEFINE ACTIVE_LOW_OE          " >> ./defines.args
230
            echo "-DEFINE REGISTER_WBM_OUTPUTS   " >> ./defines.args
231
            echo "-DEFINE PCI_IMAGE0             " >> ./defines.args
232
            echo "-DEFINE PCI_IMAGE5             " >> ./defines.args
233
            echo "-DEFINE WB_IMAGE4              " >> ./defines.args
234 132 mihad
 
235
            if ($arg_wb_b3 == 0) then
236
                echo "-DEFINE WB_DECODE_SLOW     " >> ./defines.args
237
                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
238
            else
239
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
240
            endif
241
 
242 104 mihad
        endif
243
 
244
        if ($iter == 5) then
245
            echo "<<< Defines:"
246
 
247
            if ($arg_artisan == 1) then
248
                echo "\tREGR_FIFO_MEDIUM_ARTISAN, "
249
            else
250
                echo "\tREGR_FIFO_MEDIUM_GENERIC, "
251
            endif
252
 
253
            echo "\tGUEST, WB_DECODE_FAST, PCI_DECODE_MIN, "
254
            echo "\tWB_DECODE_MAX, PCI33, WB_CLK220, ACTIVE_LOW_OE, REGISTER_WBM_OUTPUTS, "
255
            echo "\tREGISTER_WBS_OUTPUTS, ADDR_TRAN_IMPL, PCI_IMAGE0, PCI_IMAGE2, "
256
            echo "\tWB_IMAGE2, WB_IMAGE3, WB_IMAGE4. "
257
 
258
            echo "-DEFINE REGRESSION" > ./defines.args
259
 
260
            if ($arg_artisan == 1) then
261
                        echo "-DEFINE REGR_FIFO_MEDIUM_ARTISAN" >> ./defines.args
262
            else
263
                echo "-DEFINE REGR_FIFO_MEDIUM_GENERIC" >> ./defines.args
264
            endif
265
 
266
            echo "-DEFINE GUEST                   " >> ./defines.args
267
            echo "-DEFINE PCI_DECODE_MIN          " >> ./defines.args
268 140 mihad
            echo "-DEFINE PCI_SPOCI               " >> ./defines.args
269 104 mihad
            echo "-DEFINE WB_DECODE_MAX           " >> ./defines.args
270
            echo "-DEFINE PCI33                   " >> ./defines.args
271
            echo "-DEFINE WB_CLK220               " >> ./defines.args
272
            echo "-DEFINE ACTIVE_LOW_OE           " >> ./defines.args
273
            echo "-DEFINE REGISTER_WBM_OUTPUTS    " >> ./defines.args
274
            echo "-DEFINE ADDR_TRAN_IMPL          " >> ./defines.args
275
            echo "-DEFINE PCI_IMAGE0              " >> ./defines.args
276
            echo "-DEFINE PCI_IMAGE2              " >> ./defines.args
277
            echo "-DEFINE WB_IMAGE2               " >> ./defines.args
278
            echo "-DEFINE WB_IMAGE3               " >> ./defines.args
279
            echo "-DEFINE WB_IMAGE4               " >> ./defines.args
280 132 mihad
 
281
            if ($arg_wb_b3 == 0) then
282
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
283
                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
284
            else
285
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
286
            endif
287
 
288 104 mihad
        endif
289
 
290
        if ($iter == 6) then
291
            echo "<<< Defines:"
292
            echo "\tGUEST, REGR_FIFO_LARGE_GENERIC, WB_DECODE_MEDIUM, PCI_DECODE_MAX, "
293
            echo "\tWB_DECODE_MED, PCI66, WB_CLK10, ACTIVE_LOW_OE, REGISTER_WBM_OUTPUTS, "
294
            echo "\tREGISTER_WBS_OUTPUTS, ADDR_TRAN_IMPL. "
295
 
296
            echo "-DEFINE REGRESSION" > ./defines.args
297
 
298
            echo "-DEFINE GUEST                  " >> ./defines.args
299
            echo "-DEFINE REGR_FIFO_LARGE_GENERIC" >> ./defines.args
300
            echo "-DEFINE PCI_DECODE_MAX         " >> ./defines.args
301 140 mihad
            echo "-DEFINE PCI_SPOCI              " >> ./defines.args
302 104 mihad
            echo "-DEFINE WB_DECODE_MED          " >> ./defines.args
303
            echo "-DEFINE PCI66                  " >> ./defines.args
304
            echo "-DEFINE WB_CLK10               " >> ./defines.args
305
            echo "-DEFINE ACTIVE_LOW_OE          " >> ./defines.args
306
            echo "-DEFINE REGISTER_WBM_OUTPUTS   " >> ./defines.args
307
            echo "-DEFINE ADDR_TRAN_IMPL         " >> ./defines.args
308 132 mihad
 
309
            if ($arg_wb_b3 == 0) then
310
                echo "-DEFINE WB_DECODE_MEDIUM    " >> ./defines.args
311
                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
312
            else
313
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
314
            endif
315
 
316 104 mihad
        endif
317
 
318
        if ($iter == 7) then
319
            echo "<<< Defines:"
320
 
321
            if ($arg_xilinx == 0) then
322
                echo "\tREGR_FIFO_SMALL_GENERIC, "
323
            else
324
                echo "\tREGR_FIFO_SMALL_XILINX, "
325
            endif
326
 
327
            echo "\tHOST, WB_DECODE_FAST, PCI_DECODE_MAX, "
328
            echo "\tWB_DECODE_MIN, PCI66, WB_CLK220, ACTIVE_HIGH_OE, WB_CNF_BASE_ZERO, "
329
            echo "\tNO_CNF_IMAGE, PCI_IMAGE0, PCI_IMAGE4. "
330
 
331
            echo "-DEFINE REGRESSION" > ./defines.args
332
 
333
            if ($arg_xilinx == 0) then
334
                echo "-DEFINE REGR_FIFO_SMALL_GENERIC" >> ./defines.args
335
            else
336
                echo "-DEFINE REGR_FIFO_SMALL_XILINX" >> ./defines.args
337
            endif
338
 
339
            echo "-DEFINE HOST            " >> ./defines.args
340
            echo "-DEFINE PCI_DECODE_MAX  " >> ./defines.args
341
            echo "-DEFINE WB_DECODE_MIN   " >> ./defines.args
342
            echo "-DEFINE PCI66           " >> ./defines.args
343
            echo "-DEFINE WB_CLK220       " >> ./defines.args
344
            echo "-DEFINE ACTIVE_HIGH_OE  " >> ./defines.args
345
            echo "-DEFINE WB_CNF_BASE_ZERO" >> ./defines.args
346
            echo "-DEFINE NO_CNF_IMAGE    " >> ./defines.args
347
            echo "-DEFINE PCI_IMAGE0      " >> ./defines.args
348
            echo "-DEFINE PCI_IMAGE4      " >> ./defines.args
349 132 mihad
 
350
            if ($arg_wb_b3 == 0) then
351
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
352
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
353
            else
354
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
355
            endif
356
 
357 104 mihad
        endif
358
 
359
        if ($iter == 8) then
360
            echo "<<< Defines:"
361
            echo "\tHOST, REGR_FIFO_MEDIUM_GENERIC, WB_DECODE_MEDIUM, PCI_DECODE_MED, "
362
            echo "\tWB_DECODE_MED, PCI66, WB_CLK10, ACTIVE_HIGH_OE, WB_CNF_BASE_ZERO, "
363
            echo "\tNO_CNF_IMAGE, PCI_IMAGE0, PCI_IMAGE2, PCI_IMAGE3, PCI_IMAGE4, "
364
            echo "\tPCI_IMAGE5, WB_IMAGE2, WB_IMAGE3, WB_IMAGE4, WB_IMAGE5. "
365
 
366
            echo "-DEFINE REGRESSION" > ./defines.args
367
 
368
            echo "-DEFINE HOST                    " >> ./defines.args
369
            echo "-DEFINE REGR_FIFO_MEDIUM_GENERIC" >> ./defines.args
370
            echo "-DEFINE PCI_DECODE_MED          " >> ./defines.args
371
            echo "-DEFINE WB_DECODE_MED           " >> ./defines.args
372
            echo "-DEFINE PCI66                   " >> ./defines.args
373
            echo "-DEFINE WB_CLK10                " >> ./defines.args
374
            echo "-DEFINE ACTIVE_HIGH_OE          " >> ./defines.args
375
            echo "-DEFINE WB_CNF_BASE_ZERO        " >> ./defines.args
376
            echo "-DEFINE NO_CNF_IMAGE            " >> ./defines.args
377
            echo "-DEFINE PCI_IMAGE0              " >> ./defines.args
378
            echo "-DEFINE PCI_IMAGE2              " >> ./defines.args
379
            echo "-DEFINE PCI_IMAGE3              " >> ./defines.args
380
            echo "-DEFINE PCI_IMAGE4              " >> ./defines.args
381
            echo "-DEFINE PCI_IMAGE5              " >> ./defines.args
382
            echo "-DEFINE WB_IMAGE2               " >> ./defines.args
383
            echo "-DEFINE WB_IMAGE3               " >> ./defines.args
384
            echo "-DEFINE WB_IMAGE4               " >> ./defines.args
385
            echo "-DEFINE WB_IMAGE5               " >> ./defines.args
386 132 mihad
 
387
            if ($arg_wb_b3 == 0) then
388
                echo "-DEFINE WB_DECODE_MEDIUM    " >> ./defines.args
389
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
390
            else
391
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
392
            endif
393
 
394 104 mihad
        endif
395
 
396
        if ($iter == 9) then
397
            echo "<<< Defines:"
398
            echo "\tHOST, REGR_FIFO_LARGE_GENERIC, WB_DECODE_SLOW, PCI_DECODE_MIN, "
399
            echo "\tWB_DECODE_MAX, PCI33, WB_CLK220, ACTIVE_HIGH_OE, ADDR_TRAN_IMPL, "
400
            echo "\tWB_CNF_BASE_ZERO, NO_CNF_IMAGE, WB_IMAGE3. "
401
 
402
            echo "-DEFINE REGRESSION" > ./defines.args
403
 
404
            echo "-DEFINE HOST                   " >> ./defines.args
405
            echo "-DEFINE REGR_FIFO_LARGE_GENERIC" >> ./defines.args
406
            echo "-DEFINE PCI_DECODE_MIN         " >> ./defines.args
407
            echo "-DEFINE WB_DECODE_MAX          " >> ./defines.args
408
            echo "-DEFINE PCI33                  " >> ./defines.args
409
            echo "-DEFINE WB_CLK220              " >> ./defines.args
410
            echo "-DEFINE ACTIVE_HIGH_OE         " >> ./defines.args
411
            echo "-DEFINE ADDR_TRAN_IMPL         " >> ./defines.args
412
            echo "-DEFINE WB_CNF_BASE_ZERO       " >> ./defines.args
413
            echo "-DEFINE NO_CNF_IMAGE           " >> ./defines.args
414
            echo "-DEFINE WB_IMAGE3              " >> ./defines.args
415 132 mihad
 
416
            if ($arg_wb_b3 == 0) then
417
                echo "-DEFINE WB_DECODE_SLOW     " >> ./defines.args
418
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
419
            else
420
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
421
            endif
422
 
423 104 mihad
        endif
424
 
425
        if ($iter == 10) then
426
            echo "<<< Defines:"
427
            echo "\tGUEST, REGR_FIFO_SMALL_GENERIC, WB_DECODE_SLOW, PCI_DECODE_MED, "
428
            echo "\tWB_DECODE_MIN, PCI33, WB_CLK66, ACTIVE_HIGH_OE, ADDR_TRAN_IMPL, "
429
            echo "\tWB_CNF_BASE_ZERO, NO_CNF_IMAGE, PCI_IMAGE0, PCI_IMAGE3. "
430
 
431
            echo "-DEFINE REGRESSION" > ./defines.args
432
 
433
            echo "-DEFINE GUEST                  " >> ./defines.args
434
            echo "-DEFINE REGR_FIFO_SMALL_GENERIC" >> ./defines.args
435
            echo "-DEFINE PCI_DECODE_MED         " >> ./defines.args
436 140 mihad
            echo "-DEFINE PCI_CPCI_HS_IMPLEMENT  " >> ./defines.args
437 104 mihad
            echo "-DEFINE WB_DECODE_MIN          " >> ./defines.args
438
            echo "-DEFINE PCI33                  " >> ./defines.args
439
            echo "-DEFINE WB_CLK66               " >> ./defines.args
440
            echo "-DEFINE ACTIVE_HIGH_OE         " >> ./defines.args
441
            echo "-DEFINE ADDR_TRAN_IMPL         " >> ./defines.args
442
            echo "-DEFINE WB_CNF_BASE_ZERO       " >> ./defines.args
443
            echo "-DEFINE NO_CNF_IMAGE           " >> ./defines.args
444
            echo "-DEFINE PCI_IMAGE0             " >> ./defines.args
445
            echo "-DEFINE PCI_IMAGE3             " >> ./defines.args
446 132 mihad
 
447
            if ($arg_wb_b3 == 0) then
448
                echo "-DEFINE WB_DECODE_SLOW     " >> ./defines.args
449
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
450
            else
451
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
452
            endif
453
 
454 104 mihad
        endif
455
 
456
        if ($iter == 11) then
457
            echo "<<< Defines:"
458
 
459
            if ($arg_xilinx == 1) then
460
                echo "\tREGR_FIFO_MEDIUM_XILINX, "
461
            else if ($arg_artisan == 1) then
462
                echo "\tREGR_FIFO_MEDIUM_ARTISAN, "
463
            else
464
                echo "\tREGR_FIFO_MEDIUM_GENERIC, "
465
            endif
466
 
467
            echo "\tGUEST, WB_DECODE_FAST, PCI_DECODE_MIN, "
468
            echo "\tWB_DECODE_MAX, PCI66, WB_CLK66, ACTIVE_HIGH_OE, WB_CNF_BASE_ZERO, "
469
            echo "\tNO_CNF_IMAGE, PCI_IMAGE0, PCI_IMAGE2, PCI_IMAGE3, PCI_IMAGE4, "
470
            echo "\tPCI_IMAGE5, WB_IMAGE2. "
471
 
472
            echo "-DEFINE REGRESSION" > ./defines.args
473
 
474
            if ($arg_xilinx == 1) then
475
                echo "-DEFINE REGR_FIFO_MEDIUM_XILINX" >> ./defines.args
476
            else if ($arg_artisan == 1) then
477
                        echo "-DEFINE REGR_FIFO_MEDIUM_ARTISAN" >> ./defines.args
478
            else
479
                echo "-DEFINE REGR_FIFO_MEDIUM_GENERIC" >> ./defines.args
480
            endif
481
 
482
            echo "-DEFINE GUEST           " >> ./defines.args
483
            echo "-DEFINE PCI_DECODE_MIN  " >> ./defines.args
484
            echo "-DEFINE WB_DECODE_MAX   " >> ./defines.args
485
            echo "-DEFINE PCI66           " >> ./defines.args
486
            echo "-DEFINE WB_CLK66        " >> ./defines.args
487
            echo "-DEFINE ACTIVE_HIGH_OE  " >> ./defines.args
488 140 mihad
            echo "-DEFINE PCI_SPOCI       " >> ./defines.args
489 104 mihad
            echo "-DEFINE WB_CNF_BASE_ZERO" >> ./defines.args
490
            echo "-DEFINE NO_CNF_IMAGE    " >> ./defines.args
491
            echo "-DEFINE PCI_IMAGE0      " >> ./defines.args
492
            echo "-DEFINE PCI_IMAGE2      " >> ./defines.args
493
            echo "-DEFINE PCI_IMAGE3      " >> ./defines.args
494
            echo "-DEFINE PCI_IMAGE4      " >> ./defines.args
495
            echo "-DEFINE PCI_IMAGE5      " >> ./defines.args
496
            echo "-DEFINE WB_IMAGE2       " >> ./defines.args
497 132 mihad
 
498
            if ($arg_wb_b3 == 0) then
499
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
500
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
501
            else
502
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
503
            endif
504
 
505 104 mihad
        endif
506
 
507
        if ($iter == 12) then
508
            echo "<<< Defines:"
509
            echo "\tGUEST, REGR_FIFO_LARGE_GENERIC, WB_DECODE_MEDIUM, PCI_DECODE_MAX, "
510
            echo "\tWB_DECODE_MED, PCI33, WB_CLK10, ACTIVE_HIGH_OE, WB_CNF_BASE_ZERO, "
511
            echo "\tNO_CNF_IMAGE, WB_IMAGE2, WB_IMAGE3, WB_IMAGE4, WB_IMAGE5. "
512
 
513
            echo "-DEFINE REGRESSION" > ./defines.args
514
 
515
            echo "-DEFINE GUEST                  " >> ./defines.args
516
            echo "-DEFINE REGR_FIFO_LARGE_GENERIC" >> ./defines.args
517
            echo "-DEFINE PCI_DECODE_MAX         " >> ./defines.args
518
            echo "-DEFINE WB_DECODE_MED          " >> ./defines.args
519
            echo "-DEFINE PCI33                  " >> ./defines.args
520
            echo "-DEFINE WB_CLK10               " >> ./defines.args
521
            echo "-DEFINE ACTIVE_HIGH_OE         " >> ./defines.args
522
            echo "-DEFINE WB_CNF_BASE_ZERO       " >> ./defines.args
523
            echo "-DEFINE NO_CNF_IMAGE           " >> ./defines.args
524
            echo "-DEFINE WB_IMAGE2              " >> ./defines.args
525
            echo "-DEFINE WB_IMAGE3              " >> ./defines.args
526
            echo "-DEFINE WB_IMAGE4              " >> ./defines.args
527
            echo "-DEFINE WB_IMAGE5              " >> ./defines.args
528
 
529 132 mihad
            if ($arg_wb_b3 == 0) then
530
                echo "-DEFINE WB_DECODE_MEDIUM    " >> ./defines.args
531
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
532
            else
533
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
534
            endif
535
 
536
 
537 104 mihad
        endif
538
 
539
        if ($iter == 13) then
540
 
541
            echo "<<< Defines:"
542
 
543
            if ($arg_xilinx == 0) then
544
                echo "\tREGR_FIFO_SMALL_GENERIC, "
545
            else
546
                echo "\tREGR_FIFO_SMALL_XILINX, "
547
            endif
548
 
549
            echo "\tGUEST, WB_DECODE_FAST, PCI_DECODE_MAX, "
550
            echo "\tWB_DECODE_MED, PCI66, WB_CLOCK_FOLLOWS_PCI_CLOCK, ACTIVE_HIGH_OE, WB_CNF_BASE_ZERO, "
551
            echo "\tNO_CNF_IMAGE "
552
 
553
            echo "-DEFINE REGRESSION" > ./defines.args
554
 
555
            if ($arg_xilinx == 0) then
556
                echo "-DEFINE REGR_FIFO_SMALL_GENERIC" >> ./defines.args
557
            else
558
                echo "-DEFINE REGR_FIFO_SMALL_XILINX" >> ./defines.args
559
            endif
560
 
561
            echo "-DEFINE GUEST                       " >> ./defines.args
562
            echo "-DEFINE PCI_DECODE_MAX              " >> ./defines.args
563
            echo "-DEFINE WB_DECODE_MED               " >> ./defines.args
564 140 mihad
            echo "-DEFINE PCI_CPCI_HS_IMPLEMENT       " >> ./defines.args
565 104 mihad
            echo "-DEFINE PCI66                       " >> ./defines.args
566
            echo "-DEFINE WB_CLK66                    " >> ./defines.args
567
            echo "-DEFINE ACTIVE_HIGH_OE              " >> ./defines.args
568
            echo "-DEFINE WB_CNF_BASE_ZERO            " >> ./defines.args
569
            echo "-DEFINE NO_CNF_IMAGE                " >> ./defines.args
570
            echo "-DEFINE WB_CLOCK_FOLLOWS_PCI_CLOCK=2" >> ./defines.args
571
 
572 132 mihad
            if ($arg_wb_b3 == 0) then
573
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
574
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
575
            else
576
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
577
            endif
578
 
579
 
580 104 mihad
        endif
581
 
582
        if ($iter == 14) then
583
 
584
            echo "<<< Defines:"
585
 
586
            echo "\tREGR_FIFO_SMALL_GENERIC, "
587
 
588
            echo "\tGUEST, WB_DECODE_FAST, PCI_DECODE_MAX, "
589
            echo "\tWB_DECODE_MED, PCI66, WB_CLOCK_FOLLOWS_PCI_CLOCK, ACTIVE_HIGH_OE, WB_CNF_BASE_ZERO, "
590
            echo "\tNO_CNF_IMAGE "
591
 
592
            echo "-DEFINE REGRESSION" > ./defines.args
593
 
594
            echo "-DEFINE REGR_FIFO_SMALL_GENERIC" >> ./defines.args
595
 
596
            echo "-DEFINE GUEST                       " >> ./defines.args
597
            echo "-DEFINE PCI_DECODE_MAX              " >> ./defines.args
598
            echo "-DEFINE WB_DECODE_MED               " >> ./defines.args
599
            echo "-DEFINE PCI66                       " >> ./defines.args
600
            echo "-DEFINE WB_CLK66                    " >> ./defines.args
601
            echo "-DEFINE ACTIVE_HIGH_OE              " >> ./defines.args
602
            echo "-DEFINE WB_CNF_BASE_ZERO            " >> ./defines.args
603
            echo "-DEFINE NO_CNF_IMAGE                " >> ./defines.args
604
            echo "-DEFINE PCI_CLOCK_FOLLOWS_WB_CLOCK=2" >> ./defines.args
605
 
606 132 mihad
            if ($arg_wb_b3 == 0) then
607
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
608
#                echo "-DEFINE REGISTER_WBS_OUTPUTS" >> ./defines.args
609
            else
610
                echo "-DEFINE WB_DECODE_FAST      " >> ./defines.args
611
            endif
612
 
613
 
614 104 mihad
        endif
615
 
616 140 mihad
        if ($arg_dis_comp_exp_tst) then
617 81 mihad
            echo "-DEFINE DISABLE_COMPLETION_EXPIRED_TESTS" >> ./defines.args
618 104 mihad
        endif
619 106 mihad
 
620
        if ($arg_wb_b3) then
621
            echo "-DEFINE PCI_WB_REV_B3" >> ./defines.args
622
        endif
623 104 mihad
    endif
624 17 mihad
endif
625
 
626
 
627
# Run NC-Verilog compiler
628
echo ""
629
echo "\t@@@"
630
echo "\t@@@ Compiling sources"
631
echo "\t@@@"
632
 
633
# creating .args file for ncvlog and adding main parameters
634
echo "-cdslib ../bin/cds.lib" > ./ncvlog.args
635
echo "-hdlvar ../bin/hdl.var" >> ./ncvlog.args
636
echo "-logfile ../log/ncvlog.log" >> ./ncvlog.args
637
echo "-update" >> ./ncvlog.args
638
echo "-messages" >> ./ncvlog.args
639
echo "-INCDIR ../../../bench/verilog" >> ./ncvlog.args
640
echo "-INCDIR ../../../rtl/verilog" >> ./ncvlog.args
641
# adding defines to .args file
642 104 mihad
if (($arg_regression == 1) && ($iter <= $all_iterations)) then
643 17 mihad
    cat ./defines.args >> ./ncvlog.args
644
endif
645 132 mihad
 
646
echo '-DEFINE PCI_CPCI_SIM' >> ./ncvlog.args
647
 
648 17 mihad
# adding RTL and Sim files to .args file
649
cat ../bin/rtl_file_list.lst >> ./ncvlog.args
650
cat ../bin/sim_file_list.lst >> ./ncvlog.args
651
# adding device dependent files to .args file
652 60 mihad
if ($arg_xilinx == 1) then
653
    cat ../bin/xilinx_file_list.lst >> ./ncvlog.args
654
endif
655
 
656
if ($arg_artisan == 1) then
657
    cat ../bin/artisan_file_list.lst >> ./ncvlog.args
658
endif
659
 
660
if ($arg_vs_hdtp == 1) then
661
    cat ../bin/vs_file_list.lst >> ./ncvlog.args
662
endif
663
 
664 118 tadejm
ncvlog -file ./ncvlog.args #> /dev/null;
665 17 mihad
echo ""
666
 
667
 
668
# Run the NC-Verilog elaborator (build the design hierarchy)
669
echo ""
670
echo "\t@@@"
671
echo "\t@@@ Building design hierarchy (elaboration)"
672
echo "\t@@@"
673
if ($arg_xilinx == 1) then
674 118 tadejm
      ncelab -file ../bin/ncelab_xilinx.args #> /dev/null;
675 17 mihad
else
676 118 tadejm
      ncelab -file ../bin/ncelab.args #> /dev/null;
677 17 mihad
endif
678
echo ""
679
 
680
 
681
# Run the NC-Verilog simulator (simulate the design)
682
echo ""
683
echo "\t###"
684 140 mihad
echo "\t### Running tests (this takes a long time)"
685 17 mihad
echo "\t###"
686 26 mihad
 
687
# creating ncsim.args file for ncsim and adding main parameters
688
echo "-cdslib ../bin/cds.lib" > ./ncsim.args
689
echo "-hdlvar ../bin/hdl.var" >> ./ncsim.args
690 92 mihad
echo "-licqueue" >> ./ncsim.args
691 26 mihad
echo "-logfile ../log/ncsim.log" >> ./ncsim.args
692
echo "-messages" >> ./ncsim.args
693 73 mihad
echo "-tcl" >> ./ncsim.args
694 26 mihad
if ($arg_waves == 1) then
695
  echo "-input ../bin/ncsim_waves.rc" >> ./ncsim.args
696
else
697
  echo "-input ../bin/ncsim.rc" >> ./ncsim.args
698
endif
699
echo "worklib.bridge32:fun" >> ./ncsim.args
700
 
701 118 tadejm
ncsim -file ./ncsim.args #> /dev/null
702 45 mihad
 
703 17 mihad
if ($status != 0) then
704 26 mihad
  echo ""
705
  echo "TESTS couldn't start due to Errors!"
706
  echo ""
707 17 mihad
  exit
708
else
709 26 mihad
  grep -c "FAILED" ../log/pci_tb.log > ./result_fail.out
710
  grep -c "SUCCESSFULL" ../log/pci_tb.log > ./result_succ.out
711
 
712 148 mihad
  set subtest_failed = `tail -n 1 result_fail.out`;
713
  set sub_tests = `tail -n 1 result_succ.out`;
714 26 mihad
  @ sub_tests = $sub_tests + $subtest_failed;
715
 
716
  if ($subtest_failed != 0) then
717
    echo "\t### FAILED $subtest_failed out of $sub_tests testcases of $iter. iteration!"
718
    echo "\t###"
719
    @ iter_failed += 1;
720
    @ all_iters += 1;
721
  else
722
    echo "\t### Passed all $sub_tests testcases of $iter. iteration!"
723
    echo "\t###"
724
    @ all_iters += 1;
725
  endif
726
 
727 104 mihad
  if (($arg_regression == 1) && ($iter <= $all_iterations)) then
728 26 mihad
    if ($arg_waves == 1) then
729
      mv ../out/waves.shm ../out/i${iter}_waves.shm
730
    endif
731
    mv ../log/pci_mon.log ../log/i${iter}_pci_mon.log
732
    mv ../log/pci_tb.log ../log/i${iter}_pci_tb.log
733
    mv ../log/pciu_mon.log ../log/i${iter}_pciu_mon.log
734
    mv ../log/wbu_mon.log ../log/i${iter}_wbu_mon.log
735
    mv ../log/ncsim.log ../log/i${iter}_ncsim.log
736 104 mihad
    mv ../log/ncvlog.log ../log/i${iter}_ncvlog.log
737
    mv ../log/ncelab.log ../log/i${iter}_ncelab.log
738 26 mihad
  endif
739 17 mihad
endif
740
echo ""
741
 
742 26 mihad
@ test_failed = $test_failed + $subtest_failed;
743
@ all_tests = $all_tests + $sub_tests;
744 17 mihad
 
745
@ iter += 1;
746
 
747 26 mihad
if (($arg_regression == 1) && ($iter <= $all_iterations)) then
748 45 mihad
    rm -f ../bin/INCA_libs/worklib/*
749
    rm -f ../bin/INCA_libs/worklib/.*
750 26 mihad
    goto iteration
751 17 mihad
else
752 26 mihad
    rm ./defines.args
753
    echo ""
754
    echo "<<<"
755
    echo "<<< End of Regression Iterations"
756
    echo "<<<"
757
    echo "<<<"
758
    echo "<<< FAILED $iter_failed out of $all_iters iterations!"
759
    echo "<<<"
760
    echo "<<< FAILED $test_failed out of $all_tests testcases!"
761
    echo "<<<"
762
    echo "<<< -------------------------------------------------"
763
    echo "<<<"
764
    echo "<<< See following files for detailed test results:"
765
    echo "<<<   ../log/*pci_tb.log "
766
    echo "<<<   ../log/*pci_mon.log "
767
    echo "<<<   ../log/*pciu_mon.log "
768
    echo "<<<   ../log/*wbu_mon.log "
769
    echo "<<<   ../log/*ncsim.log "
770
    echo "<<<"
771 17 mihad
endif
772 63 mihad
exit
773 17 mihad
 
774 63 mihad
help:
775
        echo ""
776
        echo "Script arguments:"
777
        echo ""
778
        echo "regression  : run all implemented regression iterations on PCI Bridge Design"
779
        echo ""
780
        echo "xilinx      : if you want to run simulation with xilinx RAM primitives. You have to provide RAM16X1D.v, RAMB4_S16_S16.v and glbl.v simulation files."
781
        echo "            : you have to edit ../bin/xilinx_file_list.lst file with the correct paths to these files. Leave other paths as they are!"
782
        echo ""
783
        echo "artisan     : if you want to run simulation with artisan ASIC library vendor RAM primitives. You have to provide simulation models for these, edit ../bin/artisan_file_list.lst,"
784
        echo "            : and optionaly ../../../rtl/verilog/pci_user_constants.v, ../../../bench/verilog/pci_regression_constants.v, ../../../rtl/verilog/wb_tpram.v and ../../../rtl/verilog/pci_tpram.v"
785
        echo ""
786
        echo "waves       : if you want to dump all the signals in the testbench to the signalscan output file in ../out/ directory"
787
        echo ""
788
        echo "vs_two_port : if you want to run simulation with virtual silicon ASIC library vendor RAM primitives. You have to provide simulation models for these, edit ../bin/vs_file_list.lst,"
789
        echo "            : and optionaly ../../../rtl/verilog/pci_user_constants.v, ../../../bench/verilog/pci_regression_constants.v, ../../../rtl/verilog/wb_tpram.v and ../../../rtl/verilog/pci_tpram.v"
790
        echo ""
791
        echo "disable_completion_expired_tests : if you want to disable completion expiration testing during regression run, because these are time consuming tests"
792
        echo ""
793 132 mihad
        echo "wb_b3 : Run complete regression with WISHBONE Slave Unit's WB B3 to WB B2 cycle translation enabled"
794
        echo ""
795 63 mihad
exit
796
 

powered by: WebSVN 2.1.0

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