DSP HDL Coder - NCO mixed types error

2 views (last 30 days)
Mark
Mark on 5 Nov 2024
Edited: Githin George on 2 Dec 2024
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.

Answers (1)

Githin George
Githin George on 2 Dec 2024
Edited: Githin George on 2 Dec 2024
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:

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!