library: Update scripts/adi_ad_ip.tcl and IPs

Fix library makefiles dep list using generic vendor info reg

Combine adi_int_bd_tcl with adi_auto_fill_bd_tcl procedure.
This change will simplify the process of generating makefiles for each library.
Removing the bd.tcl script from the adi_ip_files list will remove it from the
make dependency list.
main
AndreiGrozav 2019-04-02 11:18:25 +03:00 committed by AndreiGrozav
parent 036dc92b55
commit 7dcaaea04e
24 changed files with 61 additions and 133 deletions

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad5766
adi_ip_files axi_ad5766 [list \
"$ad_hdl_dir/library/common/up_xfer_cntrl.v" \
@ -15,12 +13,11 @@ adi_ip_files axi_ad5766 [list \
"$ad_hdl_dir/library/common/up_axi.v" \
"$ad_hdl_dir/library/common/util_pulse_gen.v" \
"up_ad5766_sequencer.v" \
"axi_ad5766.v" \
"bd/bd.tcl" ]
"axi_ad5766.v" ]
adi_ip_properties axi_ad5766
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad5766 "bd/bd.tcl"
adi_ip_add_core_dependencies { \

View File

@ -3,16 +3,13 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad6676
adi_ip_files axi_ad6676 [list \
"axi_ad6676.v" \
"bd/bd.tcl" ]
"axi_ad6676.v" ]
adi_ip_properties axi_ad6676
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad6676 "bd/bd.tcl"
adi_ip_add_core_dependencies { \

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9122
adi_ip_files axi_ad9122 [list \
"$ad_hdl_dir/library/xilinx/common/ad_mul.v" \
@ -32,12 +30,11 @@ adi_ip_files axi_ad9122 [list \
"axi_ad9122_core.v" \
"axi_ad9122_if.v" \
"axi_ad9122_constr.xdc" \
"axi_ad9122.v" \
"bd/bd.tcl" ]
"axi_ad9122.v" ]
adi_ip_properties axi_ad9122
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9122 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dac_sync_in* -of_objects [ipx::current_core]]

View File

@ -3,16 +3,13 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9144
adi_ip_files axi_ad9144 [list \
"axi_ad9144.v" \
"bd/bd.tcl" ]
"axi_ad9144.v" ]
adi_ip_properties axi_ad9144
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9144 "bd/bd.tcl"
adi_ip_add_core_dependencies { \

View File

@ -3,16 +3,13 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9152
adi_ip_files axi_ad9152 [list \
"axi_ad9152.v" \
"bd/bd.tcl" ]
"axi_ad9152.v" ]
adi_ip_properties axi_ad9152
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9152 "bd/bd.tcl"
adi_ip_add_core_dependencies { \

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9162
adi_ip_files axi_ad9162 [list \
"$ad_hdl_dir/library/xilinx/common/up_xfer_cntrl_constr.xdc" \
@ -27,12 +25,11 @@ adi_ip_files axi_ad9162 [list \
"axi_ad9162_channel.v" \
"axi_ad9162_core.v" \
"axi_ad9162_if.v" \
"axi_ad9162.v" \
"bd/bd.tcl" ]
"axi_ad9162.v" ]
adi_ip_properties axi_ad9162
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9122 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dunf* -of_objects [ipx::current_core]]

View File

@ -3,16 +3,13 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9250
adi_ip_files axi_ad9250 [list \
"axi_ad9250.v" \
"bd/bd.tcl" ]
"axi_ad9250.v" ]
adi_ip_properties axi_ad9250
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9250 "bd/bd.tcl"
adi_ip_add_core_dependencies { \

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9265
adi_ip_files axi_ad9265 [list \
"$ad_hdl_dir/library/common/ad_rst.v" \
@ -27,12 +25,11 @@ adi_ip_files axi_ad9265 [list \
"axi_ad9265_pnmon.v" \
"axi_ad9265_if.v" \
"axi_ad9265_channel.v" \
"axi_ad9265.v" \
"bd/bd.tcl" ]
"axi_ad9265.v" ]
adi_ip_properties axi_ad9265
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9265 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9361
adi_ip_files axi_ad9361 [list \
"$ad_hdl_dir/library/common/ad_rst.v" \
@ -50,13 +48,12 @@ adi_ip_files axi_ad9361 [list \
"axi_ad9361_tx.v" \
"axi_ad9361_tdd.v" \
"axi_ad9361_tdd_if.v" \
"axi_ad9361.v" \
"bd/bd.tcl"]
"axi_ad9361.v" ]
adi_ip_properties axi_ad9361
adi_ip_ttcl axi_ad9361 "$ad_hdl_dir/library/common/ad_pps_receiver_constr.ttcl"
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9361 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *rx_clk_in* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9371
adi_ip_files axi_ad9371 [list \
"$ad_hdl_dir/library/xilinx/common/up_xfer_cntrl_constr.xdc" \
@ -37,12 +35,11 @@ adi_ip_files axi_ad9371 [list \
"axi_ad9371_rx_os.v" \
"axi_ad9371_tx_channel.v" \
"axi_ad9371_tx.v" \
"axi_ad9371.v" \
"bd/bd.tcl" ]
"axi_ad9371.v" ]
adi_ip_properties axi_ad9371
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9371 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9434
adi_ip_files axi_ad9434 [list \
"$ad_hdl_dir/library/xilinx/common/ad_serdes_clk.v" \
@ -28,12 +26,11 @@ adi_ip_files axi_ad9434 [list \
"axi_ad9434_pnmon.v" \
"axi_ad9434_core.v" \
"axi_ad9434_constr.xdc" \
"axi_ad9434.v" \
"bd/bd.tcl" ]
"axi_ad9434.v" ]
adi_ip_properties axi_ad9434
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9122 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9467
adi_ip_files axi_ad9467 [list \
"$ad_hdl_dir/library/common/ad_rst.v" \
@ -26,12 +24,11 @@ adi_ip_files axi_ad9467 [list \
"axi_ad9467_pnmon.v" \
"axi_ad9467_if.v" \
"axi_ad9467_channel.v" \
"axi_ad9467.v" \
"bd/bd.tcl" ]
"axi_ad9467.v" ]
adi_ip_properties axi_ad9467
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9467 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9625
adi_ip_files axi_ad9625 [list \
"$ad_hdl_dir/library/common/ad_rst.v" \
@ -25,12 +23,11 @@ adi_ip_files axi_ad9625 [list \
"axi_ad9625_pnmon.v" \
"axi_ad9625_channel.v" \
"axi_ad9625_if.v" \
"axi_ad9625.v" \
"bd/bd.tcl" ]
"axi_ad9625.v" ]
adi_ip_properties axi_ad9625
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9122 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9671
adi_ip_files axi_ad9671 [list \
"$ad_hdl_dir/library/common/ad_rst.v" \
@ -25,12 +23,11 @@ adi_ip_files axi_ad9671 [list \
"axi_ad9671_pnmon.v" \
"axi_ad9671_channel.v" \
"axi_ad9671_if.v" \
"axi_ad9671.v" \
"bd/bd.tcl" ]
"axi_ad9671.v" ]
adi_ip_properties axi_ad9671
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9371 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *rx_valid* -of_objects [ipx::current_core]]

View File

@ -3,16 +3,13 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9680
adi_ip_files axi_ad9680 [list \
"axi_ad9680.v" \
"bd/bd.tcl" ]
"axi_ad9680.v" ]
adi_ip_properties axi_ad9680
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9680 "bd/bd.tcl"
adi_ip_add_core_dependencies { \

View File

@ -4,8 +4,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9684
adi_ip_files axi_ad9684 [list \
"$ad_hdl_dir/library/common/ad_rst.v" \
@ -29,12 +27,11 @@ adi_ip_files axi_ad9684 [list \
"axi_ad9684_if.v" \
"axi_ad9684_channel.v" \
"axi_ad9684_constr.xdc" \
"axi_ad9684.v" \
"bd/bd.tcl" ]
"axi_ad9684.v" ]
adi_ip_properties axi_ad9684
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9684 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9739a
adi_ip_files axi_ad9739a [list \
"$ad_hdl_dir/library/xilinx/common/ad_mul.v" \
@ -29,12 +27,11 @@ adi_ip_files axi_ad9739a [list \
"axi_ad9739a_channel.v" \
"axi_ad9739a_core.v" \
"axi_ad9739a_if.v" \
"axi_ad9739a.v" \
"bd/bd.tcl" ]
"axi_ad9739a.v" ]
adi_ip_properties axi_ad9739a
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9739a "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dunf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_ad9963
adi_ip_files axi_ad9963 [list \
"$ad_hdl_dir/library/xilinx/common/up_xfer_cntrl_constr.xdc" \
@ -40,12 +38,11 @@ adi_ip_files axi_ad9963 [list \
"axi_ad9963_rx.v" \
"axi_ad9963_tx_channel.v" \
"axi_ad9963_tx.v" \
"axi_ad9963.v" \
"bd/bd.tcl" ]
"axi_ad9963.v" ]
adi_ip_properties axi_ad9963
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9963 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dac_sync_in* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_adrv9009
adi_ip_files axi_adrv9009 [list \
"$ad_hdl_dir/library/xilinx/common/up_xfer_cntrl_constr.xdc" \
@ -37,12 +35,11 @@ adi_ip_files axi_adrv9009 [list \
"axi_adrv9009_rx_os.v" \
"axi_adrv9009_tx_channel.v" \
"axi_adrv9009_tx.v" \
"axi_adrv9009.v" \
"bd/bd.tcl" ]
"axi_adrv9009.v" ]
adi_ip_properties axi_adrv9009
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_adrv9009 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *dovf* -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_fmcadc5_sync
adi_ip_files axi_fmcadc5_sync [list \
"$ad_hdl_dir/library/xilinx/common/ad_data_out.v" \
@ -12,12 +10,11 @@ adi_ip_files axi_fmcadc5_sync [list \
"$ad_hdl_dir/library/common/up_axi.v" \
"axi_fmcadc5_sync_constr.xdc" \
"axi_fmcadc5_sync_calcor.v" \
"axi_fmcadc5_sync.v" \
"bd/bd.tcl" ]
"axi_fmcadc5_sync.v" ]
adi_ip_properties axi_fmcadc5_sync
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_fmcadc5_sync "bd/bd.tcl"
ipx::infer_bus_interface rx_clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]

View File

@ -3,8 +3,6 @@
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_hdmi_tx
adi_ip_files axi_hdmi_tx [list \
"$ad_hdl_dir/library/common/ad_mem.v" \
@ -26,12 +24,11 @@ adi_ip_files axi_hdmi_tx [list \
"axi_hdmi_tx_vdma.v" \
"axi_hdmi_tx_es.v" \
"axi_hdmi_tx_core.v" \
"axi_hdmi_tx.v" \
"bd/bd.tcl" ]
"axi_hdmi_tx.v" ]
adi_ip_properties axi_hdmi_tx
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_ad9122 "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports *hsync* -of_objects [ipx::current_core]]

View File

@ -318,28 +318,16 @@ proc adi_ip_properties {ip_name} {
# - axi_clkgen
proc adi_init_bd_tcl {} {
if { [file exists bd] } {
file delete -force bd
}
file mkdir bd
set bd_tcl [open "bd/bd.tcl" w]
puts $bd_tcl ""
close $bd_tcl
set local_mk [open "temporary_case_dependencies.mk" w]
seek $local_mk 0 start
puts $local_mk "CLEAN_TARGET += bd"
puts $local_mk "CLEAN_TARGET += temporary_case_dependencies.mk"
close $local_mk
}
proc adi_auto_fill_bd_tcl {} {
global auto_set_param_list
global auto_set_param_list_overwritable
set cc [ipx::current_core]
set bd_tcl [open "bd/bd.tcl" r+ ]
if { [file exists bd] } {
file delete -force bd
}
file mkdir bd
set bd_tcl [open "bd/bd.tcl" w]
puts $bd_tcl "# SCRIPT AUTO-GENERATED AT BUILD, DO NOT MODIFY!"
puts $bd_tcl "proc init {cellpath otherInfo} {"
@ -406,6 +394,15 @@ proc adi_auto_fill_bd_tcl {} {
puts $bd_tcl "}"
puts $bd_tcl ""
close $bd_tcl
set proj_fileset [get_filesets sources_1]
add_files -norecurse -scan_for_includes -fileset $proj_fileset "bd/bd.tcl"
set local_mk [open "temporary_case_dependencies.mk" w]
seek $local_mk 0 start
puts $local_mk "CLEAN_TARGET += bd"
puts $local_mk "CLEAN_TARGET += temporary_case_dependencies.mk"
close $local_mk
}
proc adi_add_auto_fpga_spec_params {} {

View File

@ -3,8 +3,6 @@
source ../../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create axi_adxcvr
adi_ip_files axi_adxcvr [list \
"$ad_hdl_dir/library/common/up_axi.v" \
@ -14,13 +12,12 @@ adi_ip_files axi_adxcvr [list \
"axi_adxcvr_up.v" \
"axi_adxcvr_mdrp.v" \
"axi_adxcvr_mstatus.v" \
"axi_adxcvr.v" \
"bd/bd.tcl" ]
"axi_adxcvr.v" ]
adi_ip_properties axi_adxcvr
adi_ip_infer_mm_interfaces axi_adxcvr
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd axi_adxcvr "bd/bd.tcl"
set_property driver_value 0 [ipx::get_ports -filter "direction==in" -of_objects [ipx::current_core]]

View File

@ -3,8 +3,6 @@
source ../../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_init_bd_tcl
adi_ip_create util_adxcvr
adi_ip_files util_adxcvr [list \
"$ad_hdl_dir/library/scripts/common_bd.tcl" \
@ -12,12 +10,11 @@ adi_ip_files util_adxcvr [list \
"util_adxcvr_constr.xdc" \
"util_adxcvr_xcm.v" \
"util_adxcvr_xch.v" \
"util_adxcvr.v" \
"bd/bd.tcl"]
"util_adxcvr.v" ]
adi_ip_properties_lite util_adxcvr
adi_auto_fill_bd_tcl
adi_init_bd_tcl
adi_ip_bd util_adxcvr "bd/bd.tcl"
ipx::remove_all_bus_interface [ipx::current_core]