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

Subversion Repositories amber

[/] [amber/] [trunk/] [hw/] [isim/] [run.sh] - Diff between revs 75 and 82

Show entire file | Details | Blame | View Log

Rev 75 Rev 82
Line 115... Line 115...
    esac
    esac
done
done
 
 
 
 
if [ $SET_5 == 1 ]; then
if [ $SET_5 == 1 ]; then
    AMBER_CORE="+define+AMBER_A25_CORE"
    AMBER_CORE="AMBER_A25_CORE"
else
else
    AMBER_CORE=" "
    AMBER_CORE="AMBER_A23_CORE"
fi
fi
 
 
 
 
 
 
#--------------------------------------------------------
#--------------------------------------------------------
Line 235... Line 235...
 
 
#--------------------------------------------------------
#--------------------------------------------------------
# ISIM
# ISIM
#--------------------------------------------------------
#--------------------------------------------------------
fuse tb -o amber-test.exe -prj amber-isim.prj \
fuse tb -o amber-test.exe -prj amber-isim.prj \
 
  -d $AMBER_CORE \
  -d BOOT_MEM_FILE=\"$BOOT_MEM_FILE\" \
  -d BOOT_MEM_FILE=\"$BOOT_MEM_FILE\" \
  -d BOOT_MEM_PARAMS_FILE=\"$BOOT_MEM_PARAMS_FILE\" \
  -d BOOT_MEM_PARAMS_FILE=\"$BOOT_MEM_PARAMS_FILE\" \
  -d MAIN_MEM_FILE=\"$MAIN_MEM_FILE\" \
  -d MAIN_MEM_FILE=\"$MAIN_MEM_FILE\" \
  -d AMBER_LOG_FILE=\"$AMBER_LOG_FILE\" \
  -d AMBER_LOG_FILE=\"$AMBER_LOG_FILE\" \
  -d AMBER_TEST_NAME=\"$AMBER_TEST_NAME\" \
  -d AMBER_TEST_NAME=\"$AMBER_TEST_NAME\" \
Line 266... Line 267...
    tail -1 < ${AMBER_LOG_FILE} | grep Passed > /dev/null
    tail -1 < ${AMBER_LOG_FILE} | grep Passed > /dev/null
    if [ $? == 0 ]; then
    if [ $? == 0 ]; then
        TICKS=`tail -1 < ${AMBER_LOG_FILE} | awk '{print $3}'`
        TICKS=`tail -1 < ${AMBER_LOG_FILE} | awk '{print $3}'`
        TOTICKS=$(( $TICKS * 4 + 1000 ))
        TOTICKS=$(( $TICKS * 4 + 1000 ))
        ../tools/set_timeout.sh ${AMBER_TEST_NAME} $TOTICKS
        ../tools/set_timeout.sh ${AMBER_TEST_NAME} $TOTICKS
 
    else
 
        # return non-zero on test fail
 
        exit 1
    fi
    fi
fi
fi
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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