2015-06-26 09:04:19 +00:00
|
|
|
# pl ddr3 (use only when dma is not capable of keeping up).
|
|
|
|
# generic fifo interface - existence is oblivious to software.
|
|
|
|
|
2019-01-22 13:17:02 +00:00
|
|
|
proc ad_dacfifo_create {dac_fifo_name dac_data_width dac_dma_data_width dac_fifo_address_width} {
|
|
|
|
|
2019-01-22 13:29:29 +00:00
|
|
|
upvar ad_hdl_dir ad_hdl_dir
|
|
|
|
|
|
|
|
ad_ip_instance proc_sys_reset axi_rstgen
|
|
|
|
ad_ip_instance mig_7series axi_ddr_cntrl
|
|
|
|
|
|
|
|
file copy -force $ad_hdl_dir/projects/common/zc706/zc706_plddr3_mig.prj [get_property IP_DIR \
|
|
|
|
[get_ips [get_property CONFIG.Component_Name [get_bd_cells axi_ddr_cntrl]]]]
|
|
|
|
ad_ip_parameter axi_ddr_cntrl CONFIG.XML_INPUT_FILE zc706_plddr3_mig.prj
|
|
|
|
|
|
|
|
create_bd_port -dir I -type rst sys_rst
|
|
|
|
set_property CONFIG.POLARITY ACTIVE_HIGH [get_bd_ports sys_rst]
|
|
|
|
|
|
|
|
create_bd_intf_port -mode Master -vlnv xilinx.com:interface:ddrx_rtl:1.0 ddr3
|
|
|
|
create_bd_intf_port -mode Slave -vlnv xilinx.com:interface:diff_clock_rtl:1.0 sys_clk
|
|
|
|
|
|
|
|
ad_connect sys_rst axi_ddr_cntrl/sys_rst
|
|
|
|
ad_connect sys_clk axi_ddr_cntrl/SYS_CLK
|
|
|
|
ad_connect ddr3 axi_ddr_cntrl/DDR3
|
|
|
|
|
|
|
|
ad_ip_instance axi_dacfifo $dac_fifo_name
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.DAC_DATA_WIDTH $dac_data_width
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.DMA_DATA_WIDTH $dac_dma_data_width
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.AXI_DATA_WIDTH 512
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.AXI_SIZE 6
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.AXI_LENGTH 255
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.AXI_ADDRESS 0x80000000
|
2019-05-03 15:53:55 +00:00
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.AXI_ADDRESS_LIMIT 0xbfffffff
|
2019-01-22 13:29:29 +00:00
|
|
|
|
|
|
|
ad_connect axi_ddr_cntrl/S_AXI $dac_fifo_name/axi
|
|
|
|
ad_connect axi_ddr_cntrl/ui_clk $dac_fifo_name/axi_clk
|
|
|
|
ad_connect axi_ddr_cntrl/ui_clk axi_rstgen/slowest_sync_clk
|
|
|
|
ad_connect sys_cpu_resetn axi_rstgen/ext_reset_in
|
|
|
|
ad_connect axi_rstgen/peripheral_aresetn $dac_fifo_name/axi_resetn
|
|
|
|
ad_connect axi_rstgen/peripheral_aresetn axi_ddr_cntrl/aresetn
|
|
|
|
ad_connect axi_ddr_cntrl/device_temp_i GND
|
|
|
|
|
|
|
|
assign_bd_address [get_bd_addr_segs -of_objects [get_bd_cells axi_ddr_cntrl]]
|
2016-04-19 08:30:52 +00:00
|
|
|
|
2019-01-22 13:17:02 +00:00
|
|
|
}
|