DSP HDL Coder - NCO mixed types error

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.

Antworten (1)

Githin George
Githin George am 2 Dez. 2024
Bearbeitet: Githin George am 2 Dez. 2024

0 Stimmen

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:

Kategorien

Produkte

Version

R2023a

Gefragt:

am 5 Nov. 2024

Bearbeitet:

am 2 Dez. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by