Main Content

AXI4-Interface Read

Read data from IP core on AMD SoC Device

Add-On Required: This feature requires the Embedded Coder Support Package for AMD SoC Devices add-on.

  • AXI4-Interface Read block

Libraries:
Embedded Coder Support Package for AMD SoC Devices

Description

This block reads a data vector from a contiguous group of memory-mapped registers on an HDL Coder™ generated IP core. The AXI4-Interface Read block, using the central interconnect of the processing system, provides simple memory-mapped communication with the IP core on the FPGA. This block is best suited for low-throughput communication, such as inspecting status, state, or control registers.

Examples

Ports

Output

expand all

The N-by-1 vector read from memory-mapped registers on the IP core, starting from the Register offset.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

To set the block parameter value programmatically, use the set_param function.

To get the block parameter value programmatically, use the get_param function.

Enter the path and name of the IP core.

Note

If you use HDL Coder to generate the IP core, HDL Coder maps the IP core to /dev/mwipcore.

Programmatic Use

Block Parameter: DeviceName

Enter the offset of the register from the base address of the IP core. The block reads data from this register. Use the hex2dec function when you specify the address offset using a hexadecimal number character vector.

Note

If you use HDL Coder to generate the IP core, you can get the value of the address offset from the Register Address Mapping section of the Custom IP Core Report (HDL Coder). For more information, see Register Address Mapping (HDL Coder).

Programmatic Use

Block Parameter: RegisterOffset

Enter the size of the data vector to be read from the IP core device.

Programmatic Use

Block Parameter: DataLength

Select the data type used by the IP core.

Programmatic Use

Block Parameter: DataType

The signal data output by the AXI4-Interface Read block polls directly from the IP core using the AXI4-Lite protocol. The Sample time parameter value or the base rate of the subsystem specifies the polling rate of the registers.

Programmatic Use

Block Parameter: SampleTime

Version History

Introduced in R2013a