Line 27... |
Line 27... |
#
|
#
|
# Author(s):
|
# Author(s):
|
# - Olivier Girard, olgirard@gmail.com
|
# - Olivier Girard, olgirard@gmail.com
|
#
|
#
|
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
# $Rev: 111 $
|
# $Rev: 122 $
|
# $LastChangedBy: olivier.girard $
|
# $LastChangedBy: olivier.girard $
|
# $LastChangedDate: 2011-05-20 22:39:02 +0200 (Fri, 20 May 2011) $
|
# $LastChangedDate: 2011-10-05 22:29:45 +0200 (Wed, 05 Oct 2011) $
|
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
|
|
###############################################################################
|
###############################################################################
|
# Parameter Check #
|
# Parameter Check #
|
###############################################################################
|
###############################################################################
|
Line 41... |
Line 41... |
if [ $# -ne $EXPECTED_ARGS ]; then
|
if [ $# -ne $EXPECTED_ARGS ]; then
|
echo "ERROR : wrong number of arguments"
|
echo "ERROR : wrong number of arguments"
|
echo "USAGE : msp430sim "
|
echo "USAGE : msp430sim "
|
echo "Example : msp430sim c-jump_jge"
|
echo "Example : msp430sim c-jump_jge"
|
echo ""
|
echo ""
|
echo "In order to switch the verilog simulator, the MYVLOG environment"
|
echo "In order to switch the verilog simulator, the OMSP_SIMULATOR environment"
|
echo "variable can be set to the following values:"
|
echo "variable can be set to the following values:"
|
echo ""
|
echo ""
|
echo " - iverilog : Icarus Verilog (default)"
|
echo " - iverilog : Icarus Verilog (default)"
|
echo " - cver : CVer"
|
echo " - cver : CVer"
|
echo " - verilog : Verilog-XL"
|
echo " - verilog : Verilog-XL"
|
echo " - ncverilog : NC-Verilog"
|
echo " - ncverilog : NC-Verilog"
|
echo " - vcs : VCS"
|
echo " - vcs : VCS"
|
echo " - vsim : Modelsim"
|
echo " - vsim : Modelsim"
|
|
echo " - isim : Xilinx simulator"
|
echo ""
|
echo ""
|
exit 1
|
exit 1
|
fi
|
fi
|
|
|
|
|
###############################################################################
|
###############################################################################
|
# Check if the required files exist #
|
# Check if the required files exist #
|
###############################################################################
|
###############################################################################
|
asmfile=../src/$1.s43;
|
asmfile=../src/$1.s43;
|
verfile=../src/$1.v;
|
verfile=../src/$1.v;
|
submitfile=../src/submit.f;
|
|
incfile=../../../rtl/verilog/openMSP430_defines.v;
|
incfile=../../../rtl/verilog/openMSP430_defines.v;
|
deffile=../bin/template.def;
|
deffile=../bin/template.def;
|
|
submitfile=../src/submit.f;
|
|
if [ $OMSP_SIMULATOR == "isim" ]; then
|
|
submitfile=../src/submit.prj;
|
|
fi
|
|
|
if [ ! -e $asmfile ]; then
|
if [ ! -e $asmfile ]; then
|
echo "Assembler file $asmfile doesn't exist: $asmfile"
|
echo "Assembler file $asmfile doesn't exist: $asmfile"
|
exit 1
|
exit 1
|
fi
|
fi
|