|
|
|
@ -1,57 +1,49 @@
|
|
|
|
|
|
|
|
|
|
source $ad_hdl_dir/projects/common/xilinx/sys_wfifo.tcl
|
|
|
|
|
|
|
|
|
|
# dac interface
|
|
|
|
|
|
|
|
|
|
set dac_clk_in_p [create_bd_port -dir I dac_clk_in_p]
|
|
|
|
|
set dac_clk_in_n [create_bd_port -dir I dac_clk_in_n]
|
|
|
|
|
set dac_clk_out_p [create_bd_port -dir O dac_clk_out_p]
|
|
|
|
|
set dac_clk_out_n [create_bd_port -dir O dac_clk_out_n]
|
|
|
|
|
set dac_frame_out_p [create_bd_port -dir O dac_frame_out_p]
|
|
|
|
|
set dac_frame_out_n [create_bd_port -dir O dac_frame_out_n]
|
|
|
|
|
set dac_data_out_p [create_bd_port -dir O -from 15 -to 0 dac_data_out_p]
|
|
|
|
|
set dac_data_out_n [create_bd_port -dir O -from 15 -to 0 dac_data_out_n]
|
|
|
|
|
create_bd_port -dir I dac_clk_in_p
|
|
|
|
|
create_bd_port -dir I dac_clk_in_n
|
|
|
|
|
create_bd_port -dir O dac_clk_out_p
|
|
|
|
|
create_bd_port -dir O dac_clk_out_n
|
|
|
|
|
create_bd_port -dir O dac_frame_out_p
|
|
|
|
|
create_bd_port -dir O dac_frame_out_n
|
|
|
|
|
create_bd_port -dir O -from 15 -to 0 dac_data_out_p
|
|
|
|
|
create_bd_port -dir O -from 15 -to 0 dac_data_out_n
|
|
|
|
|
|
|
|
|
|
# adc interface
|
|
|
|
|
|
|
|
|
|
set adc_clk_in_p [create_bd_port -dir I adc_clk_in_p]
|
|
|
|
|
set adc_clk_in_n [create_bd_port -dir I adc_clk_in_n]
|
|
|
|
|
set adc_or_in_p [create_bd_port -dir I adc_or_in_p]
|
|
|
|
|
set adc_or_in_n [create_bd_port -dir I adc_or_in_n]
|
|
|
|
|
set adc_data_in_p [create_bd_port -dir I -from 13 -to 0 adc_data_in_p]
|
|
|
|
|
set adc_data_in_n [create_bd_port -dir I -from 13 -to 0 adc_data_in_n]
|
|
|
|
|
create_bd_port -dir I adc_clk_in_p
|
|
|
|
|
create_bd_port -dir I adc_clk_in_n
|
|
|
|
|
create_bd_port -dir I adc_or_in_p
|
|
|
|
|
create_bd_port -dir I adc_or_in_n
|
|
|
|
|
create_bd_port -dir I -from 13 -to 0 adc_data_in_p
|
|
|
|
|
create_bd_port -dir I -from 13 -to 0 adc_data_in_n
|
|
|
|
|
|
|
|
|
|
# reference clock
|
|
|
|
|
|
|
|
|
|
set ref_clk [create_bd_port -dir O ref_clk]
|
|
|
|
|
create_bd_port -dir O ref_clk
|
|
|
|
|
|
|
|
|
|
# dma interface
|
|
|
|
|
|
|
|
|
|
set dac_clk [create_bd_port -dir O dac_clk]
|
|
|
|
|
set dac_valid_0 [create_bd_port -dir O dac_valid_0]
|
|
|
|
|
set dac_enable_0 [create_bd_port -dir O dac_enable_0]
|
|
|
|
|
set dac_ddata_0 [create_bd_port -dir I -from 63 -to 0 dac_ddata_0]
|
|
|
|
|
set dac_valid_1 [create_bd_port -dir O dac_valid_1]
|
|
|
|
|
set dac_enable_1 [create_bd_port -dir O dac_enable_1]
|
|
|
|
|
set dac_ddata_1 [create_bd_port -dir I -from 63 -to 0 dac_ddata_1]
|
|
|
|
|
set dac_dma_rd [create_bd_port -dir I dac_dma_rd]
|
|
|
|
|
set dac_dma_rdata [create_bd_port -dir O -from 63 -to 0 dac_dma_rdata]
|
|
|
|
|
create_bd_port -dir O dac_clk
|
|
|
|
|
create_bd_port -dir O dac_valid_0
|
|
|
|
|
create_bd_port -dir O dac_enable_0
|
|
|
|
|
create_bd_port -dir I -from 63 -to 0 dac_ddata_0
|
|
|
|
|
create_bd_port -dir O dac_valid_1
|
|
|
|
|
create_bd_port -dir O dac_enable_1
|
|
|
|
|
create_bd_port -dir I -from 63 -to 0 dac_ddata_1
|
|
|
|
|
create_bd_port -dir I dac_dma_rd
|
|
|
|
|
create_bd_port -dir O -from 63 -to 0 dac_dma_rdata
|
|
|
|
|
|
|
|
|
|
set adc_clk [create_bd_port -dir O adc_clk]
|
|
|
|
|
set adc_valid_0 [create_bd_port -dir O adc_valid_0]
|
|
|
|
|
set adc_enable_0 [create_bd_port -dir O adc_enable_0]
|
|
|
|
|
set adc_data_0 [create_bd_port -dir O -from 15 -to 0 adc_data_0]
|
|
|
|
|
set adc_valid_1 [create_bd_port -dir O adc_valid_1]
|
|
|
|
|
set adc_enable_1 [create_bd_port -dir O adc_enable_1]
|
|
|
|
|
set adc_data_1 [create_bd_port -dir O -from 15 -to 0 adc_data_1]
|
|
|
|
|
set adc_dma_wr [create_bd_port -dir I adc_dma_wr]
|
|
|
|
|
set adc_dma_sync [create_bd_port -dir I adc_dma_sync]
|
|
|
|
|
set adc_dma_wdata [create_bd_port -dir I -from 31 -to 0 adc_dma_wdata]
|
|
|
|
|
|
|
|
|
|
# interrupts
|
|
|
|
|
|
|
|
|
|
set ad9122_dma_irq [create_bd_port -dir O ad9122_dma_irq]
|
|
|
|
|
set ad9643_dma_irq [create_bd_port -dir O ad9643_dma_irq]
|
|
|
|
|
create_bd_port -dir O adc_clk
|
|
|
|
|
create_bd_port -dir O adc_valid_0
|
|
|
|
|
create_bd_port -dir O adc_enable_0
|
|
|
|
|
create_bd_port -dir O -from 15 -to 0 adc_data_0
|
|
|
|
|
create_bd_port -dir O adc_valid_1
|
|
|
|
|
create_bd_port -dir O adc_enable_1
|
|
|
|
|
create_bd_port -dir O -from 15 -to 0 adc_data_1
|
|
|
|
|
create_bd_port -dir I adc_dma_wr
|
|
|
|
|
create_bd_port -dir I -from 31 -to 0 adc_dma_wdata
|
|
|
|
|
|
|
|
|
|
# dac peripherals
|
|
|
|
|
|
|
|
|
@ -67,10 +59,6 @@
|
|
|
|
|
set_property -dict [list CONFIG.C_AXI_SLICE_SRC {1}] $axi_ad9122_dma
|
|
|
|
|
set_property -dict [list CONFIG.C_DMA_DATA_WIDTH_DEST {64}] $axi_ad9122_dma
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 1} {
|
|
|
|
|
set_property -dict [list CONFIG.C_DMA_AXI_PROTOCOL_SRC {1}] $axi_ad9122_dma
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# adc peripherals
|
|
|
|
|
|
|
|
|
|
set axi_ad9643 [create_bd_cell -type ip -vlnv analog.com:user:axi_ad9643:1.0 axi_ad9643]
|
|
|
|
@ -85,146 +73,100 @@ if {$sys_zynq == 1} {
|
|
|
|
|
set_property -dict [list CONFIG.C_AXI_SLICE_SRC {1}] $axi_ad9643_dma
|
|
|
|
|
set_property -dict [list CONFIG.C_DMA_DATA_WIDTH_DEST {64}] $axi_ad9643_dma
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 1} {
|
|
|
|
|
set_property -dict [list CONFIG.C_DMA_AXI_PROTOCOL_DEST {1}] $axi_ad9643_dma
|
|
|
|
|
}
|
|
|
|
|
# reference clock
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 0} {
|
|
|
|
|
set_property -dict [list CONFIG.C_DMA_DATA_WIDTH_DEST {128}] $axi_ad9643_dma
|
|
|
|
|
}
|
|
|
|
|
set refclk_clkgen [ create_bd_cell -type ip -vlnv xilinx.com:ip:clk_wiz:5.1 refclk_clkgen]
|
|
|
|
|
set_property -dict [list CONFIG.CLKOUT1_REQUESTED_OUT_FREQ {30} ] [get_bd_cells refclk_clkgen]
|
|
|
|
|
set_property -dict [list CONFIG.USE_PHASE_ALIGNMENT {false} ] [get_bd_cells refclk_clkgen]
|
|
|
|
|
set_property -dict [list CONFIG.JITTER_SEL {Min_O_Jitter} ] [get_bd_cells refclk_clkgen]
|
|
|
|
|
set_property -dict [list CONFIG.USE_LOCKED {false} ] [get_bd_cells refclk_clkgen]
|
|
|
|
|
set_property -dict [list CONFIG.USE_RESET {false} ] [get_bd_cells refclk_clkgen]
|
|
|
|
|
|
|
|
|
|
# additions to default configuration
|
|
|
|
|
# connections (dac)
|
|
|
|
|
|
|
|
|
|
set_property -dict [list CONFIG.NUM_MI {11}] $axi_cpu_interconnect
|
|
|
|
|
ad_connect dac_clk axi_ad9122/dac_div_clk
|
|
|
|
|
ad_connect dac_clk axi_ad9122_dma/fifo_rd_clk
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 0} {
|
|
|
|
|
set_property -dict [list CONFIG.NUM_SI {10}] $axi_mem_interconnect
|
|
|
|
|
}
|
|
|
|
|
ad_connect dac_clk_in_p axi_ad9122/dac_clk_in_p
|
|
|
|
|
ad_connect dac_clk_in_n axi_ad9122/dac_clk_in_n
|
|
|
|
|
ad_connect dac_clk_out_p axi_ad9122/dac_clk_out_p
|
|
|
|
|
ad_connect dac_clk_out_n axi_ad9122/dac_clk_out_n
|
|
|
|
|
ad_connect dac_frame_out_p axi_ad9122/dac_frame_out_p
|
|
|
|
|
ad_connect dac_frame_out_n axi_ad9122/dac_frame_out_n
|
|
|
|
|
ad_connect dac_data_out_p axi_ad9122/dac_data_out_p
|
|
|
|
|
ad_connect dac_data_out_n axi_ad9122/dac_data_out_n
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 1} {
|
|
|
|
|
set_property -dict [list CONFIG.PCW_USE_S_AXI_HP1 {1}] $sys_ps7
|
|
|
|
|
set_property -dict [list CONFIG.PCW_USE_S_AXI_HP2 {1}] $sys_ps7
|
|
|
|
|
}
|
|
|
|
|
ad_connect axi_ad9122/dac_valid_0 dac_valid_0
|
|
|
|
|
ad_connect axi_ad9122/dac_enable_0 dac_enable_0
|
|
|
|
|
ad_connect axi_ad9122/dac_ddata_0 dac_ddata_0
|
|
|
|
|
ad_connect axi_ad9122/dac_valid_1 dac_valid_1
|
|
|
|
|
ad_connect axi_ad9122/dac_enable_1 dac_enable_1
|
|
|
|
|
ad_connect axi_ad9122/dac_ddata_1 dac_ddata_1
|
|
|
|
|
ad_connect axi_ad9122/dac_dunf axi_ad9122_dma/fifo_rd_underflow
|
|
|
|
|
|
|
|
|
|
# reference clock shared with audio clock
|
|
|
|
|
|
|
|
|
|
set_property -dict [list CONFIG.CLKOUT2_USED {true}] $sys_audio_clkgen
|
|
|
|
|
set_property -dict [list CONFIG.CLKOUT2_REQUESTED_OUT_FREQ {30.3030}] $sys_audio_clkgen
|
|
|
|
|
|
|
|
|
|
# connections (dac)
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net dac_div_clk [get_bd_ports dac_clk] [get_bd_pins axi_ad9122/dac_div_clk]
|
|
|
|
|
connect_bd_net -net dac_div_clk [get_bd_pins axi_ad9122_dma/fifo_rd_clk]
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_clk_in_p [get_bd_ports dac_clk_in_p] [get_bd_pins axi_ad9122/dac_clk_in_p]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_clk_in_n [get_bd_ports dac_clk_in_n] [get_bd_pins axi_ad9122/dac_clk_in_n]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_clk_out_p [get_bd_ports dac_clk_out_p] [get_bd_pins axi_ad9122/dac_clk_out_p]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_clk_out_n [get_bd_ports dac_clk_out_n] [get_bd_pins axi_ad9122/dac_clk_out_n]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_frame_out_p [get_bd_ports dac_frame_out_p] [get_bd_pins axi_ad9122/dac_frame_out_p]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_frame_out_n [get_bd_ports dac_frame_out_n] [get_bd_pins axi_ad9122/dac_frame_out_n]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_data_out_p [get_bd_ports dac_data_out_p] [get_bd_pins axi_ad9122/dac_data_out_p]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_data_out_n [get_bd_ports dac_data_out_n] [get_bd_pins axi_ad9122/dac_data_out_n]
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_valid_0 [get_bd_pins axi_ad9122/dac_valid_0] [get_bd_ports dac_valid_0]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_enable_0 [get_bd_pins axi_ad9122/dac_enable_0] [get_bd_ports dac_enable_0]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_ddata_0 [get_bd_pins axi_ad9122/dac_ddata_0] [get_bd_ports dac_ddata_0]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_valid_1 [get_bd_pins axi_ad9122/dac_valid_1] [get_bd_ports dac_valid_1]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_enable_1 [get_bd_pins axi_ad9122/dac_enable_1] [get_bd_ports dac_enable_1]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_ddata_1 [get_bd_pins axi_ad9122/dac_ddata_1] [get_bd_ports dac_ddata_1]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dac_dunf [get_bd_pins axi_ad9122/dac_dunf] [get_bd_pins axi_ad9122_dma/fifo_rd_underflow]
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net axi_ad9122_dma_drd [get_bd_pins axi_ad9122_dma/fifo_rd_en] [get_bd_ports dac_dma_rd]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dma_ddata [get_bd_pins axi_ad9122_dma/fifo_rd_dout] [get_bd_ports dac_dma_rdata]
|
|
|
|
|
connect_bd_net -net axi_ad9122_dma_irq [get_bd_pins axi_ad9122_dma/irq] [get_bd_ports ad9122_dma_irq]
|
|
|
|
|
ad_connect dac_dma_rd axi_ad9122_dma/fifo_rd_en
|
|
|
|
|
ad_connect dac_dma_rdata axi_ad9122_dma/fifo_rd_dout
|
|
|
|
|
|
|
|
|
|
# connections (adc)
|
|
|
|
|
|
|
|
|
|
p_sys_wfifo [current_bd_instance .] sys_wfifo 32 64
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net adc_clk [get_bd_ports adc_clk] [get_bd_pins axi_ad9643/adc_clk] [get_bd_pins sys_wfifo/m_clk]
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins sys_wfifo/s_clk] [get_bd_pins axi_ad9643_dma/fifo_wr_clk] [get_bd_pins axi_ad9643/delay_clk]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins sys_wfifo/rstn] $sys_100m_resetn_source
|
|
|
|
|
ad_connect adc_clk axi_ad9643/adc_clk
|
|
|
|
|
ad_connect adc_clk sys_wfifo/adc_clk
|
|
|
|
|
ad_connect sys_200m_clk sys_wfifo/dma_clk
|
|
|
|
|
ad_connect sys_200m_clk axi_ad9643_dma/fifo_wr_clk
|
|
|
|
|
ad_connect sys_200m_clk axi_ad9643/delay_clk
|
|
|
|
|
ad_connect sys_cpu_reset sys_wfifo/adc_rst
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_clk_in_p [get_bd_ports adc_clk_in_p] [get_bd_pins axi_ad9643/adc_clk_in_p]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_clk_in_n [get_bd_ports adc_clk_in_n] [get_bd_pins axi_ad9643/adc_clk_in_n]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_or_in_p [get_bd_ports adc_or_in_p] [get_bd_pins axi_ad9643/adc_or_in_p]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_or_in_n [get_bd_ports adc_or_in_n] [get_bd_pins axi_ad9643/adc_or_in_n]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_data_in_p [get_bd_ports adc_data_in_p] [get_bd_pins axi_ad9643/adc_data_in_p]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_data_in_n [get_bd_ports adc_data_in_n] [get_bd_pins axi_ad9643/adc_data_in_n]
|
|
|
|
|
ad_connect adc_clk_in_p axi_ad9643/adc_clk_in_p
|
|
|
|
|
ad_connect adc_clk_in_n axi_ad9643/adc_clk_in_n
|
|
|
|
|
ad_connect adc_or_in_p axi_ad9643/adc_or_in_p
|
|
|
|
|
ad_connect adc_or_in_n axi_ad9643/adc_or_in_n
|
|
|
|
|
ad_connect adc_data_in_p axi_ad9643/adc_data_in_p
|
|
|
|
|
ad_connect adc_data_in_n axi_ad9643/adc_data_in_n
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_valid_0 [get_bd_ports adc_valid_0] [get_bd_pins axi_ad9643/adc_valid_0]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_enable_0 [get_bd_ports adc_enable_0] [get_bd_pins axi_ad9643/adc_enable_0]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_data_0 [get_bd_ports adc_data_0] [get_bd_pins axi_ad9643/adc_data_0]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_valid_1 [get_bd_ports adc_valid_1] [get_bd_pins axi_ad9643/adc_valid_1]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_enable_1 [get_bd_ports adc_enable_1] [get_bd_pins axi_ad9643/adc_enable_1]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_data_1 [get_bd_ports adc_data_1] [get_bd_pins axi_ad9643/adc_data_1]
|
|
|
|
|
connect_bd_net -net axi_ad9643_adc_dovf [get_bd_pins axi_ad9643/adc_dovf] [get_bd_pins sys_wfifo/m_wovf]
|
|
|
|
|
ad_connect adc_valid_0 axi_ad9643/adc_valid_0
|
|
|
|
|
ad_connect adc_enable_0 axi_ad9643/adc_enable_0
|
|
|
|
|
ad_connect adc_data_0 axi_ad9643/adc_data_0
|
|
|
|
|
ad_connect adc_valid_1 axi_ad9643/adc_valid_1
|
|
|
|
|
ad_connect adc_enable_1 axi_ad9643/adc_enable_1
|
|
|
|
|
ad_connect adc_data_1 axi_ad9643/adc_data_1
|
|
|
|
|
ad_connect axi_ad9643/adc_dovf sys_wfifo/adc_wovf
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net axi_ad9643_fifo_wr [get_bd_ports adc_dma_wr] [get_bd_pins sys_wfifo/m_wr]
|
|
|
|
|
connect_bd_net -net axi_ad9643_fifo_wdata [get_bd_ports adc_dma_wdata] [get_bd_pins sys_wfifo/m_wdata]
|
|
|
|
|
ad_connect adc_dma_wr sys_wfifo/adc_wr
|
|
|
|
|
ad_connect adc_dma_wdata sys_wfifo/adc_wdata
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net axi_ad9643_dma_dwr [get_bd_pins sys_wfifo/s_wr] [get_bd_pins axi_ad9643_dma/fifo_wr_en]
|
|
|
|
|
connect_bd_net -net axi_ad9643_dma_dsync [get_bd_ports adc_dma_sync] [get_bd_pins axi_ad9643_dma/fifo_wr_sync]
|
|
|
|
|
connect_bd_net -net axi_ad9643_dma_ddata [get_bd_pins sys_wfifo/s_wdata] [get_bd_pins axi_ad9643_dma/fifo_wr_din]
|
|
|
|
|
connect_bd_net -net axi_ad9643_dma_dovf [get_bd_pins sys_wfifo/s_wovf] [get_bd_pins axi_ad9643_dma/fifo_wr_overflow]
|
|
|
|
|
connect_bd_net -net axi_ad9643_dma_irq [get_bd_pins axi_ad9643_dma/irq] [get_bd_ports ad9643_dma_irq]
|
|
|
|
|
ad_connect sys_wfifo/dma_wr axi_ad9643_dma/fifo_wr_en
|
|
|
|
|
ad_connect sys_wfifo/dma_wdata axi_ad9643_dma/fifo_wr_din
|
|
|
|
|
ad_connect sys_wfifo/dma_wovf axi_ad9643_dma/fifo_wr_overflow
|
|
|
|
|
|
|
|
|
|
# interconnect (cpu)
|
|
|
|
|
ad_connect sys_cpu_resetn axi_ad9122_dma/m_src_axi_aresetn
|
|
|
|
|
ad_connect sys_cpu_resetn axi_ad9643_dma/m_dest_axi_aresetn
|
|
|
|
|
|
|
|
|
|
connect_bd_intf_net -intf_net axi_cpu_interconnect_m07_axi [get_bd_intf_pins axi_cpu_interconnect/M07_AXI] [get_bd_intf_pins axi_ad9122/s_axi]
|
|
|
|
|
connect_bd_intf_net -intf_net axi_cpu_interconnect_m08_axi [get_bd_intf_pins axi_cpu_interconnect/M08_AXI] [get_bd_intf_pins axi_ad9643/s_axi]
|
|
|
|
|
connect_bd_intf_net -intf_net axi_cpu_interconnect_m09_axi [get_bd_intf_pins axi_cpu_interconnect/M09_AXI] [get_bd_intf_pins axi_ad9643_dma/s_axi]
|
|
|
|
|
connect_bd_intf_net -intf_net axi_cpu_interconnect_m10_axi [get_bd_intf_pins axi_cpu_interconnect/M10_AXI] [get_bd_intf_pins axi_ad9122_dma/s_axi]
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_cpu_interconnect/M07_ACLK] $sys_100m_clk_source
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_cpu_interconnect/M08_ACLK] $sys_100m_clk_source
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_cpu_interconnect/M09_ACLK] $sys_100m_clk_source
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_cpu_interconnect/M10_ACLK] $sys_100m_clk_source
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_ad9122/s_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_ad9122_dma/s_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9122/s_axi_aresetn]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9122_dma/s_axi_aresetn]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_cpu_interconnect/M07_ARESETN] $sys_100m_resetn_source
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_cpu_interconnect/M08_ARESETN] $sys_100m_resetn_source
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_cpu_interconnect/M09_ARESETN] $sys_100m_resetn_source
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_cpu_interconnect/M10_ARESETN] $sys_100m_resetn_source
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_ad9643/s_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_100m_clk [get_bd_pins axi_ad9643_dma/s_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9643/s_axi_aresetn]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9643_dma/s_axi_aresetn]
|
|
|
|
|
# reference clock
|
|
|
|
|
|
|
|
|
|
# interconnect (mem/dac)
|
|
|
|
|
ad_connect sys_200m_clk refclk_clkgen/clk_in1
|
|
|
|
|
ad_connect ref_clk refclk_clkgen/clk_out1
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 0 } {
|
|
|
|
|
connect_bd_intf_net -intf_net axi_mem_interconnect_s08_axi [get_bd_intf_pins axi_mem_interconnect/S08_AXI] [get_bd_intf_pins axi_ad9122_dma/m_src_axi]
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins axi_mem_interconnect/S08_ACLK] $sys_200m_clk_source
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins axi_ad9122_dma/m_src_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_mem_interconnect/S08_ARESETN] $sys_100m_resetn_source
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9122_dma/m_src_axi_aresetn]
|
|
|
|
|
} else {
|
|
|
|
|
connect_bd_intf_net -intf_net axi_ad9122_dma_axi [get_bd_intf_pins sys_ps7/S_AXI_HP2] [get_bd_intf_pins axi_ad9122_dma/m_src_axi]
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins axi_ad9122_dma/m_src_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins sys_ps7/S_AXI_HP2_ACLK]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9122_dma/m_src_axi_aresetn]
|
|
|
|
|
}
|
|
|
|
|
# address map
|
|
|
|
|
|
|
|
|
|
# interconnect (mem/adc)
|
|
|
|
|
ad_cpu_interconnect 0x74200000 axi_ad9122
|
|
|
|
|
ad_cpu_interconnect 0x79020000 axi_ad9643
|
|
|
|
|
ad_cpu_interconnect 0x7c400000 axi_ad9643_dma
|
|
|
|
|
ad_cpu_interconnect 0x7c420000 axi_ad9122_dma
|
|
|
|
|
ad_mem_hp1_interconnect sys_200m_clk sys_ps7/S_AXI_HP1
|
|
|
|
|
ad_mem_hp1_interconnect sys_200m_clk axi_ad9643_dma/m_dest_axi
|
|
|
|
|
ad_mem_hp2_interconnect sys_200m_clk sys_ps7/S_AXI_HP2
|
|
|
|
|
ad_mem_hp2_interconnect sys_200m_clk axi_ad9122_dma/m_src_axi
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 0 } {
|
|
|
|
|
connect_bd_intf_net -intf_net axi_mem_interconnect_s09_axi [get_bd_intf_pins axi_mem_interconnect/S09_AXI] [get_bd_intf_pins axi_ad9643_dma/m_dest_axi]
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins axi_mem_interconnect/S09_ACLK] $sys_200m_clk_source
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins axi_ad9643_dma/m_dest_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_mem_interconnect/S09_ARESETN] $sys_100m_resetn_source
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9643_dma/m_dest_axi_aresetn]
|
|
|
|
|
} else {
|
|
|
|
|
connect_bd_intf_net -intf_net axi_ad9643_dma_axi [get_bd_intf_pins sys_ps7/S_AXI_HP1] [get_bd_intf_pins axi_ad9643_dma/m_dest_axi]
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins axi_ad9643_dma/m_dest_axi_aclk]
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins sys_ps7/S_AXI_HP1_ACLK]
|
|
|
|
|
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9643_dma/m_dest_axi_aresetn]
|
|
|
|
|
}
|
|
|
|
|
# interrupts
|
|
|
|
|
|
|
|
|
|
# ila (adc)
|
|
|
|
|
ad_cpu_interrupt ps-12 mb-12 axi_ad9122_dma/irq
|
|
|
|
|
ad_cpu_interrupt ps-13 mb-13 axi_ad9643_dma/irq
|
|
|
|
|
|
|
|
|
|
set ila_adc [create_bd_cell -type ip -vlnv xilinx.com:ip:ila:4.0 ila_adc]
|
|
|
|
|
# ila (adc)
|
|
|
|
|
|
|
|
|
|
set ila_adc [create_bd_cell -type ip -vlnv xilinx.com:ip:ila:5.0 ila_adc]
|
|
|
|
|
set_property -dict [list CONFIG.C_MONITOR_TYPE {Native}] $ila_adc
|
|
|
|
|
set_property -dict [list CONFIG.C_NUM_OF_PROBES {2}] $ila_adc
|
|
|
|
|
set_property -dict [list CONFIG.C_PROBE0_WIDTH {1}] $ila_adc
|
|
|
|
@ -232,25 +174,7 @@ if {$sys_zynq == 0 } {
|
|
|
|
|
set_property -dict [list CONFIG.C_EN_STRG_QUAL {1}] $ila_adc
|
|
|
|
|
set_property -dict [list CONFIG.C_TRIGIN_EN {false}] $ila_adc
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net sys_200m_clk [get_bd_pins ila_adc/clk]
|
|
|
|
|
connect_bd_net -net axi_ad9643_dma_dwr [get_bd_pins ila_adc/PROBE0]
|
|
|
|
|
connect_bd_net -net axi_ad9643_dma_ddata [get_bd_pins ila_adc/PROBE1]
|
|
|
|
|
ad_connect sys_200m_clk ila_adc/clk
|
|
|
|
|
ad_connect sys_wfifo/dma_wr ila_adc/PROBE0
|
|
|
|
|
ad_connect sys_wfifo/dma_wdata ila_adc/PROBE1
|
|
|
|
|
|
|
|
|
|
# reference clock
|
|
|
|
|
|
|
|
|
|
connect_bd_net -net fmcomms1_ref_clk [get_bd_pins sys_audio_clkgen/clk_out2] [get_bd_ports ref_clk]
|
|
|
|
|
|
|
|
|
|
# address map
|
|
|
|
|
|
|
|
|
|
create_bd_addr_seg -range 0x00010000 -offset 0x74200000 $sys_addr_cntrl_space [get_bd_addr_segs axi_ad9122/s_axi/axi_lite] SEG_data_ad9122
|
|
|
|
|
create_bd_addr_seg -range 0x00010000 -offset 0x79020000 $sys_addr_cntrl_space [get_bd_addr_segs axi_ad9643/s_axi/axi_lite] SEG_data_ad9643
|
|
|
|
|
create_bd_addr_seg -range 0x00010000 -offset 0x7c400000 $sys_addr_cntrl_space [get_bd_addr_segs axi_ad9643_dma/s_axi/axi_lite] SEG_data_ad9122_dma
|
|
|
|
|
create_bd_addr_seg -range 0x00010000 -offset 0x7c420000 $sys_addr_cntrl_space [get_bd_addr_segs axi_ad9122_dma/s_axi/axi_lite] SEG_data_ad9643_dma
|
|
|
|
|
|
|
|
|
|
if {$sys_zynq == 0} {
|
|
|
|
|
create_bd_addr_seg -range $sys_mem_size -offset 0x80000000 [get_bd_addr_spaces axi_ad9643_dma/m_dest_axi] [get_bd_addr_segs axi_ddr_cntrl/memmap/memaddr] SEG_axi_ddr_cntrl
|
|
|
|
|
create_bd_addr_seg -range $sys_mem_size -offset 0x80000000 [get_bd_addr_spaces axi_ad9122_dma/m_src_axi] [get_bd_addr_segs axi_ddr_cntrl/memmap/memaddr] SEG_axi_ddr_cntrl
|
|
|
|
|
} else {
|
|
|
|
|
create_bd_addr_seg -range $sys_mem_size -offset 0x00000000 [get_bd_addr_spaces axi_ad9643_dma/m_dest_axi] [get_bd_addr_segs sys_ps7/S_AXI_HP1/HP1_DDR_LOWOCM] SEG_sys_ps7_hp1_ddr_lowocm
|
|
|
|
|
create_bd_addr_seg -range $sys_mem_size -offset 0x00000000 [get_bd_addr_spaces axi_ad9122_dma/m_src_axi] [get_bd_addr_segs sys_ps7/S_AXI_HP2/HP2_DDR_LOWOCM] SEG_sys_ps7_hp2_ddr_lowocm
|
|
|
|
|
}
|
|
|
|
|