HDL code generation of Simple TF
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Safiya
le 6 Août 2015
Réponse apportée : Adam Barber
le 11 Août 2015
Hi, I would like to set differnet word lengths while doing HDL code generation,
Can I set a Discrete TF block to the different word lengths at below these three locations.
Input port , = 10bit
Inside blocks =16 bit, like accumulator , Multiplier , gain etc ,
Output port ,= 10 bit or 12bit
(How much does it affect the output resolution)
OR all must be same word length?
Thanks,
0 commentaires
Réponse acceptée
Adam Barber
le 11 Août 2015
Hi Safiya,
You should be able to set the word length by changing the data types for the specific ports/values inside the discrete transfer function. You can set it in the "Data Types" tab in the block parameters. You can specify for each the word length using "fixdt".
For more information, see the "Parameters and Dialog Box" section of the following link:
As far as output resolution is concerned, this is really application dependent. You can try the Fixed-Point Advisor:
Hope this helps you get started,
-Adam
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur HDL Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!