2023-07-06 12:08:22 +00:00
|
|
|
###############################################################################
|
|
|
|
## Copyright (C) 2017-2023 Analog Devices, Inc. All rights reserved.
|
|
|
|
### SPDX short identifier: ADIBSD
|
|
|
|
###############################################################################
|
2016-10-28 07:32:30 +00:00
|
|
|
|
2023-07-06 12:08:22 +00:00
|
|
|
# ip
|
2022-07-12 11:06:15 +00:00
|
|
|
source ../../scripts/adi_env.tcl
|
2018-08-14 09:59:39 +00:00
|
|
|
source $ad_hdl_dir/library/scripts/adi_ip_xilinx.tcl
|
2016-10-28 07:32:30 +00:00
|
|
|
|
2022-03-18 21:10:26 +00:00
|
|
|
global VIVADO_IP_LIBRARY
|
|
|
|
|
2016-10-28 07:32:30 +00:00
|
|
|
adi_ip_create axi_ad5766
|
|
|
|
adi_ip_files axi_ad5766 [list \
|
|
|
|
"$ad_hdl_dir/library/common/up_xfer_cntrl.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_xfer_status.v" \
|
|
|
|
"$ad_hdl_dir/library/common/ad_rst.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_dac_common.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_clock_mon.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_axi.v" \
|
|
|
|
"$ad_hdl_dir/library/common/util_pulse_gen.v" \
|
|
|
|
"up_ad5766_sequencer.v" \
|
2019-04-02 08:18:25 +00:00
|
|
|
"axi_ad5766.v" ]
|
2016-10-28 07:32:30 +00:00
|
|
|
|
|
|
|
adi_ip_properties axi_ad5766
|
|
|
|
|
2019-04-02 08:18:25 +00:00
|
|
|
adi_init_bd_tcl
|
2019-03-14 15:25:36 +00:00
|
|
|
adi_ip_bd axi_ad5766 "bd/bd.tcl"
|
2019-01-11 08:54:16 +00:00
|
|
|
|
2022-03-18 21:10:26 +00:00
|
|
|
adi_ip_add_core_dependencies [list \
|
|
|
|
analog.com:$VIVADO_IP_LIBRARY:util_cdc:1.0 \
|
|
|
|
]
|
2017-05-18 13:12:01 +00:00
|
|
|
|
2016-10-28 07:32:30 +00:00
|
|
|
adi_add_bus "spi_engine_ctrl" "master" \
|
|
|
|
"analog.com:interface:spi_engine_ctrl_rtl:1.0" \
|
|
|
|
"analog.com:interface:spi_engine_ctrl:1.0" \
|
|
|
|
{
|
|
|
|
{"cmd_ready" "CMD_READY"} \
|
|
|
|
{"cmd_valid" "CMD_VALID"} \
|
|
|
|
{"cmd_data" "CMD_DATA"} \
|
|
|
|
{"sdo_data_ready" "SDO_READY"} \
|
|
|
|
{"sdo_data_valid" "SDO_VALID"} \
|
|
|
|
{"sdo_data" "SDO_DATA"} \
|
|
|
|
{"sdi_data_ready" "SDI_READY"} \
|
|
|
|
{"sdi_data_valid" "SDI_VALID"} \
|
|
|
|
{"sdi_data" "SDI_DATA"} \
|
|
|
|
{"sync_ready" "SYNC_READY"} \
|
|
|
|
{"sync_valid" "SYNC_VALID"} \
|
|
|
|
{"sync_data" "SYNC_DATA"} \
|
|
|
|
}
|
|
|
|
|
|
|
|
adi_add_bus "spi_engine_offload_ctrl" "slave" \
|
|
|
|
"analog.com:interface:spi_engine_offload_ctrl_rtl:1.0" \
|
|
|
|
"analog.com:interface:spi_engine_offload_ctrl:1.0" \
|
|
|
|
{ \
|
|
|
|
{ "ctrl_cmd_wr_en" "CMD_WR_EN"} \
|
|
|
|
{ "ctrl_cmd_wr_data" "CMD_WR_DATA"} \
|
|
|
|
{ "ctrl_enable" "ENABLE"} \
|
|
|
|
{ "ctrl_enabled" "ENABLED"} \
|
|
|
|
{ "ctrl_mem_reset" "MEM_RESET"} \
|
|
|
|
}
|
|
|
|
|
|
|
|
adi_add_bus_clock "ctrl_clk" "spi_engine_offload_ctrl"
|
|
|
|
adi_add_bus_clock "spi_clk" "spi_engine_ctrl" "spi_resetn"
|
|
|
|
adi_add_bus_clock "dma_clk" "dma_fifo_tx"
|
|
|
|
|
2019-01-11 08:54:16 +00:00
|
|
|
adi_add_auto_fpga_spec_params
|
|
|
|
ipx::create_xgui_files [ipx::current_core]
|
|
|
|
|
2016-10-28 07:32:30 +00:00
|
|
|
ipx::save_core [ipx::current_core]
|