adi_board: Fix ad_mem_hpx_interconnect proc

Make the lsearch command more robust.
main
Istvan Csomortani 2019-05-30 07:45:09 +01:00 committed by István Csomortáni
parent 019390f9bf
commit 896ea4925d
1 changed files with 1 additions and 1 deletions

View File

@ -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