summaryrefslogtreecommitdiff
path: root/list_targets.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'list_targets.tcl')
-rw-r--r--list_targets.tcl8
1 files changed, 8 insertions, 0 deletions
diff --git a/list_targets.tcl b/list_targets.tcl
new file mode 100644
index 0000000..5cbbc4c
--- /dev/null
+++ b/list_targets.tcl
@@ -0,0 +1,8 @@
+open_hw_manager
+connect_hw_server
+puts "Available targets:"
+foreach target [get_hw_targets] {
+ puts "Target: $target"
+}
+close_hw_manager
+exit \ No newline at end of file