Why simple digital intergrator can not work in HDL Coder
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,,
I can not get the hdl code when I use new native floating point function, there is only one block:
Discrete-Time Integrator
The erro msg is :
Cannot allocate 12 delays for untitled8/Subsystem/XeAccum1/Add1 in the native floating-point mode.
It also happens when I use a delay and a adder to build an intergrator myself.
The slx file is attached.
0 commentaires
Réponses (2)
Tim McBrayer
le 29 Nov 2016
The Native Floating Point implementation for the DTI uses addition, which is pipelined by default. You can change the NFP settings to use zero latency implementations, which avoids the problem but may not meet your timing requirements. If you set the model to oversample at 12x (HDL Code Generation > Global Settings > Clock Settings > Oversample factor), this will allow the 12-cycle latency of the adder in the feedback loop to be counteracted by the faster clock rate, and you can generate HDL code successfully.
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!