Why is the HDL code for my division operation not bit-true with Stateflow?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 12 Sep 2014
Réponse apportée : MathWorks Support Team
le 12 Sep 2014
Why is the HDL code for my division operation not bit-true with Stateflow?
Réponse acceptée
MathWorks Support Team
le 12 Sep 2014
The HDL code generated from the division operator in Stateflow’s Classic Action Language will not always be bit-true. The semantics of Stateflow division perform integer division. The chance of a mismatch is greater if the division is part of a larger expression, such as X = A - B/C. The generated HDL code will contain greater numeric precision than is retained by Stateflow.
To work around this issue, use the MATLAB Action Language in Stateflow.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Complex Logic 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!