-
Notifications
You must be signed in to change notification settings - Fork 2
/
qp_system_console
executable file
·35 lines (28 loc) · 1.04 KB
/
qp_system_console
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
#
# Open Quartus Prime System Console
#
# This script also:
# - directs System Console to the location of your hardware project.
# - run System Console Tcl desktop script 'system_console_rc.tcl' from project directory(if it
# exist); looking for initial script at project directory or 'system console' subdirectory.
# Time-stamp: <2022-07-07 09:20:01>
system_console="$QUARTUS_ROOTDIR/sopc_builder/bin/system-console"
if ! hash $system_console 2>/dev/null; then
echo "'$system_console' was not found in PATH"
fi
desk_src_name1="system_console_rc.tcl"
desk_src_name2="system_console/system_console_rc.tcl"
desk_src_arg=""
if [ -s "$desk_src_name1" ]; then
desk_src_arg="--desktop_script=$desk_src_name1"
elif [ -s "$desk_src_name2" ]; then
desk_src_arg="--desktop_script=$desk_src_name2"
fi
$system_console --project_dir=$(pwd) "$desk_src_arg" &
# This is for the sake of Emacs.
# Local Variables:
# time-stamp-end: "$"
# time-stamp-format: "<%:y-%02m-%02d %02H:%02M:%02S>"
# time-stamp-start: "Time-stamp: "
# End: