#!/bin/bash

cd $(dirname $0)
bindir=$(dirname $(dirname $(pwd)))/bin/Linux64

apps=$(ls *.elf | sort -d)
PS3='Please Choose Vector Example: '
select app in $apps
do
    break
done
echo "Selected Example $app"

# Run Example
${bindir}/riscvOVPsim.exe \
    --program ${app} \
    --variant RVB64I \
    --override riscvOVPsim/cpu/add_Extensions=MAFDCVSU \
    --override riscvOVPsim/cpu/vector_version=0.7.1-draft-20190605 \
    --override riscvOVPsim/cpu/VLEN=512 \
    --override riscvOVPsim/cpu/SLEN=64 \
    "$@"
