生成fifo的时候,它会有HDL Instantiation Template。按着这个调用就行。这个是我用的:
输入36bit 512.输出18bit 1024.
capture_fifo capture_fifo_inst1 (
.rst(rst), // input rst
.wr_clk(wr_clk_bufr), // input wr_clk
.rd_clk(rd_clk), // input rd_clk
.din({6'b000000,din_reg[23:12],6'b000000,din_reg[11:0]}), // input [35 : 0] din
.wr_en(wr_en), // input wr_en
.rd_en(rd_en), // input rd_en
.dout(fifo_dout), // output [17 : 0] dout
.full(), // output full
.almost_full(), // output almost_full
.wr_ack(), // output wr_ack
.overflow(), // output overflow
.empty(empty), // output empty
.almost_empty(), // output almost_empty
.valid(), // output valid
.underflow() // output underflow
|