比如下面的一段代码,你可以参考下。
fdma_controller # (
.ADDR_OFFSET(DDR_BASE),
.BUF_SIZE(3),
.H_CNT (1920),
.V_CNT (1080)
) fdma_controller_u0
(
//FDAM signals
.ui_clk(clk_100m),
.ui_rstn(ui_rstn),
//Sensor video
.W0_FS_i(W0_FS_i),
.W0_wclk_i(W0_wclk_i),
.W0_wren_i(W0_wren_i),
.W0_data_i(W0_data_i),
//vga/hdmi output -CH6_FIFO
.R0_FS_i(R0_FS_i),
.R0_rclk_i(R0_rclk_i),
.R0_rden_i(R0_rden_i),
.R0_data_o(R0_data_o),
.pkg_wr_areq(pkg_wr_areq),
.pkg_wr_en(pkg_wr_en),
.pkg_wr_last(pkg_wr_last),
.pkg_wr_addr(pkg_wr_addr),
.pkg_wr_data(pkg_wr_data),
.pkg_wr_size(pkg_wr_size),
.pkg_rd_areq(pkg_rd_areq),
.pkg_rd_en(pkg_rd_en),
.pkg_rd_last(pkg_rd_last),
.pkg_rd_addr(pkg_rd_addr),
.pkg_rd_data(pkg_rd_data),
.pkg_rd_size(pkg_rd_size)
);
|