2017-02-28 18:30:50 +00:00
|
|
|
|
2021-02-25 09:41:57 +00:00
|
|
|
package require qsys 14.0
|
2017-02-28 18:30:50 +00:00
|
|
|
source ../scripts/adi_env.tcl
|
2018-08-14 10:08:06 +00:00
|
|
|
source ../scripts/adi_ip_intel.tcl
|
2017-02-28 18:30:50 +00:00
|
|
|
|
|
|
|
ad_ip_create util_dacfifo {UTIL DAC FIFO Interface}
|
|
|
|
ad_ip_files util_dacfifo [list\
|
|
|
|
$ad_hdl_dir/library/common/ad_mem.v \
|
2018-08-22 12:05:00 +00:00
|
|
|
$ad_hdl_dir/library/common/ad_mem_asym.v \
|
2017-10-05 11:20:54 +00:00
|
|
|
$ad_hdl_dir/library/common/ad_b2g.v \
|
|
|
|
$ad_hdl_dir/library/common/ad_g2b.v \
|
2017-02-28 18:30:50 +00:00
|
|
|
util_dacfifo.v \
|
2018-08-22 12:05:00 +00:00
|
|
|
util_dacfifo_bypass.v \
|
2017-02-28 18:30:50 +00:00
|
|
|
util_dacfifo_constr.sdc]
|
|
|
|
|
|
|
|
# parameters
|
|
|
|
|
|
|
|
ad_ip_parameter DEVICE_FAMILY STRING {Arria 10}
|
|
|
|
ad_ip_parameter ADDRESS_WIDTH INTEGER 6
|
|
|
|
ad_ip_parameter DATA_WIDTH INTEGER 128
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
|
2018-08-14 13:53:45 +00:00
|
|
|
ad_interface clock dma_clk input 1 clk
|
|
|
|
ad_interface reset dma_rst input 1 if_dma_clk
|
|
|
|
ad_interface signal dma_xfer_req input 1 xfer_req
|
2019-05-16 07:09:15 +00:00
|
|
|
|
|
|
|
add_interface s_axis axi4stream end
|
|
|
|
set_interface_property s_axis associatedClock if_dma_clk
|
|
|
|
set_interface_property s_axis associatedReset if_dma_rst
|
|
|
|
add_interface_port s_axis dma_valid tvalid Input 1
|
|
|
|
add_interface_port s_axis dma_xfer_last tlast Input 1
|
|
|
|
add_interface_port s_axis dma_ready tready Output 1
|
|
|
|
add_interface_port s_axis dma_data tdata Input DATA_WIDTH
|
2017-02-28 18:30:50 +00:00
|
|
|
|
2018-08-14 13:53:45 +00:00
|
|
|
ad_interface clock dac_clk input 1
|
|
|
|
ad_interface reset dac_rst input 1 if_dac_clk
|
|
|
|
ad_interface signal dac_valid input 1 valid
|
|
|
|
ad_interface signal dac_data output DATA_WIDTH data
|
|
|
|
ad_interface signal dac_xfer_out output 1 xfer_req
|
|
|
|
ad_interface signal dac_dunf output 1 unf
|
2017-02-28 18:30:50 +00:00
|
|
|
|
2018-08-14 13:53:45 +00:00
|
|
|
ad_interface signal bypass input 1 bypass
|
2017-02-28 18:30:50 +00:00
|
|
|
|