adi_board: Fix ad_mem_hpx_interconnect proc
Make the lsearch command more robust.main
parent
019390f9bf
commit
896ea4925d
|
@ -548,7 +548,7 @@ proc ad_mem_hpx_interconnect {p_sel p_clk p_name} {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
set_property CONFIG.NUM_SI $m_interconnect_index $m_interconnect_cell
|
set_property CONFIG.NUM_SI $m_interconnect_index $m_interconnect_cell
|
||||||
if {[lsearch [get_bd_nets -of_object [get_bd_pins $m_interconnect_cell/ACLK*]] $p_clk] == -1 } {
|
if {[lsearch [get_bd_nets -of_object [get_bd_pins $m_interconnect_cell/ACLK*]] [get_bd_nets $p_clk]] == -1 } {
|
||||||
incr sys_mem_clk_index
|
incr sys_mem_clk_index
|
||||||
set_property CONFIG.NUM_CLKS [expr $sys_mem_clk_index +1] $m_interconnect_cell
|
set_property CONFIG.NUM_CLKS [expr $sys_mem_clk_index +1] $m_interconnect_cell
|
||||||
ad_connect $p_clk $m_interconnect_cell/ACLK$sys_mem_clk_index
|
ad_connect $p_clk $m_interconnect_cell/ACLK$sys_mem_clk_index
|
||||||
|
|
Loading…
Reference in New Issue