fmcomms2: Cosmetic changes on *_bd.tcl script
parent
3d5ef9a8ed
commit
fe8a076b2e
|
@ -25,11 +25,11 @@
|
|||
set tx_data_out_p [create_bd_port -dir O -from 5 -to 0 tx_data_out_p]
|
||||
set tx_data_out_n [create_bd_port -dir O -from 5 -to 0 tx_data_out_n]
|
||||
|
||||
if {$sys_zynq == 0} {
|
||||
if {$sys_zynq == 0} {
|
||||
set gpio_fmcomms2_i [create_bd_port -dir I -from 16 -to 0 gpio_fmcomms2_i]
|
||||
set gpio_fmcomms2_o [create_bd_port -dir O -from 16 -to 0 gpio_fmcomms2_o]
|
||||
set gpio_fmcomms2_t [create_bd_port -dir O -from 16 -to 0 gpio_fmcomms2_t]
|
||||
}
|
||||
}
|
||||
|
||||
# ad9361 core
|
||||
|
||||
|
@ -50,6 +50,7 @@
|
|||
set_property -dict [list CONFIG.C_DMA_DATA_WIDTH_DEST {64}] $axi_ad9361_dac_dma
|
||||
|
||||
# channel packing for the ADC
|
||||
|
||||
set util_adc_pack [create_bd_cell -type ip -vlnv analog.com:user:util_adc_pack:1.0 util_adc_pack]
|
||||
set_property -dict [list CONFIG.CHANNELS {4}] $util_adc_pack
|
||||
|
||||
|
@ -57,6 +58,7 @@
|
|||
set_property -dict [list CONFIG.CHANNELS {4}] $util_dac_unpack
|
||||
|
||||
# constant 0
|
||||
|
||||
set constant_0 [create_bd_cell -type ip -vlnv xilinx.com:ip:xlconstant:1.1 constant_0]
|
||||
set_property -dict [list CONFIG.CONST_VAL {0}] $constant_0
|
||||
|
||||
|
@ -82,6 +84,7 @@ if {$sys_zynq == 1} {
|
|||
}
|
||||
|
||||
# spi
|
||||
|
||||
if {$sys_zynq == 0} {
|
||||
set axi_fmcomms2_spi [create_bd_cell -type ip -vlnv xilinx.com:ip:axi_quad_spi:3.2 axi_fmcomms2_spi]
|
||||
set_property -dict [list CONFIG.C_USE_STARTUP {0}] $axi_fmcomms2_spi
|
||||
|
@ -90,6 +93,7 @@ if {$sys_zynq == 0} {
|
|||
}
|
||||
|
||||
# gpio
|
||||
|
||||
if {$sys_zynq == 0} {
|
||||
set axi_fmcomms2_gpio [create_bd_cell -type ip -vlnv xilinx.com:ip:axi_gpio:2.0 axi_fmcomms2_gpio]
|
||||
set_property -dict [list CONFIG.C_IS_DUAL {0}] $axi_fmcomms2_gpio
|
||||
|
@ -147,6 +151,7 @@ if {$sys_zynq == 0} {
|
|||
}
|
||||
|
||||
# connections (gpio)
|
||||
|
||||
if {$sys_zynq == 0} {
|
||||
connect_bd_net -net gpio_fmcomms2_i [get_bd_ports gpio_fmcomms2_i] [get_bd_pins axi_fmcomms2_gpio/gpio_io_i]
|
||||
connect_bd_net -net gpio_fmcomms2_o [get_bd_ports gpio_fmcomms2_o] [get_bd_pins axi_fmcomms2_gpio/gpio_io_o]
|
||||
|
@ -155,7 +160,6 @@ if {$sys_zynq == 0} {
|
|||
}
|
||||
# connections (ad9361)
|
||||
|
||||
|
||||
connect_bd_net -net sys_200m_clk [get_bd_pins axi_ad9361/delay_clk]
|
||||
connect_bd_net -net axi_ad9361_clk [get_bd_pins axi_ad9361/l_clk]
|
||||
connect_bd_net -net axi_ad9361_clk [get_bd_pins axi_ad9361/clk]
|
||||
|
@ -193,7 +197,6 @@ if {$sys_zynq == 0} {
|
|||
connect_bd_net -net util_adc_pack_ddata [get_bd_pins util_adc_pack/ddata] [get_bd_pins axi_ad9361_adc_dma/fifo_wr_din]
|
||||
connect_bd_net -net axi_ad9361_adc_dovf [get_bd_pins axi_ad9361/adc_dovf] [get_bd_pins axi_ad9361_adc_dma/fifo_wr_overflow]
|
||||
|
||||
|
||||
connect_bd_net -net axi_ad9361_clk [get_bd_pins util_dac_unpack/clk]
|
||||
connect_bd_net -net axi_ad9361_dac_valid_0 [get_bd_pins util_dac_unpack/dac_valid_00] [get_bd_pins axi_ad9361/dac_valid_i0]
|
||||
connect_bd_net -net axi_ad9361_dac_valid_1 [get_bd_pins util_dac_unpack/dac_valid_01] [get_bd_pins axi_ad9361/dac_valid_q0]
|
||||
|
@ -209,11 +212,10 @@ if {$sys_zynq == 0} {
|
|||
connect_bd_net -net axi_ad9361_dac_data_3 [get_bd_pins util_dac_unpack/dac_data_03] [get_bd_pins axi_ad9361/dac_data_q1]
|
||||
|
||||
connect_bd_net -net fifo_data [get_bd_pins util_dac_unpack/dma_data] [get_bd_pins axi_ad9361_dac_dma/fifo_rd_dout]
|
||||
connect_bd_net -net fifo_valid [get_bd_pins axi_ad9361_dac_dma/fifo_rd_valid] [get_bd_pins util_dac_unpack/fifo_valid]
|
||||
connect_bd_net -net fifo_valid [get_bd_pins util_dac_unpack/fifo_valid] [get_bd_pins axi_ad9361_dac_dma/fifo_rd_valid]
|
||||
connect_bd_net -net axi_ad9361_dac_drd [get_bd_pins util_dac_unpack/dma_rd] [get_bd_pins axi_ad9361_dac_dma/fifo_rd_en]
|
||||
connect_bd_net -net axi_ad9361_dac_dunf [get_bd_pins axi_ad9361/dac_dunf] [get_bd_pins axi_ad9361_dac_dma/fifo_rd_underflow]
|
||||
|
||||
|
||||
if {$sys_zynq == 0} {
|
||||
connect_bd_net -net axi_ad9361_adc_dma_irq [get_bd_pins axi_ad9361_adc_dma/irq] [get_bd_pins sys_concat_intc/In5]
|
||||
connect_bd_net -net axi_ad9361_dac_dma_irq [get_bd_pins axi_ad9361_dac_dma/irq] [get_bd_pins sys_concat_intc/In6]
|
||||
|
@ -286,7 +288,6 @@ if {$sys_zynq == 0} {
|
|||
connect_bd_net -net sys_fmc_dma_clk [get_bd_pins axi_ad9361_adc_dma/m_dest_axi_aclk]
|
||||
connect_bd_net -net sys_100m_resetn [get_bd_pins axi_ad9361_adc_dma/m_dest_axi_aresetn]
|
||||
connect_bd_net -net sys_fmc_dma_clk [get_bd_pins sys_ps7/S_AXI_HP1_ACLK]
|
||||
|
||||
}
|
||||
|
||||
# ila (adc)
|
||||
|
@ -309,32 +310,35 @@ if {$sys_zynq == 0} {
|
|||
p_sys_wfifo [current_bd_instance .] sys_wfifo_2 16 16
|
||||
p_sys_wfifo [current_bd_instance .] sys_wfifo_3 16 16
|
||||
|
||||
if {$sys_zynq == 0} {
|
||||
if {$sys_zynq == 0} {
|
||||
connect_bd_net -net sys_200m_clk [get_bd_pins ila_adc/clk]
|
||||
connect_bd_net -net sys_200m_clk [get_bd_pins sys_wfifo_0/s_clk] $sys_200m_clk_source
|
||||
connect_bd_net -net sys_200m_clk [get_bd_pins sys_wfifo_1/s_clk] $sys_200m_clk_source
|
||||
connect_bd_net -net sys_200m_clk [get_bd_pins sys_wfifo_2/s_clk] $sys_200m_clk_source
|
||||
connect_bd_net -net sys_200m_clk [get_bd_pins sys_wfifo_3/s_clk] $sys_200m_clk_source
|
||||
} else {
|
||||
} else {
|
||||
connect_bd_net -net sys_fmc_dma_clk [get_bd_pins ila_adc/clk]
|
||||
connect_bd_net -net sys_fmc_dma_clk [get_bd_pins sys_wfifo_0/s_clk] $sys_fmc_dma_clk_source
|
||||
connect_bd_net -net sys_fmc_dma_clk [get_bd_pins sys_wfifo_1/s_clk] $sys_fmc_dma_clk_source
|
||||
connect_bd_net -net sys_fmc_dma_clk [get_bd_pins sys_wfifo_2/s_clk] $sys_fmc_dma_clk_source
|
||||
connect_bd_net -net sys_fmc_dma_clk [get_bd_pins sys_wfifo_3/s_clk] $sys_fmc_dma_clk_source
|
||||
}
|
||||
}
|
||||
|
||||
connect_bd_net -net axi_ad9361_clk [get_bd_pins sys_wfifo_0/m_clk] [get_bd_pins axi_ad9361/l_clk]
|
||||
connect_bd_net -net axi_ad9361_clk [get_bd_pins sys_wfifo_1/m_clk] [get_bd_pins axi_ad9361/l_clk]
|
||||
connect_bd_net -net axi_ad9361_clk [get_bd_pins sys_wfifo_2/m_clk] [get_bd_pins axi_ad9361/l_clk]
|
||||
connect_bd_net -net axi_ad9361_clk [get_bd_pins sys_wfifo_3/m_clk] [get_bd_pins axi_ad9361/l_clk]
|
||||
|
||||
connect_bd_net -net sys_100m_resetn [get_bd_pins sys_wfifo_0/rstn] $sys_100m_resetn_source
|
||||
connect_bd_net -net sys_100m_resetn [get_bd_pins sys_wfifo_1/rstn] $sys_100m_resetn_source
|
||||
connect_bd_net -net sys_100m_resetn [get_bd_pins sys_wfifo_2/rstn] $sys_100m_resetn_source
|
||||
connect_bd_net -net sys_100m_resetn [get_bd_pins sys_wfifo_3/rstn] $sys_100m_resetn_source
|
||||
|
||||
connect_bd_net -net axi_ad9361_adc_valid_i0 [get_bd_pins sys_wfifo_0/m_wr] [get_bd_pins axi_ad9361/adc_valid_i0]
|
||||
connect_bd_net -net axi_ad9361_adc_valid_q0 [get_bd_pins sys_wfifo_1/m_wr] [get_bd_pins axi_ad9361/adc_valid_q0]
|
||||
connect_bd_net -net axi_ad9361_adc_valid_i1 [get_bd_pins sys_wfifo_2/m_wr] [get_bd_pins axi_ad9361/adc_valid_i1]
|
||||
connect_bd_net -net axi_ad9361_adc_valid_q1 [get_bd_pins sys_wfifo_3/m_wr] [get_bd_pins axi_ad9361/adc_valid_q1]
|
||||
|
||||
connect_bd_net -net axi_ad9361_adc_chan_i0 [get_bd_pins sys_wfifo_0/m_wdata] [get_bd_pins axi_ad9361/adc_data_i0]
|
||||
connect_bd_net -net axi_ad9361_adc_chan_q0 [get_bd_pins sys_wfifo_1/m_wdata] [get_bd_pins axi_ad9361/adc_data_q0]
|
||||
connect_bd_net -net axi_ad9361_adc_chan_i1 [get_bd_pins sys_wfifo_2/m_wdata] [get_bd_pins axi_ad9361/adc_data_i1]
|
||||
|
@ -344,6 +348,7 @@ if {$sys_zynq == 0} {
|
|||
connect_bd_net -net util_wfifo_1_s_wr [get_bd_pins sys_wfifo_1/s_wr] [get_bd_pins ila_adc/probe1]
|
||||
connect_bd_net -net util_wfifo_2_s_wr [get_bd_pins sys_wfifo_2/s_wr] [get_bd_pins ila_adc/probe2]
|
||||
connect_bd_net -net util_wfifo_3_s_wr [get_bd_pins sys_wfifo_3/s_wr] [get_bd_pins ila_adc/probe3]
|
||||
|
||||
connect_bd_net -net util_wfifo_0_s_wdata [get_bd_pins sys_wfifo_0/s_wdata] [get_bd_pins ila_adc/probe4]
|
||||
connect_bd_net -net util_wfifo_1_s_wdata [get_bd_pins sys_wfifo_1/s_wdata] [get_bd_pins ila_adc/probe5]
|
||||
connect_bd_net -net util_wfifo_2_s_wdata [get_bd_pins sys_wfifo_2/s_wdata] [get_bd_pins ila_adc/probe6]
|
||||
|
|
Loading…
Reference in New Issue