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_c "
|
echo "USAGE : msp430sim_c "
|
echo "Example : msp430sim_c sandbox"
|
echo "Example : msp430sim_c sandbox"
|
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
|
|
|
|
|
Line 61... |
Line 62... |
# Check if the required files exist #
|
# Check if the required files exist #
|
###############################################################################
|
###############################################################################
|
softdir=../src-c/$1;
|
softdir=../src-c/$1;
|
elffile=../src-c/$1/$1.elf;
|
elffile=../src-c/$1/$1.elf;
|
verfile=../src-c/$1/$1.v;
|
verfile=../src-c/$1/$1.v;
|
submitfile=../src/submit.f;
|
|
incfile=../../../rtl/verilog/openMSP430_defines.v;
|
incfile=../../../rtl/verilog/openMSP430_defines.v;
|
|
submitfile=../src/submit.f;
|
|
if [ $OMSP_SIMULATOR == "isim" ]; then
|
|
submitfile=../src/submit.prj;
|
|
fi
|
|
|
if [ ! -e $softdir ]; then
|
if [ ! -e $softdir ]; then
|
echo "Software directory doesn't exist: $softdir"
|
echo "Software directory doesn't exist: $softdir"
|
exit 1
|
exit 1
|
fi
|
fi
|