URL
https://opencores.org/ocsvn/openmsp430/openmsp430/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 138 |
Rev 145 |
Line 1... |
Line 1... |
#!/bin/bash
|
#!/bin/bash
|
|
|
|
###############################################################################
|
|
# Configuration #
|
|
###############################################################################
|
|
|
# Enable/Disable waveform dumping
|
# Enable/Disable waveform dumping
|
OMSP_NODUMP=0
|
OMSP_NODUMP=0
|
export OMSP_NODUMP
|
export OMSP_NODUMP
|
|
|
# Choose simulator:
|
# Choose simulator:
|
Line 12... |
Line 16... |
# - vcs : VCS
|
# - vcs : VCS
|
# - vsim : Modelsim
|
# - vsim : Modelsim
|
OMSP_SIMULATOR=iverilog
|
OMSP_SIMULATOR=iverilog
|
export OMSP_SIMULATOR
|
export OMSP_SIMULATOR
|
|
|
|
###############################################################################
|
|
# Parameter Check #
|
|
###############################################################################
|
|
EXPECTED_ARGS=1
|
|
if [ $# -ne $EXPECTED_ARGS ]; then
|
|
echo "ERROR : wrong number of arguments"
|
|
echo "USAGE : run_c "
|
|
echo "Example : run_c sandbox"
|
|
echo ""
|
|
echo "Available tests:"
|
|
echo -ne " "
|
|
ls ../src-c/
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
|
|
###############################################################################
|
|
# Check if the required files exist #
|
|
###############################################################################
|
|
softdir=../src-c/$1;
|
|
|
../bin/msp430sim_c sandbox
|
if [ ! -e $softdir ]; then
|
|
echo "ERROR: test directory doesn't exist: $softdir"
|
|
echo ""
|
|
echo "Available tests:"
|
|
echo -ne " "
|
|
ls ../src-c/
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
|
|
../bin/msp430sim_c $1
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.