2015-03-12 15:09:20 +00:00
|
|
|
|
|
|
|
# video
|
|
|
|
|
|
|
|
create_bd_port -dir O hdmi_out_clk
|
|
|
|
create_bd_port -dir O hdmi_16_hsync
|
|
|
|
create_bd_port -dir O hdmi_16_vsync
|
|
|
|
create_bd_port -dir O hdmi_16_data_e
|
|
|
|
create_bd_port -dir O -from 15 -to 0 hdmi_16_data
|
|
|
|
create_bd_port -dir O hdmi_24_hsync
|
|
|
|
create_bd_port -dir O hdmi_24_vsync
|
|
|
|
create_bd_port -dir O hdmi_24_data_e
|
|
|
|
create_bd_port -dir O -from 23 -to 0 hdmi_24_data
|
|
|
|
create_bd_port -dir O hdmi_36_hsync
|
|
|
|
create_bd_port -dir O hdmi_36_vsync
|
|
|
|
create_bd_port -dir O hdmi_36_data_e
|
|
|
|
create_bd_port -dir O -from 35 -to 0 hdmi_36_data
|
|
|
|
|
|
|
|
# spdif audio
|
|
|
|
|
|
|
|
create_bd_port -dir O spdif
|
|
|
|
|
|
|
|
# hdmi peripherals
|
|
|
|
|
|
|
|
set axi_hdmi_clkgen [create_bd_cell -type ip -vlnv analog.com:user:axi_clkgen:1.0 axi_hdmi_clkgen]
|
|
|
|
set axi_hdmi_core [create_bd_cell -type ip -vlnv analog.com:user:axi_hdmi_tx:1.0 axi_hdmi_core]
|
|
|
|
|
|
|
|
set axi_hdmi_dma [create_bd_cell -type ip -vlnv xilinx.com:ip:axi_vdma:6.2 axi_hdmi_dma]
|
|
|
|
set_property -dict [list CONFIG.c_m_axis_mm2s_tdata_width {64}] $axi_hdmi_dma
|
|
|
|
set_property -dict [list CONFIG.c_use_mm2s_fsync {1}] $axi_hdmi_dma
|
|
|
|
set_property -dict [list CONFIG.c_include_s2mm {0}] $axi_hdmi_dma
|
|
|
|
|
|
|
|
# audio peripherals
|
|
|
|
|
|
|
|
set sys_audio_clkgen [create_bd_cell -type ip -vlnv xilinx.com:ip:clk_wiz:5.1 sys_audio_clkgen]
|
|
|
|
set_property -dict [list CONFIG.PRIM_IN_FREQ {200.000}] $sys_audio_clkgen
|
|
|
|
set_property -dict [list CONFIG.CLKOUT1_REQUESTED_OUT_FREQ {12.288}] $sys_audio_clkgen
|
|
|
|
|
|
|
|
set axi_spdif_tx_core [create_bd_cell -type ip -vlnv analog.com:user:axi_spdif_tx:1.0 axi_spdif_tx_core]
|
2015-08-25 06:25:24 +00:00
|
|
|
set_property -dict [list CONFIG.DMA_TYPE {0}] $axi_spdif_tx_core
|
|
|
|
set_property -dict [list CONFIG.S_AXI_ADDRESS_WIDTH {16}] $axi_spdif_tx_core
|
2015-03-12 15:09:20 +00:00
|
|
|
|
|
|
|
set axi_spdif_tx_dma [create_bd_cell -type ip -vlnv xilinx.com:ip:axi_dma:7.1 axi_spdif_tx_dma]
|
2015-08-25 06:58:32 +00:00
|
|
|
set_property -dict [list CONFIG.C_INCLUDE_S2MM {0}] $axi_spdif_tx_dma
|
|
|
|
set_property -dict [list CONFIG.C_SG_INCLUDE_STSCNTRL_STRM {0}] $axi_spdif_tx_dma
|
2015-03-12 15:09:20 +00:00
|
|
|
|
|
|
|
# hdmi
|
|
|
|
|
|
|
|
ad_connect sys_200m_clk axi_hdmi_clkgen/clk
|
2015-08-28 17:47:31 +00:00
|
|
|
ad_connect sys_cpu_clk axi_hdmi_core/vdma_clk
|
2015-03-12 15:09:20 +00:00
|
|
|
ad_connect sys_cpu_clk axi_hdmi_dma/m_axis_mm2s_aclk
|
|
|
|
ad_connect axi_hdmi_core/hdmi_clk axi_hdmi_clkgen/clk_0
|
|
|
|
ad_connect axi_hdmi_core/hdmi_out_clk hdmi_out_clk
|
|
|
|
ad_connect axi_hdmi_core/hdmi_16_hsync hdmi_16_hsync
|
|
|
|
ad_connect axi_hdmi_core/hdmi_16_vsync hdmi_16_vsync
|
|
|
|
ad_connect axi_hdmi_core/hdmi_16_data_e hdmi_16_data_e
|
|
|
|
ad_connect axi_hdmi_core/hdmi_16_data hdmi_16_data
|
|
|
|
ad_connect axi_hdmi_core/hdmi_24_hsync hdmi_24_hsync
|
|
|
|
ad_connect axi_hdmi_core/hdmi_24_vsync hdmi_24_vsync
|
|
|
|
ad_connect axi_hdmi_core/hdmi_24_data_e hdmi_24_data_e
|
|
|
|
ad_connect axi_hdmi_core/hdmi_24_data hdmi_24_data
|
|
|
|
ad_connect axi_hdmi_core/hdmi_36_hsync hdmi_36_hsync
|
|
|
|
ad_connect axi_hdmi_core/hdmi_36_vsync hdmi_36_vsync
|
|
|
|
ad_connect axi_hdmi_core/hdmi_36_data_e hdmi_36_data_e
|
|
|
|
ad_connect axi_hdmi_core/hdmi_36_data hdmi_36_data
|
2015-08-28 17:47:31 +00:00
|
|
|
ad_connect axi_hdmi_core/vdma_valid axi_hdmi_dma/m_axis_mm2s_tvalid
|
|
|
|
ad_connect axi_hdmi_core/vdma_data axi_hdmi_dma/m_axis_mm2s_tdata
|
|
|
|
ad_connect axi_hdmi_core/vdma_ready axi_hdmi_dma/m_axis_mm2s_tready
|
|
|
|
ad_connect axi_hdmi_core/vdma_fs axi_hdmi_dma/mm2s_fsync
|
|
|
|
ad_connect axi_hdmi_core/vdma_fs axi_hdmi_core/vdma_fs_ret
|
2015-03-12 15:09:20 +00:00
|
|
|
|
|
|
|
# spdif audio
|
|
|
|
|
|
|
|
ad_connect axi_spdif_tx_core/S_AXIS_TVALID axi_spdif_tx_dma/m_axis_mm2s_tvalid
|
|
|
|
ad_connect axi_spdif_tx_core/S_AXIS_TDATA axi_spdif_tx_dma/m_axis_mm2s_tdata
|
|
|
|
ad_connect axi_spdif_tx_core/S_AXIS_TLAST axi_spdif_tx_dma/m_axis_mm2s_tlast
|
|
|
|
ad_connect axi_spdif_tx_core/S_AXIS_TREADY axi_spdif_tx_dma/m_axis_mm2s_tready
|
|
|
|
ad_connect sys_200m_clk sys_audio_clkgen/clk_in1
|
|
|
|
ad_connect sys_audio_clkgen/clk_out1 axi_spdif_tx_core/spdif_data_clk
|
|
|
|
ad_connect sys_cpu_clk axi_spdif_tx_core/S_AXIS_ACLK
|
|
|
|
ad_connect sys_cpu_resetn axi_spdif_tx_core/S_AXIS_ARESETN
|
|
|
|
ad_connect spdif axi_spdif_tx_core/spdif_tx_o
|
|
|
|
|
|
|
|
# processor interconnects
|
|
|
|
|
|
|
|
ad_cpu_interconnect 0x79000000 axi_hdmi_clkgen
|
|
|
|
ad_cpu_interconnect 0x70e00000 axi_hdmi_core
|
|
|
|
ad_cpu_interconnect 0x43000000 axi_hdmi_dma
|
|
|
|
ad_cpu_interconnect 0x75c00000 axi_spdif_tx_core
|
|
|
|
ad_cpu_interconnect 0x41E00000 axi_spdif_tx_dma
|
|
|
|
|
|
|
|
# memory interconnects
|
|
|
|
|
|
|
|
ad_mem_hp0_interconnect sys_cpu_clk axi_hdmi_dma/M_AXI_MM2S
|
|
|
|
ad_mem_hp0_interconnect sys_cpu_clk axi_spdif_tx_dma/M_AXI_SG
|
|
|
|
ad_mem_hp0_interconnect sys_cpu_clk axi_spdif_tx_dma/M_AXI_MM2S
|
|
|
|
|
2015-03-20 11:30:24 +00:00
|
|
|
# interrupts
|
|
|
|
|
|
|
|
ad_cpu_interrupt ps-0 mb-8 axi_hdmi_dma/mm2s_introut
|
|
|
|
ad_cpu_interrupt ps-0 mb-7 axi_spdif_tx_dma/mm2s_introut
|
|
|
|
|