2015-06-26 09:04:19 +00:00
|
|
|
# ip
|
|
|
|
|
|
|
|
source ../scripts/adi_env.tcl
|
|
|
|
source $ad_hdl_dir/library/scripts/adi_ip.tcl
|
|
|
|
|
|
|
|
adi_ip_create axi_ad9361
|
|
|
|
adi_ip_files axi_ad9361 [list \
|
|
|
|
"$ad_hdl_dir/library/common/ad_rst.v" \
|
2017-07-24 20:28:40 +00:00
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_data_clk.v" \
|
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_data_in.v" \
|
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_data_out.v" \
|
2018-03-27 09:31:50 +00:00
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_dcfilter.v" \
|
2016-08-05 15:00:34 +00:00
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_mul.v" \
|
2015-06-26 09:04:19 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_pnmon.v" \
|
2018-02-07 12:42:35 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_dds_cordic_pipe.v" \
|
|
|
|
"$ad_hdl_dir/library/common/ad_dds_sine_cordic.v" \
|
2015-06-26 09:04:19 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_dds_sine.v" \
|
2018-06-06 09:24:47 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_dds_2.v" \
|
2015-06-26 09:04:19 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_dds_1.v" \
|
|
|
|
"$ad_hdl_dir/library/common/ad_dds.v" \
|
|
|
|
"$ad_hdl_dir/library/common/ad_datafmt.v" \
|
|
|
|
"$ad_hdl_dir/library/common/ad_iqcor.v" \
|
|
|
|
"$ad_hdl_dir/library/common/ad_addsub.v" \
|
|
|
|
"$ad_hdl_dir/library/common/ad_tdd_control.v" \
|
2017-07-28 06:57:13 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_pps_receiver.v" \
|
2015-06-26 09:04:19 +00:00
|
|
|
"$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_delay_cntrl.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_adc_common.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_adc_channel.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_dac_common.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_dac_channel.v" \
|
|
|
|
"$ad_hdl_dir/library/common/up_tdd_cntrl.v" \
|
2017-03-30 09:18:26 +00:00
|
|
|
"$ad_hdl_dir/library/xilinx/common/up_xfer_cntrl_constr.xdc" \
|
2017-08-04 15:18:45 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_pps_receiver_constr.ttcl" \
|
2017-03-30 09:18:26 +00:00
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_rst_constr.xdc" \
|
|
|
|
"$ad_hdl_dir/library/xilinx/common/up_xfer_status_constr.xdc" \
|
|
|
|
"$ad_hdl_dir/library/xilinx/common/up_clock_mon_constr.xdc" \
|
2015-08-26 15:33:27 +00:00
|
|
|
"axi_ad9361_constr.xdc" \
|
2016-10-11 13:34:58 +00:00
|
|
|
"xilinx/axi_ad9361_lvds_if.v" \
|
|
|
|
"xilinx/axi_ad9361_cmos_if.v" \
|
2015-06-26 09:04:19 +00:00
|
|
|
"axi_ad9361_rx_pnmon.v" \
|
|
|
|
"axi_ad9361_rx_channel.v" \
|
|
|
|
"axi_ad9361_rx.v" \
|
|
|
|
"axi_ad9361_tx_channel.v" \
|
|
|
|
"axi_ad9361_tx.v" \
|
|
|
|
"axi_ad9361_tdd.v" \
|
|
|
|
"axi_ad9361_tdd_if.v" \
|
2019-04-02 08:18:25 +00:00
|
|
|
"axi_ad9361.v" ]
|
2015-06-26 09:04:19 +00:00
|
|
|
|
|
|
|
adi_ip_properties axi_ad9361
|
2017-08-04 15:18:45 +00:00
|
|
|
adi_ip_ttcl axi_ad9361 "$ad_hdl_dir/library/common/ad_pps_receiver_constr.ttcl"
|
2017-03-29 15:36:09 +00:00
|
|
|
|
2019-04-02 08:18:25 +00:00
|
|
|
adi_init_bd_tcl
|
2019-03-14 15:25:36 +00:00
|
|
|
adi_ip_bd axi_ad9361 "bd/bd.tcl"
|
2019-01-11 08:54:16 +00:00
|
|
|
|
2016-03-04 15:38:58 +00:00
|
|
|
set_property driver_value 0 [ipx::get_ports *rx_clk_in* -of_objects [ipx::current_core]]
|
|
|
|
set_property driver_value 0 [ipx::get_ports *rx_frame_in* -of_objects [ipx::current_core]]
|
|
|
|
set_property driver_value 0 [ipx::get_ports *rx_data_in* -of_objects [ipx::current_core]]
|
2015-06-26 09:04:19 +00:00
|
|
|
set_property driver_value 0 [ipx::get_ports *dac_sync_in* -of_objects [ipx::current_core]]
|
|
|
|
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]
|
|
|
|
set_property driver_value 0 [ipx::get_ports *dunf* -of_objects [ipx::current_core]]
|
|
|
|
set_property driver_value 0 [ipx::get_ports *gpio_in* -of_objects [ipx::current_core]]
|
2017-07-31 13:14:45 +00:00
|
|
|
set_property driver_value 0 [ipx::get_ports *gps_pps* -of_objects [ipx::current_core]]
|
2015-06-26 09:04:19 +00:00
|
|
|
|
2016-03-04 15:38:58 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.CMOS_OR_LVDS_N')) == 0} \
|
|
|
|
[ipx::get_ports rx_clk_in_p -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports rx_clk_in_n -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports rx_frame_in_p -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports rx_frame_in_n -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports rx_data_in_p -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports rx_data_in_n -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_clk_out_p -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_clk_out_n -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_frame_out_p -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_frame_out_n -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_data_out_p -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_data_out_n -of_objects [ipx::current_core]]
|
|
|
|
|
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.CMOS_OR_LVDS_N')) == 1} \
|
|
|
|
[ipx::get_ports rx_clk_in -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports rx_frame_in -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports rx_data_in -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_clk_out -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_frame_out -of_objects [ipx::current_core]] \
|
|
|
|
[ipx::get_ports tx_data_out -of_objects [ipx::current_core]]
|
|
|
|
|
2015-08-26 18:11:43 +00:00
|
|
|
ipx::add_bus_parameter ASSOCIATED_BUSIF [ipx::get_bus_interfaces s_axi_aclk \
|
|
|
|
-of_objects [ipx::current_core]]
|
|
|
|
set_property value s_axi [ipx::get_bus_parameters ASSOCIATED_BUSIF \
|
|
|
|
-of_objects [ipx::get_bus_interfaces s_axi_aclk \
|
|
|
|
-of_objects [ipx::current_core]]]
|
|
|
|
|
2018-02-15 08:41:14 +00:00
|
|
|
ipx::infer_bus_interface clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
|
|
|
ipx::infer_bus_interface l_clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
|
|
|
ipx::infer_bus_interface delay_clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
2018-10-04 13:04:16 +00:00
|
|
|
set reset_intf [ipx::infer_bus_interface rst xilinx.com:signal:reset_rtl:1.0 [ipx::current_core]]
|
|
|
|
set reset_polarity [ipx::add_bus_parameter "POLARITY" $reset_intf]
|
|
|
|
set_property value "ACTIVE_HIGH" $reset_polarity
|
2018-02-15 08:41:14 +00:00
|
|
|
|
|
|
|
ipx::infer_bus_interface gps_pps_irq xilinx.com:signal:interrupt_rtl:1.0 [ipx::current_core]
|
|
|
|
|
2019-01-11 08:54:16 +00:00
|
|
|
adi_add_auto_fpga_spec_params
|
|
|
|
ipx::create_xgui_files [ipx::current_core]
|
|
|
|
|
2015-06-26 09:04:19 +00:00
|
|
|
ipx::save_core [ipx::current_core]
|
|
|
|
|