Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Error while conversion from Matlab to VHDL
조회 수: 2 (최근 30일)
이전 댓글 표시
This is my Matlab Code
%#codegen
function y = neha(data)
Persistent hMod hDemod;
if isempty(hMOd)
hMod = comm.BPSKModulator;
hDemod = comm.BPSKDemodulator;
end
modSignal = step(hMod, data);
y = step(hDemod, modSignal);
end
This is my Test Bench
clear neha;
x=[1 0 1 0 1 0 1 1 0 0 1 ]
len=size(x)
y=zeros(1,len);
for ii=1:len
data =x(ii);
y(ii) = neha(data);
end
I have validate the code. But while conversion into VHDL I am getting this error
neha FixPt:15 - error - Single and Double Data Types are not supported in HDL conversion
댓글 수: 3
Walter Roberson
2013년 10월 14일
Ah I was getting function calls and indexing confused. In any case see the Answer I gave.
답변 (1개)
Walter Roberson
2013년 10월 14일
x = uint8([1 0 1 0 1 0 1 1 0 0 1 ]);
and
y = zeros(1, len, class(x));
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!