2016-10-24 07:54:40 +00:00
|
|
|
|
2017-05-12 17:25:17 +00:00
|
|
|
package require qsys
|
2019-01-11 08:54:16 +00:00
|
|
|
package require quartus::device
|
|
|
|
|
2016-10-24 07:54:40 +00:00
|
|
|
source ../scripts/adi_env.tcl
|
2018-08-14 10:08:06 +00:00
|
|
|
source ../scripts/adi_ip_intel.tcl
|
2016-10-24 07:54:40 +00:00
|
|
|
|
2016-12-06 12:48:34 +00:00
|
|
|
ad_ip_create axi_ad9122 {AXI AD9122 Interface}
|
2019-01-11 08:54:16 +00:00
|
|
|
set_module_property VALIDATION_CALLBACK info_param_validate
|
2016-12-06 12:48:34 +00:00
|
|
|
|
|
|
|
ad_ip_files axi_ad9122 [list \
|
2018-02-07 12:10:27 +00:00
|
|
|
$ad_hdl_dir/library/common/ad_dds_cordic_pipe.v \
|
|
|
|
$ad_hdl_dir/library/common/ad_dds_sine_cordic.v \
|
2016-12-06 12:48:34 +00:00
|
|
|
$ad_hdl_dir/library/common/ad_dds_sine.v \
|
2018-06-04 13:42:30 +00:00
|
|
|
$ad_hdl_dir/library/common/ad_dds_2.v \
|
2016-12-06 12:48:34 +00:00
|
|
|
$ad_hdl_dir/library/common/ad_dds_1.v \
|
|
|
|
$ad_hdl_dir/library/common/ad_dds.v \
|
2018-08-13 13:59:02 +00:00
|
|
|
$ad_hdl_dir/library/intel/common/ad_mul.v \
|
2016-12-06 12:48:34 +00:00
|
|
|
$ad_hdl_dir/library/common/ad_rst.v \
|
|
|
|
$ad_hdl_dir/library/common/up_axi.v \
|
|
|
|
$ad_hdl_dir/library/common/up_xfer_cntrl.v \
|
|
|
|
$ad_hdl_dir/library/common/up_xfer_status.v \
|
|
|
|
$ad_hdl_dir/library/common/up_clock_mon.v \
|
|
|
|
$ad_hdl_dir/library/common/up_dac_common.v \
|
|
|
|
$ad_hdl_dir/library/common/up_dac_channel.v \
|
|
|
|
axi_ad9122_channel.v \
|
|
|
|
axi_ad9122_core.v \
|
|
|
|
axi_ad9122_if.v \
|
|
|
|
axi_ad9122.v \
|
2018-08-13 13:59:02 +00:00
|
|
|
$ad_hdl_dir/library/intel/common/up_xfer_cntrl_constr.sdc \
|
|
|
|
$ad_hdl_dir/library/intel/common/up_xfer_status_constr.sdc \
|
|
|
|
$ad_hdl_dir/library/intel/common/up_clock_mon_constr.sdc \
|
|
|
|
$ad_hdl_dir/library/intel/common/up_rst_constr.sdc \
|
2016-12-06 12:48:34 +00:00
|
|
|
axi_ad9122_constr.sdc] \
|
|
|
|
axi_ad9122_fileset
|
2016-10-24 07:54:40 +00:00
|
|
|
|
|
|
|
# parameters
|
|
|
|
|
|
|
|
add_parameter ID INTEGER 0
|
|
|
|
set_parameter_property ID DEFAULT_VALUE 0
|
|
|
|
set_parameter_property ID DISPLAY_NAME ID
|
|
|
|
set_parameter_property ID UNITS None
|
|
|
|
set_parameter_property ID HDL_PARAMETER true
|
|
|
|
|
2019-01-11 08:54:16 +00:00
|
|
|
add_parameter FPGA_TECHNOLOGY INTEGER 0
|
|
|
|
set_parameter_property FPGA_TECHNOLOGY DEFAULT_VALUE 0
|
|
|
|
set_parameter_property FPGA_TECHNOLOGY DISPLAY_NAME FPGA_TECHNOLOGY
|
|
|
|
set_parameter_property FPGA_TECHNOLOGY TYPE INTEGER
|
|
|
|
set_parameter_property FPGA_TECHNOLOGY UNITS None
|
|
|
|
set_parameter_property FPGA_TECHNOLOGY HDL_PARAMETER true
|
|
|
|
|
|
|
|
adi_add_auto_fpga_spec_params
|
2016-10-24 07:54:40 +00:00
|
|
|
|
|
|
|
# axi4 slave
|
|
|
|
|
2016-12-06 12:48:34 +00:00
|
|
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
2016-10-24 07:54:40 +00:00
|
|
|
|
|
|
|
# dac device interface
|
|
|
|
|
|
|
|
add_interface device_if conduit end
|
|
|
|
set_interface_property device_if associatedClock none
|
|
|
|
set_interface_property device_if associatedReset none
|
|
|
|
|
|
|
|
add_interface_port device_if dac_clk_in_p dac_clk_in_p Input 1
|
|
|
|
add_interface_port device_if dac_clk_in_n dac_clk_in_n Input 1
|
|
|
|
add_interface_port device_if dac_clk_out_p dac_clk_out_p Output 1
|
|
|
|
add_interface_port device_if dac_clk_out_n dac_clk_out_n Output 1
|
|
|
|
add_interface_port device_if dac_frame_out_p dac_frame_out_p Output 1
|
|
|
|
add_interface_port device_if dac_frame_out_n dac_frame_out_n Output 1
|
|
|
|
add_interface_port device_if dac_data_out_p dac_data_out_p Output 16
|
|
|
|
add_interface_port device_if dac_data_out_n dac_data_out_n Output 16
|
|
|
|
|
|
|
|
add_interface_port device_if dac_sync_out dac_sync_out Output 1
|
|
|
|
add_interface_port device_if dac_sync_in dac_sync_in Input 1
|
|
|
|
|
|
|
|
# dma interface
|
|
|
|
|
2018-08-14 13:53:45 +00:00
|
|
|
ad_interface clock dac_div_clk Output 1
|
2016-10-24 07:54:40 +00:00
|
|
|
|
|
|
|
add_interface dac_ch_0 conduit end
|
|
|
|
add_interface_port dac_ch_0 dac_valid_0 valid Output 1
|
|
|
|
add_interface_port dac_ch_0 dac_enable_0 enable Output 1
|
|
|
|
add_interface_port dac_ch_0 dac_ddata_0 data Input 64
|
|
|
|
set_interface_property dac_ch_0 associatedClock if_dac_div_clk
|
|
|
|
set_interface_property dac_ch_0 associatedReset none
|
|
|
|
|
|
|
|
add_interface dac_ch_1 conduit end
|
|
|
|
add_interface_port dac_ch_1 dac_valid_1 valid Output 1
|
|
|
|
add_interface_port dac_ch_1 dac_enable_1 enable Output 1
|
|
|
|
add_interface_port dac_ch_1 dac_ddata_1 data Input 64
|
|
|
|
set_interface_property dac_ch_1 associatedClock if_dac_div_clk
|
|
|
|
set_interface_property dac_ch_1 associatedReset none
|
|
|
|
|
2018-08-14 13:53:45 +00:00
|
|
|
ad_interface signal dac_dunf input 1 unf
|
2016-10-24 07:54:40 +00:00
|
|
|
|
|
|
|
# SERDES instances and configurations
|
|
|
|
|
2018-08-14 11:14:20 +00:00
|
|
|
add_hdl_instance ad_serdes_clk_core_tx intel_serdes
|
2016-12-06 12:48:34 +00:00
|
|
|
set_instance_parameter_value ad_serdes_clk_core_tx {MODE} {CLK}
|
|
|
|
set_instance_parameter_value ad_serdes_clk_core_tx {DDR_OR_SDR_N} {1}
|
|
|
|
set_instance_parameter_value ad_serdes_clk_core_tx {SERDES_FACTOR} {8}
|
|
|
|
set_instance_parameter_value ad_serdes_clk_core_tx {CLKIN_FREQUENCY} {500.0}
|
2016-10-24 07:54:40 +00:00
|
|
|
|
2018-08-14 11:14:20 +00:00
|
|
|
add_hdl_instance ad_serdes_out_core intel_serdes
|
2016-12-06 12:48:34 +00:00
|
|
|
set_instance_parameter_value ad_serdes_out_core {MODE} {OUT}
|
|
|
|
set_instance_parameter_value ad_serdes_out_core {DDR_OR_SDR_N} {1}
|
|
|
|
set_instance_parameter_value ad_serdes_out_core {SERDES_FACTOR} {8}
|
|
|
|
set_instance_parameter_value ad_serdes_out_core {CLKIN_FREQUENCY} {500.0}
|
2016-10-24 07:54:40 +00:00
|
|
|
|
2016-12-06 12:48:34 +00:00
|
|
|
proc axi_ad9122_fileset { entityName } {
|
2016-10-24 07:54:40 +00:00
|
|
|
|
2016-12-06 12:48:34 +00:00
|
|
|
ad_ip_modfile ad_serdes_out.v ad_serdes_out.v ad_serdes_out_core
|
|
|
|
ad_ip_modfile ad_serdes_clk.v ad_serdes_clk.v ad_serdes_clk_core_tx
|
2016-10-24 07:54:40 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|