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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [run/] [run_c] - Diff between revs 138 and 145

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

powered by: WebSVN 2.1.0

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