File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
common/shell_current/build/scripts Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 33* /build /bitstreams /* .log
44* /build /bitstreams /* .bin
55* .bin
6+ * /build /checkpoints
67* /build /checkpoints /* .dcp
78* /build /reports /* .rpt
89* /build /reports /* .txt
Original file line number Diff line number Diff line change 1818# Usage help
1919function usage
2020{
21- echo " usage: aws_build_dcp_from_cl.sh [ [-script <vivado_script>] | [-strategy BASIC | DEFAULT | EXPLORE | TIMING | CONGESTION] | [-h] | [-H] | [-help] | ]"
21+ echo " usage: aws_build_dcp_from_cl.sh [ [-script <vivado_script>] | [-strategy BASIC | DEFAULT | EXPLORE | TIMING | CONGESTION] [-block] | [-h] | [-H] | [-help] | ]"
2222}
2323
2424# Default arguments for script and strategy
2525strategy=DEFAULT
2626vivado_script=" create_dcp_from_cl.tcl"
27+ block=0
2728
2829# Parse command-line arguments
2930while [ " $1 " != " " ]; do
@@ -34,6 +35,8 @@ while [ "$1" != "" ]; do
3435 -strategy ) shift
3536 strategy=$1
3637 ;;
38+ -block ) block=1
39+ ;;
3740 -h | -H | -help ) usage
3841 exit
3942 ;;
@@ -94,8 +97,12 @@ echo "AWS FPGA: Environment variables and directories are present. Checking for
9497vivado -version > /dev/null 2>&1 || { echo >&2 " ERROR - Please install/enable Vivado." ; return 1; }
9598
9699# Run vivado
97- nohup vivado -mode batch -nojournal -log $logname -source $vivado_script -tclargs $timestamp $strategy > $timestamp .nohup.out 2>&1 &
98-
99- echo " AWS FPGA: Build through Vivado is running as background process, this may take few hours."
100- echo " AWS FPGA: You can set up an email notification upon Vivado run finish by following the instructions in TBD"
101-
100+ cmd=" vivado -mode batch -nojournal -log $logname -source $vivado_script -tclargs $timestamp $strategy "
101+ if [[ " $block " == " 0" ]]; then
102+ nohup $cmd > $timestamp .nohup.out 2>&1 &
103+
104+ echo " AWS FPGA: Build through Vivado is running as background process, this may take few hours."
105+ echo " AWS FPGA: You can set up an email notification upon Vivado run finish by following the instructions in TBD"
106+ else
107+ $cmd
108+ fi
You can’t perform that action at this time.
0 commit comments