Error when using multiple AXI stream interfaces: The specified key is not present in this container
6 views (last 30 days)
Show older comments
I get an error when trying to set target interface with the following settings:

Failed The specified key is not present in this container.
Error using indexing
The specified key is not present in this container.
Error in hdlturnkey.data.ChannelList/getChannelFromPortName
Error in hdlturnkey.interface.AXI4Stream/validateVectorPortSampleMode
Error in hdlturnkey.interface.AXI4Stream/validateFullTable
Error in hdlturnkey.table.TargetInterfaceTable/validateTable
Error in hdlturnkey.table.TargetInterfaceTable/validateInterfaceTable
Error in downstream.DownstreamIntegrationDriver/validateTargetInterface
Error in setTargetInterface
Error in Simulink.ModelAdvisor/executeCheckCallbackFct
Error in Simulink.ModelAdvisor/run
Error in Simulink.ModelAdvisor/runCheck
Error in ModelAdvisor.Node/runTaskAdvisor
I have created minimal reproducible example (axi_error.slx)
The error appears when using multiple AXI stream interfaces.
How can I avoid this error?
1 Comment
Jason Hannon
on 23 Jan 2025
Did you ever gt any resolution on this? I'm having the same issue. I had it working previously with 2 AXIS interfaces and now it no longer does and gives me the same error you encountered.
Answers (1)
Sreeram
on 28 Jan 2025
Hi Alex,
It looks like the behavior may be related to a known issue with mapping vector ports to AXI4-Stream interfaces.
To work around this limitation, consider manually managing the packing and unpacking of data at the DUT boundary. This can be done using Simulink blocks such as 'Bit Concat' to pack vector data and 'Bit Slice' to unpack it.
More details on the issue may be accessed through the following Bug Reports page:
I hope this helps!
1 Comment
Martin Ryba
on 22 Sep 2025
Thanks I just hit this problem also dealing with data that is 2 samples per clock on input and I'm filtering and decimating so the output is just one per clock.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!