Skip to content

Commit 2ae6c5e

Browse files
committed
matlab_processors: use add_dut_master for ADRV9009/AD9371 on ZC706
The ZC706 CPU interconnect is axi_interconnect under hdl_2026_r1, so NUM_CLKS/aclk1 do not exist. Route the DUT master through add_dut_master (Mxx_ACLK + the device-clock rstgen's peripheral_aresetn). Signed-off-by: Travis Collins <travis.collins@analog.com>
1 parent eb572dd commit 2ae6c5e

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

‎CI/scripts/matlab_processors.tcl‎

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -622,14 +622,10 @@ proc preprocess_bd {project carrier rxtx number_of_inputs number_of_bits number_
622622
}
623623
switch $carrier {
624624
zc706 {
625-
# Add 1 extra AXI master ports to the interconnect
626-
set_property -dict [list CONFIG.NUM_CLKS 2] [get_bd_cells $cpu_ic]
627-
# was: CONFIG.NUM_MI {22} -- equal to the base count, so no master was added
628-
set base_mi [get_property CONFIG.NUM_MI [get_bd_cells $cpu_ic]]
629-
set_property -dict [list CONFIG.NUM_MI [expr {$base_mi + 1}]] [get_bd_cells $cpu_ic]
625+
# Add 1 extra AXI master port for the DUT (Zynq-7000: axi_interconnect)
630626

631627
if {$rxtx == "rx" || $rxtx == "rxtx"} {
632-
connect_bd_net [get_bd_pins $cpu_ic/aclk1] [get_bd_pins axi_adrv9009_rx_clkgen/clk_0]
628+
add_dut_master $cpu_ic axi_adrv9009_rx_clkgen/clk_0 adrv9009_rx_device_clk_rstgen/peripheral_aresetn
633629
}
634630
if {$rxtx == "tx" || $rxtx == "rxtx"} {
635631
# Remove valid combiner
@@ -652,7 +648,7 @@ proc preprocess_bd {project carrier rxtx number_of_inputs number_of_bits number_
652648
connect_bd_net [get_bd_pins util_adrv9009_xcvr/tx_clk_3] [get_bd_pins axi_adrv9009_rx_clkgen/clk_0]
653649
}
654650
if {$rxtx == "tx"} {
655-
connect_bd_net [get_bd_pins $cpu_ic/aclk1] [get_bd_pins axi_adrv9009_tx_clkgen/clk_0]
651+
add_dut_master $cpu_ic axi_adrv9009_tx_clkgen/clk_0 adrv9009_tx_device_clk_rstgen/peripheral_aresetn
656652
}
657653
}
658654
zcu102 {
@@ -910,21 +906,12 @@ proc preprocess_bd {project carrier rxtx number_of_inputs number_of_bits number_
910906
}
911907
switch $carrier {
912908
zc706 {
913-
# Add 1 extra AXI master ports to the interconnect
914-
set_property -dict [list CONFIG.NUM_CLKS 2] [get_bd_cells $cpu_ic]
915-
# was: CONFIG.NUM_MI {22} -- equal to the base count, so no master was added
916-
set base_mi [get_property CONFIG.NUM_MI [get_bd_cells $cpu_ic]]
917-
set_property -dict [list CONFIG.NUM_MI [expr {$base_mi + 1}]] [get_bd_cells $cpu_ic]
918-
#set_property -dict [list CONFIG.NUM_CLKS {2}] [get_bd_cells $cpu_ic]
919-
# [hdl_2026_r1 smartconnect: no per-master ARESETN] connect_bd_net [get_bd_pins sys_rstgen/interconnect_aresetn] [get_bd_pins $cpu_ic/M21_ARESETN]
920-
909+
# Add 1 extra AXI master port for the DUT (Zynq-7000: axi_interconnect)
921910
if {$rxtx == "rx" || $rxtx == "rxtx"} {
922-
#connect_bd_net [get_bd_pins $cpu_ic/aclk1] [get_bd_pins axi_ad9371_rx_clkgen/clk_0]
923-
connect_bd_net -net [get_bd_nets axi_ad9371_rx_clkgen] [get_bd_pins $cpu_ic/aclk1] [get_bd_pins axi_ad9371_rx_clkgen/clk_0]
911+
add_dut_master $cpu_ic axi_ad9371_rx_clkgen/clk_0 ad9371_rx_device_clk_rstgen/peripheral_aresetn
924912
}
925913
if {$rxtx == "tx"} {
926-
#connect_bd_net [get_bd_pins $cpu_ic/aclk1] [get_bd_pins axi_ad9371_tx_clkgen/clk_0]
927-
connect_bd_net -net [get_bd_nets axi_ad9371_tx_clkgen] [get_bd_pins $cpu_ic/aclk1] [get_bd_pins axi_ad9371_tx_clkgen/clk_0]
914+
add_dut_master $cpu_ic axi_ad9371_tx_clkgen/clk_0 ad9371_tx_device_clk_rstgen/peripheral_aresetn
928915
}
929916
}
930917
zcu102 {

0 commit comments

Comments
 (0)