mirror of https://github.com/openXC7/prjxray.git
19 lines
349 B
Bash
Executable File
19 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Check args
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Usage: run_vivado.sh <testbench file>"
|
|
exit -1
|
|
fi
|
|
|
|
# Check if testbench exists
|
|
if [ ! -f $1 ]; then
|
|
echo "Testbench $1 not found!"
|
|
exit -1
|
|
fi
|
|
|
|
# Run Vivado
|
|
TESTBENCH_TITLE=$(basename $1 .v) ${XRAY_VIVADO} -mode batch -source sim.tcl -nojournal -verbose -log vivado.log
|