From 8aa67b2503c09a21cf48a156ecf2de4c13bf598b Mon Sep 17 00:00:00 2001 From: IstvanZsSzekely <122256380+IstvanZsSzekely@users.noreply.github.com> Date: Fri, 17 Jan 2025 11:57:02 +0200 Subject: [PATCH] projects/scripts/adi_board: ad_cpu_interconnect update fix - Fixed the created segment name to use the interface name set for ad_cpu_interconnect when specified, or don't use any --- projects/scripts/adi_board.tcl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/projects/scripts/adi_board.tcl b/projects/scripts/adi_board.tcl index c77476e03a..83914b922a 100644 --- a/projects/scripts/adi_board.tcl +++ b/projects/scripts/adi_board.tcl @@ -1060,6 +1060,12 @@ proc ad_hpmx_interconnect {p_sel p_address p_name {p_intf_name {}}} { set p_intf_clock "" set p_intf_reset "" + if {$p_intf_name eq ""} { + set p_intf_name_bu "" + } else { + set p_intf_name_bu _${p_intf_name} + } + if {$p_hier_cell != {}} { set p_intf_name [lrange [split $p_hier_intf "/"] end end] @@ -1161,10 +1167,10 @@ proc ad_hpmx_interconnect {p_sel p_address p_name {p_intf_name {}}} { set p_address [expr ($p_address + 0x20000000)] } } - puts "create_bd_addr_seg -range $p_seg_range -offset $p_address $sys_addr_cntrl_space $p_seg_name SEG_data_${p_name}_${p_intf_name}" + puts "create_bd_addr_seg -range $p_seg_range -offset $p_address $sys_addr_cntrl_space $p_seg_name SEG_data_${p_name}${p_intf_name_bu}" create_bd_addr_seg -range $p_seg_range \ -offset $p_address $sys_addr_cntrl_space \ - $p_seg_name "SEG_data_${p_name}_${p_intf_name}" + $p_seg_name "SEG_data_${p_name}${p_intf_name_bu}" } else { assign_bd_address $p_seg_name }