Commit 89859c85 authored by David Volz's avatar David Volz
Browse files

only count slave interfaces

parent 549d58aa
Pipeline #2556 failed with stages
in 18 minutes and 40 seconds
......@@ -37,7 +37,11 @@ namespace eval arch {
foreach pe $pes {
set reg_segs [lsort [get_bd_addr_segs -filter { USAGE == register } $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]] == "Master"} { incr reg_slaves } }
foreach seg $mem_segs { if {[get_property MODE [get_bd_intf_pins -of_objects $seg]] == "Master"} { incr mem_slaves } }
if {[llength $reg_slaves] <= 1 && [llength $mem_slaves] <= 1} {
puts " processing $pe registers ..."
for {set i 0} {$i < [llength $reg_segs]} {incr 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