2015-06-26 09:04:19 +00:00
|
|
|
# ip
|
|
|
|
|
|
|
|
source ../scripts/adi_env.tcl
|
2018-08-14 09:59:39 +00:00
|
|
|
source $ad_hdl_dir/library/scripts/adi_ip_xilinx.tcl
|
2015-06-26 09:04:19 +00:00
|
|
|
|
|
|
|
adi_ip_create util_rfifo
|
|
|
|
adi_ip_files util_rfifo [list \
|
2016-05-16 14:57:02 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_mem.v" \
|
2017-04-03 15:12:28 +00:00
|
|
|
"util_rfifo_constr.xdc" \
|
2015-06-26 09:04:19 +00:00
|
|
|
"util_rfifo.v" ]
|
|
|
|
|
|
|
|
adi_ip_properties_lite util_rfifo
|
|
|
|
|
|
|
|
ipx::remove_all_bus_interface [ipx::current_core]
|
2016-05-16 14:57:02 +00:00
|
|
|
set_property driver_value 0 [ipx::get_ports *dout_enable* -of_objects [ipx::current_core]]
|
|
|
|
set_property driver_value 0 [ipx::get_ports *dout_valid* -of_objects [ipx::current_core]]
|
2017-07-28 20:18:54 +00:00
|
|
|
set_property driver_value 0 [ipx::get_ports *din_valid_in* -of_objects [ipx::current_core]]
|
2016-05-16 14:57:02 +00:00
|
|
|
set_property driver_value 0 [ipx::get_ports *din_data* -of_objects [ipx::current_core]]
|
|
|
|
set_property driver_value 0 [ipx::get_ports *din_unf* -of_objects [ipx::current_core]]
|
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 1} \
|
2017-04-03 15:12:28 +00:00
|
|
|
[ipx::get_ports *_1* -of_objects [ipx::current_core]]
|
2016-05-16 14:57:02 +00:00
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 2} \
|
|
|
|
[ipx::get_ports *_2* -of_objects [ipx::current_core]]
|
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 3} \
|
|
|
|
[ipx::get_ports *_3* -of_objects [ipx::current_core]]
|
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 4} \
|
|
|
|
[ipx::get_ports *_4* -of_objects [ipx::current_core]]
|
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 5} \
|
|
|
|
[ipx::get_ports *_5* -of_objects [ipx::current_core]]
|
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 6} \
|
|
|
|
[ipx::get_ports *_6* -of_objects [ipx::current_core]]
|
|
|
|
set_property enablement_dependency {spirit:decode(id('MODELPARAM_VALUE.NUM_OF_CHANNELS')) > 7} \
|
|
|
|
[ipx::get_ports *_7* -of_objects [ipx::current_core]]
|
|
|
|
|
2018-02-15 08:41:14 +00:00
|
|
|
ipx::infer_bus_interface din_clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
|
|
|
ipx::infer_bus_interface dout_clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
|
|
|
ipx::infer_bus_interface din_rstn xilinx.com:signal:reset_rtl:1.0 [ipx::current_core]
|
|
|
|
ipx::infer_bus_interface dout_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]
|
|
|
|
|
|
|
|
|