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

Subversion Repositories turbo8051

[/] [turbo8051/] [trunk/] [verif/] [run/] [run_vlog] - Blame information for rev 76

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 dinesha
#!/bin/csh -f
2
#
3
# test all programs with ethernet controler
4
#
5 76 dinesha
 
6
 
7
set COV   = "1"
8 15 dinesha
set failedi = 0;
9
set failedx = 0;
10
set all_testsi = 0;
11
set all_testsx = 0;
12
 
13 76 dinesha
set internal_tests=(uart_test_1)
14 15 dinesha
 
15
 
16 76 dinesha
echo " Compiling with cadence tools - irun "
17 15 dinesha
 
18 76 dinesha
if (${COV} == 0) then
19
     set VERILOG     = "irun -64bit -sv -elaborate +access+rcw +nospecify +define+SFLASH_SDPUP -V93 -define S75"
20
     set ELAB        = "irun -64bit -R +access+rcw"
21
     echo " Compiling with IES without coverage"
22
 else
23
     set VERILOG     = "irun  -64bit -sv -elaborate +access+rcw +define+SFLASH_SDPUP +nospecify -V93 -define S75 -covfile cov_options.ccf -covoverwrite"
24
     set ELAB        = "irun -64bit -R +access+rcw -covfile cov_options.ccf -covoverwrite"
25
     echo " Compiling with IES with coverage"
26 15 dinesha
 
27 76 dinesha
 endif
28 15 dinesha
 
29 76 dinesha
 
30
$VERILOG -f filelist_top.f -l ../log/complie.log
31
 
32
 
33 15 dinesha
if ($status != 0) then
34
  echo "#### Compile : FAILED"
35
  echo ""
36
  cat ../log/complie.log
37
  exit
38
else
39
  echo "#### Compile : PASSED"
40
endif
41
 
42
 
43
echo ""
44
echo "###########################################"
45
echo " Runing test programs "
46
echo "###########################################"
47
 
48
set i = 0;
49
        echo "###########################################"
50
foreach internal_test ($internal_tests)
51
        @ i += 1;
52
        #echo ""
53
        #echo "### Running test ${i}: ${internal_test}"
54
 
55 76 dinesha
        $ELAB +DUMP +${internal_test} -l ../log/run.log
56 15 dinesha
        if ($status != 0) then
57
          cat ../log/run.log
58
          exit
59
        else if (`tail -100 ../log/run.log | grep PASSED` == "") then
60
          echo "### test ${i}: ${internal_test} --> FAILED"
61
          @ failedi += 1;
62
          @ all_testsi += 1;
63
        else
64
          echo "### test ${i}: ${internal_test} --> PASSED"
65
          @ all_testsi += 1;
66
        endif
67
 
68
        mv ../log/run.log ../log/${internal_test}.log
69
 
70
 
71
end
72
    echo "###########################################"
73
 
74
 
75
set i = 0;
76
echo ""
77
echo "###########################################"
78
echo "###  Test Logs                            "
79
foreach internal_test ($internal_tests)
80
          @ i += 1;
81
          echo "   test ${i}: ../log/${internal_test}.log"
82
 
83
end
84
    echo "###########################################"
85
 
86
echo ""
87
echo "###########################################"
88
echo "###  Test Summary                          "
89
echo "### "
90
echo "### Failed $failedi of $all_testsi internal tests"
91
echo "###########################################"
92
 

powered by: WebSVN 2.1.0

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