This example shows how to map the DUT ports in the generated HDL IP
core to AXI4-Stream interfaces.
Create an object for the target device.
hFPGA =
fpga with properties:
Vendor: "Xilinx"
Interfaces: [0x0 fpgaio.interface.InterfaceBase]
Add the AXI4-Stream interface to the hFPGA
object by using the
addAXI4StreamInterface
function.
Specify the DUT port as an hdlcoder.DUTPort
object array and then
map the port to the AXI4-Stream interface.
Map the DUT port objects to the AXI4-Stream interface. This information is saved as
a property on the hFPGA
object.
ans =
AXI4Stream with properties:
InterfaceID: "AXI4-Stream"
WriteEnable: 1
ReadEnable: 1
WriteFrameLength: 1024
ReadFrameLength: 1024
WriteDriver: [1×1 fpgaio.driver.AXIStreamIIOWrite]
ReadDriver: [1×1 fpgaio.driver.AXIStreamIIORead]
InputPorts: "x_in_data"
OutputPorts: "y_out_data"