Skip to content

Commit

Permalink
projects/scripts/adi_board: ad_cpu_interconnect update fix
Browse files Browse the repository at this point in the history
- Fixed the created segment name to use the interface name set for ad_cpu_interconnect when specified, or don't use any
  • Loading branch information
IstvanZsSzekely authored Jan 17, 2025
1 parent 0d0d638 commit 8aa67b2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions projects/scripts/adi_board.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8aa67b2

Please sign in to comment.