Debian Codegraph @

thirdparty/analogdevicesinc/no-OS/scripts/xsdb.tcl

raw
1 # xsdb tcl file
2
3 set m_type [lindex $argv 0]
4
5 connect
6
7 if {$m_type == "ZYNQ_PSU"} {
8 targets -set -filter {name =~ "PSU"}
9 }
10
11 if {$m_type == "ZYNQ_PS7"} {
12 targets -set -filter {name =~ "xc7z*"}
13 }
14
15 if {$m_type == "MICROBLAZE"} {
16 targets -set -filter {name =~ "xc*"}
17 }
18
19 fpga -file hw/system_top.bit
20
21 if {$m_type == "ZYNQ_PSU"} {
22 targets -set -filter {name =~ "APU*"}
23 source hw/psu_init.tcl
24 psu_init
25 psu_post_config
26 }
27
28 if {$m_type == "ZYNQ_PS7"} {
29 targets -set -filter {name =~ "APU*"}
30 source hw/ps7_init.tcl
31 ps7_init
32 ps7_post_config
33 }
34
35 if {$m_type == "ZYNQ_PSU"} {
36 }
37
38 if {$m_type == "ZYNQ_PS7"} {
39 targets -set -filter {name =~ "*Cortex-A9 MPCore #0*"}
40 }
41
42 if {$m_type == "MICROBLAZE"} {
43 after 1000
44 targets -set -filter {name =~ "*MicroBlaze*"}
45 }
46
47 dow sw/Release/sw.elf
48 con
49 disconnect
50 exit
51