- Right-click the MATLAB Function block.
- Select HDL Code > HDL Block Properties.
- For InstantiateFunctions, select on.
Can't Get Rid of UseMatrixTypesInHDL Warning
조회 수: 2 (최근 30일)
이전 댓글 표시
I keep getting a warning basically telling my that UseMatrixTypesInHDL should be turned on to handle matrix signals for a specific block. However, I still get the warning for as if I did not change the setting to "on". How can I get rid of this warning particular to this setting?
댓글 수: 0
답변 (2개)
Aman Vyas
2020년 7월 29일
편집: Aman Vyas
2020년 7월 29일
Hi,
You can try disabling InstantiateFunction, because if its "on" UseMatrixTypesInHDL has no effect and in turn generates warning.
For enabling UseMatrixTypesInHDL you can use following command:
hdlset_param('myModel/dutSubsys/myMLFcn', 'UseMatrixTypesInHDL', 'on')
You can set the InstantiateFunctions parameter using the HDL Block Properties dialog box:
Alternatively, you can try this command:
hdlset_param('my_DUT/my_MATLABFcnBlk', 'InstantiateFunctions', 'on')
Hope it helps!
댓글 수: 0
Kiran Kintali
2020년 7월 29일
This is not exepcted behavior. Please reach out to support@mathworks.com for additional help.
In 20b pre-release this option is no longer visible in the property dialog. HDL Coder will always generate code for matrix types which consumes less indexing logic and more efficient.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 HDL Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!