spi_engine: Add dependency for unused interfaces

main
Istvan Csomortani 2016-09-21 12:29:00 +03:00
parent 225d133a68
commit fb6e0d3efb
2 changed files with 5 additions and 0 deletions

View File

@ -59,5 +59,7 @@ adi_add_bus_clock "s_axi_aclk" "spi_engine_offload_ctrl0:s_axi" "s_axi_aresetn"
foreach port {"up_clk" "up_rstn" "up_wreq" "up_waddr" "up_wdata" "up_rreq" "up_raddr"} { foreach port {"up_clk" "up_rstn" "up_wreq" "up_waddr" "up_wdata" "up_rreq" "up_raddr"} {
set_property DRIVER_VALUE "0" [ipx::get_ports $port] set_property DRIVER_VALUE "0" [ipx::get_ports $port]
} }
adi_set_bus_dependency "spi_engine_offload_ctrl0" "spi_engine_offload_ctrl0" \
"(spirit:decode(id('MODELPARAM_VALUE.NUM_OFFLOAD')) > 0)"
ipx::save_core [ipx::current_core] ipx::save_core [ipx::current_core]

View File

@ -51,4 +51,7 @@ foreach prefix [list "s0" "s1"] {
adi_add_bus_clock "clk" [format "%s_ctrl" $prefix] "resetn" adi_add_bus_clock "clk" [format "%s_ctrl" $prefix] "resetn"
} }
adi_set_bus_dependency "s1_ctrl" "s1_ctrl" \
"(spirit:decode(id('MODELPARAM_VALUE.NUM_OF_SDI')) > 1)"
ipx::save_core [ipx::current_core] ipx::save_core [ipx::current_core]