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

Subversion Repositories ethmac

[/] [ethmac/] [trunk/] [sim/] [rtl_sim/] [bin/] [run_sim] - Blame information for rev 343

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

Line No. Rev Author Line
1 291 tadejm
#!/bin/csh -f
2
 
3
set arg_num = $#argv; # number of arguments
4
 
5
if ($arg_num < 1) then
6
    echo " "
7
    echo "Missing required ATS argument:"
8
    echo "  '-r' for regression"
9
    echo " "
10
    exit
11
endif
12
 
13
set cur_arg = 1
14
set arg_chk = 0
15
 
16
set regression = 0
17
 
18
while ($cur_arg <= $arg_num)
19
    if ("$argv[$cur_arg]" == "-r") then
20
        @ regression = 1
21
        @ arg_chk = $arg_chk + 1
22
    endif
23
 
24
    if ($arg_chk != $cur_arg) then
25
        echo " "
26
        echo "Invalid argument $argv[$cur_arg]"
27
        echo " "
28
        exit
29
    endif
30
 
31
    @ cur_arg = $cur_arg + 1
32
end
33
 
34
if ($regression == 0) then
35
    echo " "
36
    echo "Missing required ATS argument:"
37
    echo "  '-r' for regression"
38
    echo " "
39
    exit
40
else
41
    echo " "
42
    echo "ATS running ethernet script with following argument:"
43
    echo "  '-r' for regression"
44
    echo " "
45
    ../run/run_eth_sim_regr.scr -r
46
endif
47
 

powered by: WebSVN 2.1.0

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