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

Subversion Repositories turbo8051

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

Go to most recent revision | 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
 
6
set failedi = 0;
7
set failedx = 0;
8
set all_testsi = 0;
9
set all_testsx = 0;
10
 
11
set internal_tests=(gmac_test_1 uart_test_1 spi_test_1)
12
 
13
set external_tests=(gmac_test_1 uart_test_1 spi_test_1)
14
 
15
echo " Compiling with VCS "
16
 
17
ncxlmode -sverilog -I -notice +libext+.v +systemverilogext+.sv -full64 -P /tools/novas/Novas-200704/share/PLI/vcsd2006.06/LINUX64/vcsd.tab /tools/novas/Novas-200704/share/PLI/vcsd2006.06/LINUX64/pli.a +define+SFLASH_SPDUP -f filelist_top.f -l ../log/complie.log
18
 
19
 
20
if ($status != 0) then
21
  echo "#### Compile : FAILED"
22
  echo ""
23
  cat ../log/complie.log
24
  exit
25
else
26
  echo "#### Compile : PASSED"
27
endif
28
 
29
 
30
echo ""
31
echo "###########################################"
32
echo " Runing test programs "
33
echo "###########################################"
34
 
35
set i = 0;
36
        echo "###########################################"
37
foreach internal_test ($internal_tests)
38
        @ i += 1;
39
        #echo ""
40
        #echo "### Running test ${i}: ${internal_test}"
41
 
42
        simv +DUMP +${internal_test} > ../log/run.log
43
        if ($status != 0) then
44
          cat ../log/run.log
45
          exit
46
        else if (`tail -100 ../log/run.log | grep PASSED` == "") then
47
          echo "### test ${i}: ${internal_test} --> FAILED"
48
          @ failedi += 1;
49
          @ all_testsi += 1;
50
        else
51
          echo "### test ${i}: ${internal_test} --> PASSED"
52
          @ all_testsi += 1;
53
        endif
54
 
55
        mv ../log/run.log ../log/${internal_test}.log
56
 
57
 
58
end
59
    echo "###########################################"
60
 
61
 
62
set i = 0;
63
echo ""
64
echo "###########################################"
65
echo "###  Test Logs                            "
66
foreach internal_test ($internal_tests)
67
          @ i += 1;
68
          echo "   test ${i}: ../log/${internal_test}.log"
69
 
70
end
71
    echo "###########################################"
72
 
73
echo ""
74
echo "###########################################"
75
echo "###  Test Summary                          "
76
echo "### "
77
echo "### Failed $failedi of $all_testsi internal tests"
78
echo "###########################################"
79
 

powered by: WebSVN 2.1.0

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