필터 지우기
필터 지우기

Error Found unsupported dynamic matrix type at output port: 0

조회 수: 7 (최근 30일)
Athira Km
Athira Km 2021년 10월 8일
댓글: Athira Km 2021년 10월 8일
Hi Team
I am getting the below error while HDL code generation.
HDL Code Generation Check Report for 'Coordinator_fixpt'
Generated on 2021-10-08 12:37:34
HDL Conformance check complete with 2 errors, 0 warnings, and 0 messages.
Function LocationLevelDescription
Coordinator_fixpt:48ErrorFound unsupported dynamic matrix type at output port: 0, name 'beacon', in the file/function Coordinator_fixpt.
Coordinator_fixpt:0ErrorMATLAB HDL Coder failed in the code generation phase. See HDL Coder conformance report.
Below is the code part
function [frameOctets] = LifiMACFrame(SSID,beaconInterval,FrameType,Type,payload)
data = 0;
if strcmp(FrameType, 'Data')
if ~isempty(payload)
data = payload;
end
frameOctets = macGenerateMPDU(FrameType,data,SSID,beaconInterval,Type);
else
frameOctets = macGenerateMPDU(FrameType,data,SSID,beaconInterval,Type); ----- > error hitting here.
end
end
Attaching the whole code for reference purpose.
Could you please help here.
Thanks,

답변 (1개)

Walter Roberson
Walter Roberson 2021년 10월 8일
macGenerateMPDU appears to be written in a way that uses dynamic memory instead of having fixed maximum variable size.
Dynamic memory is a problem for HDL, as HDL needs to know exactly how many memory cells to allocate gates for.
  댓글 수: 2
Athira Km
Athira Km 2021년 10월 8일
편집: Athira Km 2021년 10월 8일
how to make/change a variable from dynamic memory to fixed point?
while i gave frame(1:312) = <code> it was throwing error. Could you please throw some light on this.
Athira Km
Athira Km 2021년 10월 8일
Also tried like below. but not making any changes in the error.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by