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

Subversion Repositories amber

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /amber/trunk/hw/tools
    from Rev 15 to Rev 17
    Reverse comparison

Rev 15 → Rev 17

/all.sh
49,7 → 49,7
mul mla \
swp \
\
irq firq swi undefined_ins addr_ex \
irq firq swi undefined_ins addr_ex irq_stm \
\
cache1 cache2 cache3 cache_swap \
cacheable_area cache_flush \
66,14 → 66,15
mlas_bug inflate_bug swp_lock_bug \
cache_swap_bug \
"
LOF_FILE=$1
 
echo "----------------------------------" >> hw-tests.log
date >> hw-tests.log
echo "----------------------------------" >> ${LOF_FILE}
date >> ${LOF_FILE}
 
for i in $TEST_LIST; do
echo "Run test $i"
../tools/run.sh ${i} $1 $2
../tools/run.sh ${i} $2 $3
done
 
echo "----------------------------------" >> hw-tests.log
echo "----------------------------------" >> ${LOF_FILE}
 
/run.sh
45,6 → 45,7
#--------------------------------------------------------
AMBER_LOAD_MAIN_MEM=" "
AMBER_TIMEOUT=0
AMBER_LOG_FILE="tests.log"
SET_G=0
SET_M=0
SET_D=0
186,7 → 187,7
CORE=" "
fi
../tools/all.sh $TECH $CORE
../tools/all.sh ${AMBER_LOG_FILE} ${TECH} ${CORE}
exit
fi
 
232,7 → 233,6
popd > /dev/null
BOOT_MEM_FILE="../tests/${AMBER_TEST_NAME}.mem"
BOOT_MEM_PARAMS_FILE="../tests/${AMBER_TEST_NAME}_memparams.v"
AMBER_LOG_FILE="hw-tests.log"
# Get timeout
AMBER_TIMEOUT=`../tools/get_timeout.sh ${AMBER_TEST_NAME}`
echo "Timeout $AMBER_TIMEOUT"
244,7 → 244,6
popd > /dev/null
BOOT_MEM_FILE="../../sw/${AMBER_TEST_NAME}/${AMBER_TEST_NAME}.mem"
BOOT_MEM_PARAMS_FILE="../../sw/${AMBER_TEST_NAME}/${AMBER_TEST_NAME}_memparams.v"
AMBER_LOG_FILE="${AMBER_TEST_NAME}.log"
 
elif [ $TEST_TYPE == 3 ] || [ $TEST_TYPE == 4 ]; then
# sw test using boot loader
268,7 → 267,6
BOOT_MEM_PARAMS_FILE="../../sw/boot-loader/boot-loader_memparams.v"
MAIN_MEM_FILE="../../sw/${AMBER_TEST_NAME}/${AMBER_TEST_NAME}.mem"
AMBER_LOAD_MAIN_MEM="+define+AMBER_LOAD_MAIN_MEM"
AMBER_LOG_FILE="${AMBER_TEST_NAME}.log"
 
else
echo "Error unrecognized test type"
311,9 → 309,9
# Set a timeout value for the test if it passed
if [ $TEST_TYPE == 1 ]; then
tail -1 < hw-tests.log | grep Passed > /dev/null
tail -1 < ${AMBER_LOG_FILE} | grep Passed > /dev/null
if [ $? == 0 ]; then
TICKS=`tail -1 < hw-tests.log | awk '{print $3}'`
TICKS=`tail -1 < ${AMBER_LOG_FILE} | awk '{print $3}'`
TOTICKS=$(( $TICKS * 4 + 1000 ))
../tools/set_timeout.sh ${AMBER_TEST_NAME} $TOTICKS
fi

powered by: WebSVN 2.1.0

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