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 util_cpack
|
|
|
|
adi_ip_files util_cpack [list \
|
|
|
|
"util_cpack_mux.v" \
|
|
|
|
"util_cpack_dsf.v" \
|
2017-05-05 17:40:46 +00:00
|
|
|
"util_cpack.v" ]
|
2015-06-26 09:04:19 +00:00
|
|
|
|
|
|
|
adi_ip_properties_lite util_cpack
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 1} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_ports *_1* -of_objects [ipx::current_core]]
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 2} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_ports *_2* -of_objects [ipx::current_core]]
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 3} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_ports *_3* -of_objects [ipx::current_core]]
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 4} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_ports *_4* -of_objects [ipx::current_core]]
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 5} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_ports *_5* -of_objects [ipx::current_core]]
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 6} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_ports *_6* -of_objects [ipx::current_core]]
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 7} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_ports *_7* -of_objects [ipx::current_core]]
|
|
|
|
|
2015-08-26 18:12:14 +00:00
|
|
|
ipx::remove_all_bus_interface [ipx::current_core]
|
2018-02-15 08:41:14 +00:00
|
|
|
|
|
|
|
ipx::infer_bus_interface adc_clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
|
|
|
ipx::infer_bus_interface adc_rst xilinx.com:signal:reset_rtl:1.0 [ipx::current_core]
|
|
|
|
|
2015-06-26 09:04:19 +00:00
|
|
|
ipx::save_core [ipx::current_core]
|
|
|
|
|
|
|
|
|