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

Subversion Repositories axi4_tlm_bfm

[/] [axi4_tlm_bfm/] [trunk/] [workspace/] [simulation/] [questa/] [simulate.sh] - Diff between revs 29 and 41

Show entire file | Details | Blame | View Log

Rev 29 Rev 41
Line 29... Line 29...
#       @Description:
#       @Description:
#
#
 
 
#read -p "press Enter to run full simulation now, or Ctrl-C to exit: ";
#read -p "press Enter to run full simulation now, or Ctrl-C to exit: ";
echo $(date "+[%Y-%m-%d %H:%M:%S]: Removing previously-generated files and folders...");
echo $(date "+[%Y-%m-%d %H:%M:%S]: Removing previously-generated files and folders...");
rm -rf modelsim.ini ./simulate.log ./work ./altera ./osvvm ./tauhop;
rm -rf ./modelsim.ini ./vsim.wlf ./wlf* ./simulate.log ./work ./altera ./osvvm ./tauhop;
 
 
echo $(date "+[%Y-%m-%d %H:%M:%S]: Remove successful.");
echo $(date "+[%Y-%m-%d %H:%M:%S]: Remove successful.");
echo $(date "+[%Y-%m-%d %H:%M:%S]: Compiling project...");
echo $(date "+[%Y-%m-%d %H:%M:%S]: Compiling project...");
vlib work; vmap work work;
vlib work; vmap work work;
vlib osvvm; vmap osvvm osvvm;
vlib osvvm; vmap osvvm osvvm;
Line 59... Line 59...
 
 
errorStr=`grep "\*\* Error: " ./simulate.log`
errorStr=`grep "\*\* Error: " ./simulate.log`
if [ `echo ${#errorStr}` -gt 0 ]
if [ `echo ${#errorStr}` -gt 0 ]
then echo "Errors exist. Refer simulate.log for more details. Exiting."; exit;
then echo "Errors exist. Refer simulate.log for more details. Exiting."; exit;
else
else
        vsim -t ps -do ./waves.do -voptargs="+acc" "work.user(rtl)";
        vsim -t ps -i -do ./waves.do -voptargs="+acc" "work.user(rtl)";
        echo $(date "+[%Y-%m-%d %H:%M:%S]: simulation loaded.");
        echo $(date "+[%Y-%m-%d %H:%M:%S]: simulation loaded.");
fi
fi
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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