From 398b4b42c6e026af6e4c01da63d32e7d76fdc666 Mon Sep 17 00:00:00 2001 From: Jorge Marques Date: Mon, 19 Aug 2024 10:23:20 +0200 Subject: [PATCH] adi_board: Fixup sys_zynq scope and if indent The variable sys_zynq is a global var. Line breaks matter in TCL. Signed-off-by: Jorge Marques --- projects/scripts/adi_board.tcl | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/projects/scripts/adi_board.tcl b/projects/scripts/adi_board.tcl index f1140a8969..7ad0d07fb1 100644 --- a/projects/scripts/adi_board.tcl +++ b/projects/scripts/adi_board.tcl @@ -1175,11 +1175,19 @@ proc ad_hpmx_interconnect {p_sel p_address p_name {p_intf_name {}}} { # proc ad_cpu_interconnect {p_address p_name {p_intf_name {}}} { - if {$sys_zynq == -1} {ad_hpmx_interconnect "AXI" $p_address $p_name $p_intf_name} - elseif {$sys_zynq == 0} {ad_hpmx_interconnect "DP" $p_address $p_name $p_intf_name} - elseif {$sys_zynq == 1} {ad_hpmx_interconnect "GP0" $p_address $p_name $p_intf_name} - elseif {$sys_zynq == 2} {ad_hpmx_interconnect "HPM0_LPD" $p_address $p_name $p_intf_name} - elseif {$sys_zynq == 3} {ad_hpmx_interconnect "FPD" $p_address $p_name $p_intf_name} + global sys_zynq + + if {$sys_zynq == -1} { + ad_hpmx_interconnect "AXI" $p_address $p_name $p_intf_name + } elseif {$sys_zynq == 0} { + ad_hpmx_interconnect "DP" $p_address $p_name $p_intf_name + } elseif {$sys_zynq == 1} { + ad_hpmx_interconnect "GP0" $p_address $p_name $p_intf_name + } elseif {$sys_zynq == 2} { + ad_hpmx_interconnect "HPM0_LPD" $p_address $p_name $p_intf_name + } elseif {$sys_zynq == 3} { + ad_hpmx_interconnect "FPD" $p_address $p_name $p_intf_name + } } ## Connects an IP interrupt port to the system's interrupt controller interface.