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 | Show entire file | Details | Blame | View Log

Rev 5 Rev 29
Line 8... Line 8...
 
 
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 ""
Line 35... Line 35...
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"
Line 48... Line 48...
        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 "###########################################"
 
 
Line 61... Line 61...
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.