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

Subversion Repositories sdr_ctrl

[/] [sdr_ctrl/] [trunk/] [verif/] [run/] [run_modelsim] - Diff between revs 5 and 29

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 5 Rev 29
#!/bin/csh -f
#!/bin/csh -f
#
#
# test all programs with SDRAM CONTROLLER
# test all programs with SDRAM CONTROLLER
#
#
set failedm = 0;
set failedm = 0;
set all_testsm = 0;
set all_testsm = 0;
set sdr_tests =(basic_test1 )
set sdr_tests =(basic_test1 )
#set misc_tests=( )
#set misc_tests=( )
 
 
echo " Compiling with MODELSIM in $1 Mode "
echo " Compiling with MODELSIM in $1 $2 Mode "
 
 
./compile.modelsim $1 | tee ../log/$1_complie.log
./compile.modelsim $1 $2 | tee ../log/$1_$2_complie.log
 
 
if ($status != 0) then
if ($status != 0) then
  echo "#### Compile : FAILED"
  echo "#### Compile : FAILED"
  echo ""
  echo ""
  cat ../log/complie.log
  cat ../log/complie.log
  exit
  exit
else
else
  echo "#### Compile : PASSED"
  echo "#### Compile : PASSED"
endif
endif
echo ""
echo ""
echo "###########################################"
echo "###########################################"
echo " Runing GMAC/SPI/UART test programs "
echo " Runing GMAC/SPI/UART test programs "
echo "###########################################"
echo "###########################################"
set i = 0;
set i = 0;
        echo "###########################################"
        echo "###########################################"
foreach run_test ($sdr_tests)
foreach run_test ($sdr_tests)
        @ i += 1;
        @ i += 1;
        #echo ""
        #echo ""
        echo "### Running test ${i}: ${run_test}"
        echo "### Running test ${i}: ${run_test}"
 
 
        vsim -do run.do -c tb_top +${run_test} | tee  ../log/run.log
        vsim -do run.do -c tb_$1 +${run_test} | tee  ../log/run.log
        if ($status != 0) then
        if ($status != 0) then
          cat ../log/run.log
          cat ../log/run.log
          exit
          exit
        else if (`tail ../log/run.log | grep PASSED` == "") then
        else if (`tail ../log/run.log | grep PASSED` == "") then
          echo "### test ${i}: ${run_test} --> FAILED"
          echo "### test ${i}: ${run_test} --> FAILED"
          @ failedm += 1;
          @ failedm += 1;
          @ all_testsm += 1;
          @ all_testsm += 1;
        else
        else
          echo "### test ${i}: ${run_test} --> PASSED"
          echo "### test ${i}: ${run_test} --> PASSED"
          @ all_testsm += 1;
          @ all_testsm += 1;
        endif
        endif
 
 
        mv ../log/run.log ../log/$1_${run_test}.log
        mv ../log/run.log ../log/$1_$2_${run_test}.log
 
 
end
end
    echo "###########################################"
    echo "###########################################"
set i = 0;
set i = 0;
echo ""
echo ""
echo "###########################################"
echo "###########################################"
echo "###  Test Logs                            "
echo "###  Test Logs                            "
foreach run_test ($sdr_tests)
foreach run_test ($sdr_tests)
          @ i += 1;
          @ i += 1;
          echo "   test ${i}: ../log/$1_${run_test}.log"
          echo "   test ${i}: ../log/$1_$2_${run_test}.log"
 
 
end
end
    echo "###########################################"
    echo "###########################################"
echo ""
echo ""
echo "###########################################"
echo "###########################################"
echo "###  Test Summary                          "
echo "###  Test Summary                          "
echo "### "
echo "### "
echo "### Failed $failedm of $all_testsm $1 tests"
echo "### Failed $failedm of $all_testsm $2 tests"
echo "###########################################"
echo "###########################################"
 
 

powered by: WebSVN 2.1.0

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