DSP HDL Coder - NCO mixed types error

3 ビュー (過去 30 日間)
Mark
Mark 2024 年 11 月 5 日
編集済み: Githin George 2024 年 12 月 2 日
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.

回答 (1 件)

Githin George
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:

カテゴリ

Help Center および File ExchangeTransforms についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by