Update openfpga.sh to allow run-flow and simulation at the same time

This commit is contained in:
AurelienUoU 2019-12-03 14:07:10 -07:00
parent 2f14716f13
commit 4b4b38d4e8
1 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,12 @@ check_execution_path (){
fi
}
run-task-with-modelsim () {
echo "Script as to be run as \"run-task-with-modelsim task_name --maxthreads nb_threads other_run-modelsim_options\""
$PYTHON_EXEC $OPENFPGA_SCRIPT_PATH/run_fpga_task.py $1 $2 $3
$PYTHON_EXEC $OPENFPGA_SCRIPT_PATH/run_modelsim.py "$@"
}
run-task () {
$PYTHON_EXEC $OPENFPGA_SCRIPT_PATH/run_fpga_task.py "$@"
}
@ -76,4 +82,4 @@ fi
TaskList=$(ls -tdalh ${OPENFPGA_TASK_PATH}/* | awk '{system("basename " $9)}' | awk '{printf("%s ",$1)}')
complete -W "${TaskList}" goto-task
complete -W "${TaskList}" run-task
complete -W "${TaskList}" run-modelsim
complete -W "${TaskList}" run-modelsim