Access target FPGA or SoC device from MATLAB
This object represents a connection from MATLAB® to the target FPGA or SoC device. To interact with the target device, use this object with the functions listed in Object Functions.
Vendor — Name of vendor
Connect to an Intel or Xilinx pure-FPGA target device from MATLAB.
When connecting to an SoC board, specify a processor connection object as the input.
p — Connection to processor on SoC board
xilinxsoc object |
hFPGA — Connection to FPGA on a Xilinx or Intel board
Connection from MATLAB to the FPGA on the Xilinx or Intel board. You can use this connection to interact with the hardware board and attached devices.
Use the object functions to interact with your FPGA or SoC device.
|Write data to IP core or read data from IP core using AXI4 or AXI4-Lite interface|
|Write data to IP core or read data from IP core using AXI4-Stream interface|
|Maps a DUT port to specified AXI4 interface in HDL IP core|
|Write data to a DUT port from MATLAB|
|Reads output data and returns it with the port data type and dimension|
|Release the hardware resources associated with the fpga object|
Connect to Xilinx Target
fpga object to connect to a
Xilinx target device.
fpga object with
hFPGA = fpga("Xilinx")
hFPGA = fpga with properties: Vendor: "Xilinx" Interfaces: [0x0 fpgaio.interface.InterfaceBase]
Connect to Intel Target
fpga object to connect to an
fpga object with
hFPGA = fpga("Intel")
hFPGA = fpga with properties: Vendor: "Intel" Interfaces: [0x0 fpgaio.interface.InterfaceBase]
Program FPGA on Xilinx SoC Board
Create a hardware processor object to connect to a Xilinx SoC board. You can use the object to program your FPGA on-board the SoC
board at the MATLAB command-line and to create an
object that connects to the FPGA through the processor on the SoC board.
Create a Xilinx processor hardware object and connect to the processor on-board the Xilinx SoC board.
p = xilinxsoc('192.168.1.101', 'root', 'root');
Program the FPGA and set the corresponding device tree from processor on the SoC
board by using the
xilinxsoc object function
programFPGA(p, "myBitstream.bit", "myDeviceTree.dtb");
For more information on device trees, see Generate Device Tree for IP Core.
Connect to the FPGA on-board the SoC board by using the
function. Use the processor hardware object
p as an input to the
f = fpga(p);