Unverified Commit a23f6134 authored by Johannes Wirth's avatar Johannes Wirth Committed by GitHub
Browse files

Merge pull request #320 from esa-tu-darmstadt/hotfix/issue319

Fix interface detection for local memories
parents 549d58aa cea36203
Pipeline #2559 passed with stages
in 209 minutes and 28 seconds
...@@ -37,7 +37,11 @@ namespace eval arch { ...@@ -37,7 +37,11 @@ namespace eval arch {
foreach pe $pes { foreach pe $pes {
set reg_segs [lsort [get_bd_addr_segs -filter { USAGE == register } $pe/*]] set reg_segs [lsort [get_bd_addr_segs -filter { USAGE == register } $pe/*]]
set mem_segs [lsort [get_bd_addr_segs -filter { USAGE == memory } $pe/*]] set mem_segs [lsort [get_bd_addr_segs -filter { USAGE == memory } $pe/*]]
if {[llength $reg_segs] <= 1 && [llength $mem_segs] <= 1} { set reg_slaves 0
set mem_slaves 0
foreach seg $reg_segs { if {[get_property MODE [get_bd_intf_pins -of_objects $seg]] == "Slave"} { incr reg_slaves } }
foreach seg $mem_segs { if {[get_property MODE [get_bd_intf_pins -of_objects $seg]] == "Slave"} { incr mem_slaves } }
if {$reg_slaves <= 1 && $mem_slaves <= 1} {
puts " processing $pe registers ..." puts " processing $pe registers ..."
for {set i 0} {$i < [llength $reg_segs]} {incr i} { for {set i 0} {$i < [llength $reg_segs]} {incr i} {
set seg [lindex $reg_segs $i] set seg [lindex $reg_segs $i]
......
Supports Markdown
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