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_ccat
|
|
|
|
adi_ip_files util_ccat [list \
|
|
|
|
"util_ccat.v" \
|
|
|
|
"util_ccat_constr.xdc" ]
|
|
|
|
|
|
|
|
adi_ip_properties_lite util_ccat
|
|
|
|
adi_ip_constraints util_ccat [list \
|
|
|
|
"util_ccat_constr.xdc" ]
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 1}} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_port data_1 [ipx::current_core]] \
|
|
|
|
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 2}} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_port data_2 [ipx::current_core]] \
|
|
|
|
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 3}} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_port data_3 [ipx::current_core]] \
|
|
|
|
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 4}} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_port data_4 [ipx::current_core]] \
|
|
|
|
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 5}} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_port data_5 [ipx::current_core]] \
|
|
|
|
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 6}} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_port data_6 [ipx::current_core]] \
|
|
|
|
|
|
|
|
|
2015-08-19 11:11:47 +00:00
|
|
|
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 7}} \
|
2015-06-26 09:04:19 +00:00
|
|
|
[ipx::get_port data_7 [ipx::current_core]] \
|
|
|
|
|
|
|
|
|
|
|
|
ipx::save_core [ipx::current_core]
|
|
|
|
|
|
|
|
|