Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

alt_signaltap_run can't work correctly.

Altera_Forum
Honored Contributor II
3,184 Views

why can't i send signaltap II sample data to matlab with the function of alt_signaltap_run? 

it always shows the following errors: 

 

Error: JTAG communication error. Check hardware setup. 

Error: Acquisition stopped unexpectedly. No data are returned. Please check previous error messages. 

??? One or more output arguments not assigned during call to "alt_signaltap_run". 

 

the solution in the internet " clear alt_signaltap_run" can't solve the probleme. 

can anybody help me? thanks
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
1,488 Views

i solved this problem by myself, just because of the XP system, i reinstall XP, all the problems have gone. i got the data in matlab space from the signaltap. it's so cool!:cool:

0 Kudos
Altera_Forum
Honored Contributor II
1,488 Views

Hello, 

 

Perhaps you could help me run alt_signaltap_run.dll from Matlab R2010a 

 

I've followed the steps noted on page 15-62 of Quartus handbook (altera.com/literature/hb/qts/qts_qii5v3_05.pdf

 

However I am not able to run alt_signaltap_run from Matlab. I have tried renaming the extension to .mex, .mexw32 and .mexw64, but it doesn't work either. 

 

In Matlab: 

>> addpath('C:\altera\91\quartus\bin') >> alt_signal_tap.dll ??? Undefined function or variable 'alt_signal_tap'. >> alt_signal_tap ??? Undefined function or variable 'alt_signal_tap'. I am using Quartus v9.1 SP2 (64-bit) on a Windows 7 system. 

I appreciate any guidance you could provide.
0 Kudos
Altera_Forum
Honored Contributor II
1,488 Views

you used the wrong function, it's not alt_signal_tap, but alt_signaltap_run,please check it again.

0 Kudos
Altera_Forum
Honored Contributor II
1,488 Views

Hi arican, 

You were right about the wrong function name, however today I tried the following, with no success (I am supposed to view the help file for the MEX function by entering alt_signaltap_run in MATLAB without any operators) 

 

>> addpath(genpath('C:\altera\91\quartus\bin')) >> alt_signaltap_run ??? Undefined function or variable 'alt_signaltap_run'. >> alt_signaltap_run.dll ??? Undefined function or variable 'alt_signaltap_run'. >> alt_signaltap_run.mexw32 ??? Undefined function or variable 'alt_signaltap_run'. >> loadlibrary('alt_signaltap_run.dll') ??? Error using ==> loadlibrary>lFullPath at 553 Could not find file alt_signaltap_run.h. Error in ==> loadlibrary at 221 header=lFullPath(header); >> alt_signaltap_run.mexw64 ??? Invalid MEX-file 'C:\altera\91\quartus\bin\alt_signaltap_run.mexw64': C:\altera\91\quartus\bin\alt_signaltap_run.mexw64 n’est pas une application Win32 valide. Thanks again for your time
0 Kudos
Altera_Forum
Honored Contributor II
1,488 Views

Hi Codina, the syntax of addpath is just addpath('C:\altera\91\quartus\bin'), there is no 'genpath', i think that this statement is order to add the alt_signaltap_run function to the matlab environment, the alt_signaltap_run exits in the quartus II, so it can also explain why you can't find the alt_signaltap_run in MATLAB. Please try it again.

0 Kudos
Altera_Forum
Honored Contributor II
1,488 Views

You are right about genpath, I had already tried only 

 

addpath('C:\altera\91\quartus\bin') but it did not work, so in my desperation I added all the subfolders (if any) to Matlab's path. 

I guess I will export the signaltap data to a text file and import it back to matlab, seems a good option for debugging, although not very good for a practical implementation.  

My guess is that the Altera mex files were compiled as a 32 bit application, and they cannot be called directly in a 64-bit OS. Could you confirm if your XP is 32-bit?
0 Kudos
Altera_Forum
Honored Contributor II
1,488 Views

yes, I use the XP os, it's 32-bit, the quartus ii 9.1 sp2, it's also 32-bit, maybe the problem is from os, I can export the signaltap variables to a text file, it's really a good choice to plot the data in matlab.

0 Kudos
Reply