43 lines
1.2 KiB
Tcl
43 lines
1.2 KiB
Tcl
|
|
source ../../common/zed/zed_system_bd.tcl
|
|
source ../common/m2k_bd.tcl
|
|
|
|
# Use the 100 MHz clock for video DMA, the AXI interface clock is to slow for
|
|
# this in this project.
|
|
|
|
set video_dma_clocks [list \
|
|
axi_hp0_interconnect/ACLK \
|
|
axi_hp0_interconnect/M00_ACLK \
|
|
axi_hp0_interconnect/S00_ACLK \
|
|
sys_ps7/S_AXI_HP0_ACLK \
|
|
axi_hdmi_dma/m_axi_mm2s_aclk \
|
|
axi_hdmi_dma/m_axis_mm2s_aclk \
|
|
axi_hdmi_core/vdma_clk
|
|
]
|
|
|
|
set video_dma_resets [list \
|
|
axi_hp0_interconnect/ARESETN \
|
|
axi_hp0_interconnect/M00_ARESETN \
|
|
axi_hp0_interconnect/S00_ARESETN \
|
|
]
|
|
|
|
ad_ip_parameter sys_ps7 CONFIG.PCW_FPGA1_PERIPHERAL_FREQMHZ 100.0
|
|
|
|
ad_ip_parameter axi_hdmi_clkgen CONFIG.VCO_DIV 4
|
|
ad_ip_parameter axi_hdmi_clkgen CONFIG.VCO_MUL 37.125
|
|
ad_ip_parameter axi_hdmi_clkgen CONFIG.CLK0_DIV 6.250
|
|
|
|
ad_ip_instance proc_sys_reset video_dma_reset
|
|
ad_connect sys_ps7/FCLK_CLK1 video_dma_reset/slowest_sync_clk
|
|
ad_connect sys_rstgen/peripheral_aresetn video_dma_reset/ext_reset_in
|
|
|
|
foreach clk $video_dma_clocks {
|
|
ad_disconnect /sys_cpu_clk $clk
|
|
ad_connect $clk sys_ps7/FCLK_CLK1
|
|
}
|
|
|
|
foreach rst $video_dma_resets {
|
|
ad_disconnect /sys_cpu_resetn $rst
|
|
ad_connect $rst video_dma_reset/peripheral_aresetn
|
|
}
|