Хочу попробовать fft корку в ква 12.
Мегавизардом создал fft корку, даже поставил галочки, чтобы создала модели для симуляции (хотя это вряд ли нужно матлабу).
Дальше в матлабе перехожу на каталог, где лежит созданная корка. А дальше действую так, как написано в userguide fft:
Цитата
2. In the MATLAB command window, change to the working directory for your
project.
3. Perform the simulation:
a. Type help <variation name>_model at the command prompt to view the
input and output vectors that are required to run the MATLAB model as a
standalone M-function. Create your input vector and make a function call to
< >_model. For example:
N=2048;
INVERSE = 0; % 0 => FFT 1=> IFFT
x = (2^12)*rand(1,N) + j*(2^12)*rand(1,N);
[y,e] = <variation name>_model(x,N,INVERSE);
or
b. Run the provided testbench by typing the name of the testbench, <
>_tb at the command prompt.
И матлаб дает ошибку:
Цитата
Undefined function 'Sfftmodel' for input arguments of type 'double'.
Error in fft1_model (line 39)
[roc,ioc,eoc] = Sfftmodel(rin,iin,N,THROUGHPUT,ARCH,DATA_PREC,TWIDDLE_PREC,INVERSE);
Поискал эту 'Sfftmodel' - есть файл Sfftmodel.dll в каталоге с квартусом ip\altera\fft....
Что я делаю не так, че он не видит эту функцию, хотя в fft_model.m есть строчка:
Цитата
addpath(strcat(getenv('QUARTUS_ROOTDIR'),'/../ip/altera/fft/lib/'));
Быть. torizin-liteha@yandex.ru