Commit e3682565 authored by Jens Korinth's avatar Jens Korinth
Browse files

Bugfix in Arch address map for unconnected masters

parent b8b5dd0a
......@@ -11,13 +11,15 @@ namespace eval arch {
set ret [dict create]
set pes [lsort [get_processing_elements]]
foreach pe $pes {
set usrs [lsort [get_bd_addr_segs $pe/* -filter { USAGE != memory }]]
puts " processing $pe registers ..."
set usrs [lsort [get_bd_addr_segs $pe/* -filter { USAGE == register }]]
for {set i 0} {$i < [llength $usrs]} {incr i; incr offset 0x10000} {
set seg [lindex $usrs $i]
set intf [get_bd_intf_pins -of_objects $seg]
set range [get_property RANGE $seg]
dict set ret $intf "interface $intf [format "offset 0x%08x range 0x%08x" $offset $range] kind register"
}
puts " processing $pe memories ..."
set usrs [lsort [get_bd_addr_segs $pe/* -filter { USAGE == memory }]]
for {set i 0} {$i < [llength $usrs]} {incr i; incr offset 0x10000} {
set seg [lindex $usrs $i]
......@@ -26,14 +28,19 @@ namespace eval arch {
dict set ret $intf "interface $intf [format "offset 0x%08x range 0x%08x" $offset $range] kind memory"
}
puts " processing $pe masters ..."
set masters [lsort [tapasco::get_aximm_interfaces $pe]]
foreach intf $masters {
set space [get_bd_addr_spaces -of_objects $intf]
set off [get_property OFFSET $space]
if {$off == ""} { set off 0 }
set range [get_property RANGE $space]
if {$range == ""} { error "no range found on $space for $intf!" }
dict set ret $intf "interface $intf [format "offset 0x%08x range 0x%08x" $off $range] kind master"
if {$space != {}} {
set off [get_property OFFSET $space]
if {$off == ""} { set off 0 }
set range [get_property RANGE $space]
if {$range == ""} { error "no range found on $space for $intf!" }
dict set ret $intf "interface $intf [format "offset 0x%08x range 0x%08x" $off $range] kind master"
} else {
puts " no address spaces found on $intf, continuing ..."
}
}
}
return $ret
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment