Receive continuous stream data
SoC Blockset / Hardware Logic Testbench
The Stream Data Sink block receives continuous stream data from advanced extensible interface AXI4-based stream data interface blocks. You can use this block as a test sink block for simulating AXI4-based stream data applications.
The block accepts stream data along with a control bus and outputs a control bus.
rdData— Input stream data
Input stream data from the data source. This value must be a scalar or vector.
rdCtrlIn— Input control bus
Input control bus from the data source. This control bus comprises the following control signals:
valid — Indicates the input stream data on the rdData input port is valid
tlast — Indicates the end of the data transaction
rdCtrlOut— Output control bus
Output control bus to the data source, indicating that the block is ready to accept stream data. This control bus comprises a ready signal.
Save data in workspace— Save data in workspace
Select this parameter to save the input stream data to the MATLAB® workspace.
Variable name— Workspace variable name
simOut(default) | any MATLAB-supported variable name
Specify the workspace variable to which input stream data is saved. This parameter can be any MATLAB-supported variable name.
To enable this parameter, select the Save data in workspace parameter.
To automatically generate HDL code for your design, and execute on an SoC device, use the SoC Builder tool. See Generate SoC Design.