HDLCODER support function invoke function?
이전 댓글 표시
Dear all
Currently I'm using HDLFFT, I think it works as well as using just one function.
But I want to modify as the below,
function [yOut,validOut,test] = HDLFFT8(yIn,validIn)
%HDLFFT8
% Processes one sample of FFT data using the dsp.HDLFFT System object(TM)
% yIn is a fixed-point scalar or column vector.
% validIn is a logical scalar value.
% You can generate HDL code from this function.
persistent fft8;
if isempty(fft8)
fft8 = dsp.HDLFFT('FFTLength',8 );
end
[yOut,validOut] = fft8(complex(yIn),validIn);
test = yOut.*conj(yOut)/(8*768);
end
Is this possible way to implement hdl by using hdl coder? If not, what am I supposed to do ?
댓글 수: 2
Birdman
2018년 2월 8일
Where does fft8 come from?
Walter Roberson
2018년 2월 8일
It is assigned the dsp.HDLFFT system object the first time the function is called.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Speed and Area Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!