UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Voyager
Voyager
9,113 Views
Registered: ‎01-28-2008

Packaging IP with optional interfaces

Hi folks,

  I've created a custom IP that has several AXI-Stream interfaces with an
enablement dependency based on a parameter. It works fine, it builds
without errors, but it throws critical warnings for each interface that's not
enabled. I understand the warnings but perhaps there's something I should be doing differently to avoid them.

  The critical warning for each disabled interface is:

[BD 41-1287] Associated interface by name mX_axis_rx not found for clock port /s_axis_clk


Screenshot-2016-01-08_12.06.43.png
  As you see, the interfaces are enabled by the NUM_FIFOS>X expression, and
they have the associated s_axis_clk clock. So when the interface is disabled,
the s_axis_clk throws a critical warning stating there's a clock associated
with a missing interface.

  I guess the clock association should be done after the interface has been
disabled, but I can't see where in the Packager GUI this can be done. Should
it be done in the tcl code? Perhaps in validate_PARAM_VALUE.NUM_FIFOS procedure? Something like:

proc validate_PARAM_VALUE.NUM_FIFOS { PARAM_VALUE.NUM_FIFOS } {
    # Procedure called to validate NUM_FIFOS
  if {PARAM_VALUE.NUM_FIFOS>3}{
    ipx::associate_bus_interfaces -busif m3_axis_rx -clock s_axis_clk -clear [ipx::current_core]
  } else {
    ipx::associate_bus_interfaces -busif m3_axis_rx -clock s_axis_clk [ipx::current_core]
  }
  # <...other interfaces...>
    return true
}


  Unfortunately, while customizing the IP in IPI, this throws a Tcl error
"::ipgui_ps_sys_ii_dma_mc_0_2_1::validate_PARAM_VALUE.NUM_FIFOS' method. extra
characters after close-brace"

Screenshot-2016-01-08_12.42.26.png
Any ideas?
Thanks in advance,
-Pat

https://tuxengineering.com
0 Kudos