pluto_hdl_adi/library/util_bsplit/util_bsplit_ip.tcl

46 lines
1.5 KiB
Tcl

# ip
source ../scripts/adi_env.tcl
source $ad_hdl_dir/library/scripts/adi_ip.tcl
adi_ip_create util_bsplit
adi_ip_files util_bsplit [list \
"util_bsplit.v" \
"util_bsplit_constr.xdc" ]
adi_ip_properties_lite util_bsplit
adi_ip_constraints util_bsplit [list \
"util_bsplit_constr.xdc" ]
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 1}} \
[ipx::get_port split_data_1 [ipx::current_core]] \
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 2}} \
[ipx::get_port split_data_2 [ipx::current_core]] \
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 3}} \
[ipx::get_port split_data_3 [ipx::current_core]] \
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 4}} \
[ipx::get_port split_data_4 [ipx::current_core]] \
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 5}} \
[ipx::get_port split_data_5 [ipx::current_core]] \
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 6}} \
[ipx::get_port split_data_6 [ipx::current_core]] \
set_property -dict {driver_value {0} enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 7}} \
[ipx::get_port split_data_7 [ipx::current_core]] \
ipx::save_core [ipx::current_core]