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

ID 683552
Date 9/24/2018
Public
Document Table of Contents

2.13.1. Supported MATLAB* API Commands

You can perform the work from the MATLAB* environment, and read and write to masters and slaves through the System Console. The supported MATLAB* API commands spare you from launching the System Console software. The supported commands are:

  • SystemConsole.refreshMasters;
  • M = SystemConsole.openMaster(1);
  • M.write (type, byte address, data);
  • M.read (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 = M.read('uint32',read_address,size); %Read data from FPGA target
....
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
M.close; %Terminates connection to FPGA target