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

Subversion Repositories turbo8051

[/] [turbo8051/] [trunk/] [verif/] [run/] [run_vlog] - Diff between revs 15 and 76

Show entire file | Details | Blame | View Log

Rev 15 Rev 76
Line 1... Line 1...
#!/bin/csh -f
#!/bin/csh -f
#
#
# test all programs with ethernet controler
# test all programs with ethernet controler
#
#
 
 
 
 
 
set COV   = "1"
set failedi = 0;
set failedi = 0;
set failedx = 0;
set failedx = 0;
set all_testsi = 0;
set all_testsi = 0;
set all_testsx = 0;
set all_testsx = 0;
 
 
set internal_tests=(gmac_test_1 uart_test_1 spi_test_1)
set internal_tests=(uart_test_1)
 
 
 
 
 
echo " Compiling with cadence tools - irun "
 
 
set external_tests=(gmac_test_1 uart_test_1 spi_test_1)
if (${COV} == 0) then
 
     set VERILOG     = "irun -64bit -sv -elaborate +access+rcw +nospecify +define+SFLASH_SDPUP -V93 -define S75"
 
     set ELAB        = "irun -64bit -R +access+rcw"
 
     echo " Compiling with IES without coverage"
 
 else
 
     set VERILOG     = "irun  -64bit -sv -elaborate +access+rcw +define+SFLASH_SDPUP +nospecify -V93 -define S75 -covfile cov_options.ccf -covoverwrite"
 
     set ELAB        = "irun -64bit -R +access+rcw -covfile cov_options.ccf -covoverwrite"
 
     echo " Compiling with IES with coverage"
 
 
 
 endif
 
 
echo " Compiling with VCS "
 
 
 
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
$VERILOG -f filelist_top.f -l ../log/complie.log
 
 
 
 
if ($status != 0) then
if ($status != 0) then
  echo "#### Compile : FAILED"
  echo "#### Compile : FAILED"
  echo ""
  echo ""
Line 37... Line 50...
foreach internal_test ($internal_tests)
foreach internal_test ($internal_tests)
        @ i += 1;
        @ i += 1;
        #echo ""
        #echo ""
        #echo "### Running test ${i}: ${internal_test}"
        #echo "### Running test ${i}: ${internal_test}"
 
 
        simv +DUMP +${internal_test} > ../log/run.log
        $ELAB +DUMP +${internal_test} -l ../log/run.log
        if ($status != 0) then
        if ($status != 0) then
          cat ../log/run.log
          cat ../log/run.log
          exit
          exit
        else if (`tail -100 ../log/run.log | grep PASSED` == "") then
        else if (`tail -100 ../log/run.log | grep PASSED` == "") then
          echo "### test ${i}: ${internal_test} --> FAILED"
          echo "### test ${i}: ${internal_test} --> FAILED"

powered by: WebSVN 2.1.0

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