adi_ip: Use 'associate_bus_interface' command to setup the clock and reset for s_axi
parent
9441f00f5f
commit
e092149cbc
|
@ -15,8 +15,6 @@ adi_ip_files axi_clkgen [list \
|
||||||
adi_ip_properties axi_clkgen
|
adi_ip_properties axi_clkgen
|
||||||
adi_ip_bd axi_clkgen "bd/bd.tcl"
|
adi_ip_bd axi_clkgen "bd/bd.tcl"
|
||||||
|
|
||||||
ipx::associate_bus_interfaces -busif s_axi -clock s_axi_aclk [ipx::current_core]
|
|
||||||
|
|
||||||
ipx::infer_bus_interface clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
ipx::infer_bus_interface clk xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
||||||
ipx::infer_bus_interface clk2 xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
ipx::infer_bus_interface clk2 xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
||||||
ipx::infer_bus_interface clk_0 xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
ipx::infer_bus_interface clk_0 xilinx.com:signal:clock_rtl:1.0 [ipx::current_core]
|
||||||
|
|
|
@ -96,9 +96,6 @@ adi_set_ports_dependency "dma_req_rx_aclk" \
|
||||||
adi_set_ports_dependency "dma_req_rx_rstn" \
|
adi_set_ports_dependency "dma_req_rx_rstn" \
|
||||||
"(spirit:decode(id('MODELPARAM_VALUE.DMA_TYPE')) = 1)"
|
"(spirit:decode(id('MODELPARAM_VALUE.DMA_TYPE')) = 1)"
|
||||||
|
|
||||||
ipx::associate_bus_interfaces -clock s_axi_aclk -reset s_axi_aresetn [ipx::current_core]
|
|
||||||
ipx::associate_bus_interfaces -clock s_axi_aclk -reset s_axis_aresetn -clear [ipx::current_core]
|
|
||||||
|
|
||||||
# Tie-off optional inputs to 0
|
# Tie-off optional inputs to 0
|
||||||
set_property driver_value 0 [ipx::get_ports -filter "direction==in && enablement_dependency!={}" -of_objects [ipx::current_core]]
|
set_property driver_value 0 [ipx::get_ports -filter "direction==in && enablement_dependency!={}" -of_objects [ipx::current_core]]
|
||||||
|
|
||||||
|
|
|
@ -48,5 +48,4 @@ adi_set_ports_dependency "dma_req_rstn" \
|
||||||
"(spirit:decode(id('MODELPARAM_VALUE.C_DMA_TYPE')) = 1)"
|
"(spirit:decode(id('MODELPARAM_VALUE.C_DMA_TYPE')) = 1)"
|
||||||
|
|
||||||
ipx::save_core [ipx::current_core]
|
ipx::save_core [ipx::current_core]
|
||||||
ipx::associate_bus_interfaces -clock s_axi_aclk -reset s_axi_aresetn [ipx::current_core]
|
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,5 @@ adi_set_ports_dependency "dma_req_aclk" \
|
||||||
adi_set_ports_dependency "dma_req_rstn" \
|
adi_set_ports_dependency "dma_req_rstn" \
|
||||||
"(spirit:decode(id('MODELPARAM_VALUE.DMA_TYPE')) = 1)"
|
"(spirit:decode(id('MODELPARAM_VALUE.DMA_TYPE')) = 1)"
|
||||||
|
|
||||||
ipx::associate_bus_interfaces -clock s_axi_aclk -reset s_axis_aresetn -clear [ipx::current_core]
|
|
||||||
ipx::associate_bus_interfaces -clock s_axi_aclk -reset s_axi_aresetn [ipx::current_core]
|
|
||||||
ipx::save_core [ipx::current_core]
|
ipx::save_core [ipx::current_core]
|
||||||
|
|
||||||
|
|
|
@ -300,11 +300,7 @@ proc adi_ip_properties {ip_name} {
|
||||||
ipx::add_address_block {axi_lite} [ipx::get_memory_maps s_axi -of_objects [ipx::current_core]]
|
ipx::add_address_block {axi_lite} [ipx::get_memory_maps s_axi -of_objects [ipx::current_core]]
|
||||||
set_property range $range [ipx::get_address_blocks axi_lite \
|
set_property range $range [ipx::get_address_blocks axi_lite \
|
||||||
-of_objects [ipx::get_memory_maps s_axi -of_objects [ipx::current_core]]]
|
-of_objects [ipx::get_memory_maps s_axi -of_objects [ipx::current_core]]]
|
||||||
ipx::add_bus_parameter ASSOCIATED_BUSIF [ipx::get_bus_interfaces s_axi_aclk \
|
ipx::associate_bus_interfaces -clock s_axi_aclk -reset s_axi_aresetn [ipx::current_core]
|
||||||
-of_objects [ipx::current_core]]
|
|
||||||
set_property value s_axi [ipx::get_bus_parameters ASSOCIATED_BUSIF \
|
|
||||||
-of_objects [ipx::get_bus_interfaces s_axi_aclk \
|
|
||||||
-of_objects [ipx::current_core]]]
|
|
||||||
ipx::save_core
|
ipx::save_core
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue