Ethernet MATLAB as AXI Master

Integrate and configure MATLAB® as AXI Master over Ethernet using User Datagram Protocol (UDP).

When using Ethernet MATLAB as AXI Master, you must first include these two intellectual property blocks (IPs) in your project.

Ethernet MAC Hub

Ethernet MAC Hub is an HDL IP provided by MathWorks®. It connects the Ethernet physical layer to the UDP MATLAB as AXIMaster IP.

Interface of Ethernet MAC Hub

Ethernet MAC Hub Parameters

After instantiating the Ethernet MAC Hub is your design, open the block parameters for configuration.

Configure these parameters:

  • Number of AXI Stream Channels – Specify this value as an integer from 1 to 8. The default value is 1.

  • IP Address Byte 1-4 – This parameter sets the four bytes composing the UDP IP address of the device. This address must match the DeviceAddress property value of the aximaster System object.

  • UDP Port for Channel 1-8 – This parameter sets the UDP port number, specified as an integer from 0 to 65,535. This port number must match the Port property value of the aximaster System object.

UDP MATLAB as AXI Master

UDP MATLAB as AXI Master is an HDL IP provided by MathWorks. It connects the Ethernet MAC Hub IP to your application IP.

Interface of UDP MATLAB as AXI Master

UDP MATLAB as AXI Master Parameters

After instantiating the UDP MATLAB as AXI Master IP in your design, open the block parameters for configuration.

Configure these parameters:

  • ID Width – This parameter is the ID width in bits. Its value must match the ID width of the slave.

  • AXI Data Width – This parameter is the data bus width in bits. The IP supports 32 bits or 64 bits.

  • AXI Address Width – This parameter is the address bus width in bits. The IP supports 32 bits or 64 bits.

Once the program is running on your FPGA board, you can create a MATLAB AXI master object using the aximaster System object. To access the slave memory locations on the board, use the readmemory and writememory methods of this System object.

See Also

Related Examples

More About