axi_spi_engine: Define ports dependencies for up_* interface

The up_* interface ports are active just if the MM_IF_TYPE is UP_FIFO.
main
Istvan Csomortani 2017-01-03 18:11:26 +02:00
parent ccc4aac505
commit 045cb96744
1 changed files with 24 additions and 0 deletions

View File

@ -62,4 +62,28 @@ foreach port {"up_clk" "up_rstn" "up_wreq" "up_waddr" "up_wdata" "up_rreq" "up_r
adi_set_bus_dependency "spi_engine_offload_ctrl0" "spi_engine_offload_ctrl0" \
"(spirit:decode(id('MODELPARAM_VALUE.NUM_OFFLOAD')) > 0)"
adi_set_bus_dependency "s_axi" "s_axi" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 0)"
adi_set_ports_dependency "up_clk" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_rstn" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_wreq" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_waddr" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_wdata" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_rreq" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_raddr" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_wack" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_rdata" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
adi_set_ports_dependency "up_rack" \
"(spirit:decode(id('MODELPARAM_VALUE.MM_IF_TYPE')) = 1)"
ipx::save_core [ipx::current_core]