AXI4-Stream to Software
R2026bLibraries:
SoC Blockset for AMD /
SoC System Simulation /
Memory
HDL Coder /
SoC System Simulation /
Memory
Description
The AXI4-Stream to Software block models a connection between hardware logic and a software task through external memory. The writer writes to the channel using a MathWorks® simplified AXI stream protocol and the reader (processor) gets data from a DMA driver interface. The block models the datapath and software stack of that connection, including a FIFO, DMA engine, interconnect and external memory, interrupts, kernel buffer management of the DMA driver, and data transfers to the software task.
This block is equivalent to a Memory Channel block with the
Channel type parameter set to AXI4-Stream to Software via
DMA connected to a Memory Controller block.

Since the memory controller is implicit to the design - you can instantiate several memory blocks that connect to the same memory unit via a memory controller. Valid blocks are:
The maximum number of manager interfaces in a model is 16.
For more information about the MathWorks simplified AXI stream protocol, see AXI4-Stream Interface.
This image is a conceptual view of this block, streaming data from an FPGA algorithm to a processor algorithm.

Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"socmemlib/AXI4-Stream to Software"
"socmemlib/AXI4-Stream to Software"
Example: add_block("socmemlib/AXI4-Stream to Software","myModel/myBlock",MakeNameUnique="on")

