FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5890 Discussions

The problem about FFT simulation

Altera_Forum
Honored Contributor II
790 Views

I want to use MATLAB to simulate the FFT function designed by Altera. I run the Matlab testbench generated by Quartus, but there is always the error 

 

 

Undefined function or method 'Sfftmodel' for input arguments of type 'double'. 

 

Error in ==> fft256_model at 41 

[roc,ioc,eoc] = Sfftmodel(rin,iin,N,THROUGHPUT,ARCH,DATA_PREC,TWIDDLE_PREC,INVERSE); 

 

 

Dose anyone could help me solve this problem? 

 

Thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
98 Views

I have solved the problem. The Quartus only creates the 32bit function, so we must use the 32bit matlab.

Altera_Forum
Honored Contributor II
98 Views

you might file an enhancement request with Altera on that. DSP Builder finally supports 64-bit MATLAB, it would be nice if the MegaCore simulation models did too

Altera_Forum
Honored Contributor II
98 Views

 

--- Quote Start ---  

you might file an enhancement request with Altera on that. DSP Builder finally supports 64-bit MATLAB, it would be nice if the MegaCore simulation models did too 

--- Quote End ---  

 

 

March 5th 2013 and the problem is still unsolved?!?!?!
Altera_Forum
Honored Contributor II
98 Views

 

--- Quote Start ---  

I want to use MATLAB to simulate the FFT function designed by Altera. I run the Matlab testbench generated by Quartus, but there is always the error 

 

 

Undefined function or method 'Sfftmodel' for input arguments of type 'double'. 

 

Error in ==> fft256_model at 41 

[roc,ioc,eoc] = Sfftmodel(rin,iin,N,THROUGHPUT,ARCH,DATA_PREC,TWIDDLE_PREC,INVERSE); 

 

 

Dose anyone could help me solve this problem? 

 

Thanks 

--- Quote End ---  

 

 

I got the sfftmodel.mexw32 file from altera's website, and simply changed the extention to .dll. My computer is of 32 bits, but I keep getting the error message: tsfftmodel.dll can't be loaded correctly. Could somebody tell me how to fix the problem? Besides, I simply put this sfftmodel.dll file in the same folder along with all the other files such as fft_32k_tb.m and fft_small_tb.m.  

 

Also, is there a way to change this sfftmodel.mexw32 (or sfftmodel.dll) into sfftmodel.m file?  

 

Thanks in advance.
Reply