Add scripts for vortex binfile setup and sim runs

This commit is contained in:
Hansung Kim
2023-12-30 16:36:34 -08:00
parent ba6c80768e
commit fdf02063a3
2 changed files with 42 additions and 0 deletions

19
sims/switch-vortex.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
if [ $# -ne 1 ]; then
echo "usage: $0 kernelname"
exit 1
fi
KERNEL=$1
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $SCRIPT_DIR
if ! [ -f "args.bin.$KERNEL" ]; then
echo "error: args.bin.$KERNEL not found"
exit 1
fi
cp -Pv args.bin{.$KERNEL,}
cp -Pv op_a.bin{.$KERNEL,}
cp -Pv op_b.bin{.$KERNEL,}