Skip to content

Commit

Permalink
cpu_interconnect: Cascaded interconnect support
Browse files Browse the repository at this point in the history
- Changed the interconnect cascading option to automatically cascade in testbenches
- Updated test_harness naming to the new convention
- Updated ADRV9009 block design

Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely committed Sep 9, 2024
1 parent aeb8aee commit 6a9fc8d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
12 changes: 6 additions & 6 deletions adrv9009/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ ad_connect rx_device_clk i_rx_jesd_exerciser/device_clk

ad_connect ref_clk_ex i_rx_jesd_exerciser/ref_clk

set_property -dict [list CONFIG.NUM_MI {18}] [get_bd_cells axi_cpu_interconnect]
ad_connect i_rx_jesd_exerciser/S00_AXI_0 axi_cpu_interconnect/M17_AXI
set_property -dict [list CONFIG.NUM_MI {3}] [get_bd_cells axi_axi_interconnect_1]
ad_connect i_rx_jesd_exerciser/S00_AXI_0 axi_axi_interconnect_1/M02_AXI

create_bd_port -dir O ex_rx_sync
ad_connect ex_rx_sync i_rx_jesd_exerciser/rx_sync_0
Expand All @@ -246,8 +246,8 @@ ad_connect tx_device_clk i_tx_jesd_exerciser/device_clk

ad_connect ref_clk_ex i_tx_jesd_exerciser/ref_clk

set_property -dict [list CONFIG.NUM_MI {19}] [get_bd_cells axi_cpu_interconnect]
ad_connect i_tx_jesd_exerciser/S00_AXI_0 axi_cpu_interconnect/M18_AXI
set_property -dict [list CONFIG.NUM_MI {4}] [get_bd_cells axi_axi_interconnect_1]
ad_connect i_tx_jesd_exerciser/S00_AXI_0 axi_axi_interconnect_1/M03_AXI

create_bd_port -dir I ex_tx_sync
ad_connect ex_tx_sync i_tx_jesd_exerciser/tx_sync_0
Expand Down Expand Up @@ -275,8 +275,8 @@ ad_connect tx_os_device_clk i_tx_os_jesd_exerciser/device_clk

ad_connect ref_clk_ex i_tx_os_jesd_exerciser/ref_clk

set_property -dict [list CONFIG.NUM_MI {20}] [get_bd_cells axi_cpu_interconnect]
ad_connect i_tx_os_jesd_exerciser/S00_AXI_0 axi_cpu_interconnect/M19_AXI
set_property -dict [list CONFIG.NUM_MI {5}] [get_bd_cells axi_axi_interconnect_1]
ad_connect i_tx_os_jesd_exerciser/S00_AXI_0 axi_axi_interconnect_1/M04_AXI

create_bd_port -dir I ex_tx_os_sync
ad_connect ex_tx_os_sync i_tx_os_jesd_exerciser/tx_sync_0
Expand Down
8 changes: 4 additions & 4 deletions common/test_harness/test_harness_system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,18 @@ ad_cpu_interconnect 0x41200000 axi_intc
ad_mem_hp0_interconnect sys_mem_clk ddr_axi_vip/S_AXI

# connect mng_vip to ddr_vip
set_property -dict [list CONFIG.NUM_MI {2}] [get_bd_cells axi_axi_interconnect]
ad_connect axi_axi_interconnect/M01_AXI /axi_mem_interconnect/S00_AXI
set_property -dict [list CONFIG.NUM_MI {2}] [get_bd_cells axi_axi_interconnect_0]
ad_connect axi_axi_interconnect_0/M01_AXI /axi_mem_interconnect/S00_AXI

global sys_mem_clk_index
if { $use_smartconnect == 1} {
incr sys_mem_clk_index
set_property CONFIG.NUM_CLKS [expr $sys_mem_clk_index +1] [get_bd_cells axi_mem_interconnect]
ad_connect sys_cpu_clk axi_mem_interconnect/ACLK$sys_mem_clk_index
} else {
ad_connect sys_cpu_clk axi_axi_interconnect/M01_ACLK
ad_connect sys_cpu_clk axi_axi_interconnect_0/M01_ACLK
ad_connect sys_cpu_clk axi_mem_interconnect/S00_ACLK
ad_connect sys_cpu_resetn axi_axi_interconnect/M01_ARESETN
ad_connect sys_cpu_resetn axi_axi_interconnect_0/M01_ARESETN
ad_connect sys_cpu_resetn axi_mem_interconnect/S00_ARESETN
}

Expand Down
4 changes: 4 additions & 0 deletions scripts/adi_sim.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ proc adi_sim_project_xilinx {project_name {part "xc7vx485tffg1157-1"}} {
create_bd_design $design_name

global sys_zynq
global sys_cpu_interconnect_cascade

set sys_zynq -1
set sys_cpu_interconnect_cascade 1

if { ![info exists ad_project_params(CUSTOM_HARNESS)] || !$ad_project_params(CUSTOM_HARNESS) } {
source ../common/test_harness/test_harness_system_bd.tcl
}
Expand Down

0 comments on commit 6a9fc8d

Please sign in to comment.