Intel® Quartus® Prime Pro Edition User Guide: Debug Tools

ID 683819
Date 12/12/2022

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

8.7.1. Supported MATLAB* API Commands

You can perform the work from the MATLAB* environment, and read and write to hosts and agents through the System Console. The supported MATLAB* API commands do not require launching the System Console GUI. The supported commands are:

  • SystemConsole.refreshMasters;
  • M = SystemConsole.openMaster(1);
  • M.write (type, byte address, data);
  • (type, byte address, number of words);
  • M.close

MATLAB* API Script Example

SystemConsole.refreshMasters; %Investigate available targets
M = SystemConsole.openMaster(1); %Creates connection with FPGA target
%%%%%%%% User Application %%%%%%%%%%%%
M.write('uint32',write_address,data); %Send data to FPGA target
data ='uint32',read_address,size); %Read data from FPGA target
M.close; %Terminates connection to FPGA target