OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [perl_gui/] [lib/] [tcl/] [read.tcl] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 alirezamon
#/usr/bin/tclsh
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
## Setup USB hardware - assumes only USB Blaster is installed and
12
## an FPGA is the only device in the JTAG chain
13
set usb [lindex [get_hardware_names] 0]
14
set device_name [lindex [get_device_names -hardware_name $usb] 0]
15
 
16
puts $usb
17
puts $device_name
18
 
19
 
20
 
21
 
22
# List information of all In-System Sources and Probes instances
23
puts "Information on all In-System Sources and Probes instances:"
24
puts "index,source_width,probe_width,name"
25
 
26
#check if done is asserted
27
 
28
if { [lindex $::argv 0] eq "done" } {
29
 
30
        start_insystem_source_probe -device_name $device_name -hardware_name $usb
31
        set val [read_probe_data -instance_index 127  -value_in_hex]
32
        end_insystem_source_probe
33
        puts "######\n"
34
        puts $val
35
        puts "\n######\n"
36
 
37
} else {
38
 
39
 
40
 
41
        puts "######\n"
42
 
43
 
44
        foreach instance [get_insystem_source_probe_instance_info -hardware_name $usb -device_name $device_name] {
45
                set name [lindex $instance 3]
46
 
47
                if {[regexp {P[0-9]+} $name var] } {
48
                        #puts $var      
49
                        #puts "[lindex $instance 0],[lindex $instance 1],[lindex $instance 2],[lindex $instance 3]"
50
                        set index [lindex $instance 0]
51
                        set index_name [lindex $instance 3]
52
 
53
                        global device_name usb
54
                        start_insystem_source_probe -device_name $device_name -hardware_name $usb
55
                        set val [read_probe_data -instance_index $index  -value_in_hex]
56
 
57
                        set data "$index_name  $val\n"
58
                        #puts -nonewline $fileId $data 
59
                        puts  $data
60
                        end_insystem_source_probe
61
 
62
 
63
 
64
                }
65
        }
66
        puts "######\n"
67
 
68
}
69
 
70
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.