This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

AXI4 Master Sink

Receive random access memory data

  • Library:
  • SoC Blockset / Hardware Logic Testbench

Description

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.

Ports

Input

expand all

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.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | fixed point

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

Data Types: ReadControlS2MBusObj

Output

expand all

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 Types: ReadControlM2SBusObj

Parameters

expand all

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).

Specify the dimensions of the input data as a positive scalar or an array. This value defines the length of the transaction.

Example: 1 specifies a scalar sample.

Example: [10 1] specifies a vector of ten scalars.

Specify the address from which the block reads the data. This value must be a nonnegative integer.

Specify the initial time after which the read operation starts.

Specify a discrete time at which the block accepts data. This value must be a scalar.

Select this parameter to save the input data to the MATLAB® workspace.

Specify the workspace variable to which input data is saved. This parameter can be any MATLAB-supported variable name.

Dependencies

To enable this parameter, select the Save data in workspace parameter.

Introduced in R2019a