DSP HDL Coder - NCO mixed types error
조회 수: 7 (최근 30일)
이전 댓글 표시
I'm attempting to generate HDL code for a NCO. When I get to the HDL code generation piece, I see this error:
"Failed For the block 'nco/HDL_DUT/NCO' The block does not support mixing double, single, half, and/or non-real types at the ports. Use either all the same floating point type or no floating point types."
As far as I can tell, the block has single types for all ports with the exception of the boolean valid and reset ports. I'm not actually able to set these to anything other than booleans, understandably. Can anyone help me understand what the issue is here? I've attached screen shots of the project as well as the error condition.
댓글 수: 0
답변 (1개)
Githin George
2024년 12월 2일
편집: Githin George
2024년 12월 2일
Hi Mark,
It Seems that HDL Code Generation is not supported for the “NCO” block if the input types are not “fixed-point”. As per the documentation for “NCO” block the “single” and “double” datatypes are supported only for simulation and not for HDL Code Generation.
You can refer to the “Note” in the “parameters” section of the following documentation page for more details:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 HDL Code Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!