Receive random access memory data
SoC Blockset / Hardware Logic Testbench
The AXI4 Master Sink block receives random access memory data from advanced extensible interface AXI4-based data interface blocks. You can use this block as a test sink block for simulating AXI4-based data applications.
The block accepts data along with a control bus and outputs a control bus.
rdData— Input data
Input data from the data source. This value must be a scalar or vector.
Before reading the data, set the required data type. To set the data type, see the Data type parameter.
rdCtrlIn— Input control bus
Input control bus from the data producer, specified as a bus. This control bus comprises these control signals:
rd_aready — Indicates the data source accepted the read request
rd_dvalid — Indicates the data returned for the read request is valid
rdCtrlOut— Output control bus
Output control bus to the data source indicating the block is ready to accept data, returned as a scalar. This control bus comprises these control signals:
rd_addr — Starting address for the read transaction that is sampled at the first cycle of the transaction
rd_len — Number of data values you want to read, sampled at the first cycle of the transaction
rd_avalid — Control signal that specifies whether the read request is valid
rd_dready — Control signal that indicates when the block can read data
Data type— Input data type
Select the data type format for the input AXI data.
Click the button to display the Data Type Assistant, which helps you to set the data type for the rdData input port. For details, see Specify Data Types Using Data Type Assistant (Simulink).
Dimensions— Input data dimensions
10(default) | positive integer | array
Specify the dimensions of the input data as a positive scalar or an array. This value defines the length of the transaction.
1 specifies a scalar sample.
[10 1] specifies a vector of ten scalars.
Initial address— Start address
0(default) | nonnegative scalar integer
Specify the address from which the block reads the data. This value must be a nonnegative integer.
Initial delay— Initial delay
0(default) | nonnegative scalar
Specify the initial time after which the read operation starts.
Sample time— Time interval of sampling
1(default) | scalar
Specify a discrete time at which the block accepts data. This value must be a scalar.
Save data in workspace— Save to workspace
Select this parameter to save the input data to the MATLAB® workspace.
Variable name— Workspace variable name
simOut(default) | any MATLAB-supported variable name
Specify the workspace variable to which input data is saved. This parameter can be any MATLAB-supported variable name.
To enable this parameter, select the Save data in workspace parameter.