AXI4-Stream IIO Write (HOST)
Write arrays to DDR memory buffer of IP core device from simulation model
SoC Blockset Support Package for Xilinx Devices / Host I/O
The AXI4-Stream IIO Write (HOST) block writes data to the direct-memory-access (DMA) buffer of the specified AXI4-Stream IP core device on a connected Xilinx® SoC device from a running Simulink® model. This block enables low-latency high-throughput data transmission between your simulation model and the IP core on the SoC device.
The AXI4-Stream IIO Write (HOST) block sends a data on the host computer to the DDR memory buffer on the SoC device. This block uses the Industrial I/O (IIO) library driver to create a network server daemon on the SoC device and client host computer to pass the buffer data copies to the host computer running the simulated portion of the model. This diagram shows the connection between the HDL Coder™ generated IP core, DDR memory buffer, and communication bridge to the running Simulink model.
data — Data frame to DMA buffer
This port takes an N-by-1 vector and writes to the memory in the DDR via a DMA buffer transfer.
status — Status of stream write to IP core in SoC device
This port outputs a validation flag indicating a successful write of the data to
the IP core in the SoC device. A value of
1 indicates a successful
To enable this port, set the Data timeout (seconds) parameter to a finite value.
Device name — Name of IP core device
mwipcore0:mm2s0 (default) | IP core name and channel
Enter the name and channel of the IP core on the FPGA as a colon-separated list.
If you are using HDL Coder to generate the IP core, HDL Coder maps the IP core to
mwipcore0 and uses channel
Remote IP address — Network address of SoC device
192.168.1.101 (default) | valid URI string
Enter the network address of the connected SoC device.
Data timeout (seconds) — Timeout for DMA stream write
Inf (default) | positive scalar
Specify the maximum timeout delay for the DMA stream write.
Enable simulation I/O — Read and write data from board
on (default) | off
When connected to a board, this block writes data directly to the board. When used in a simulation environment, clear this parameter to enable simulation without error due to lack of IIO connection. When cleared, the data displayed in the data output port does not reflect actual data.
To get a list of available IIO device names and channels, open a terminal to the Xilinx Zynq® device, and execute this command:
iio_info. This image shows the sample output from the
Introduced in R2020b
AXI4-Stream IIO Read (HOST) | Memory IIO Write | Memory IIO Read | AXI4-Register IIO Write (HOST) | AXI4-Register IIO Read (HOST)