File tree 2 files changed +14
-6
lines changed
common/shell_current/build/scripts
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 3
3
* /build /bitstreams /* .log
4
4
* /build /bitstreams /* .bin
5
5
* .bin
6
+ * /build /checkpoints
6
7
* /build /checkpoints /* .dcp
7
8
* /build /reports /* .rpt
8
9
* /build /reports /* .txt
Original file line number Diff line number Diff line change 18
18
# Usage help
19
19
function usage
20
20
{
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] | ]"
22
22
}
23
23
24
24
# Default arguments for script and strategy
25
25
strategy=DEFAULT
26
26
vivado_script=" create_dcp_from_cl.tcl"
27
+ block=0
27
28
28
29
# Parse command-line arguments
29
30
while [ " $1 " != " " ]; do
@@ -34,6 +35,8 @@ while [ "$1" != "" ]; do
34
35
-strategy ) shift
35
36
strategy=$1
36
37
;;
38
+ -block ) block=1
39
+ ;;
37
40
-h | -H | -help ) usage
38
41
exit
39
42
;;
@@ -94,8 +97,12 @@ echo "AWS FPGA: Environment variables and directories are present. Checking for
94
97
vivado -version > /dev/null 2>&1 || { echo >&2 " ERROR - Please install/enable Vivado." ; return 1; }
95
98
96
99
# 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