DSP HDL Coder - NCO mixed types error
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Githin George
am 2 Dez. 2024
Bearbeitet: Githin George
am 2 Dez. 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:
0 Kommentare
Siehe auch
Kategorien
Mehr zu HDL Code Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!