Azzera filtri
Azzera filtri

How to use multiword in Stateflow/RTW

1 visualizzazione (ultimi 30 giorni)
Jim Johnson
Jim Johnson il 20 Ott 2014
Commentato: Jon Boerner il 22 Ott 2014
I want to have a uint64 on a 32 bit processor. I would like to avoid using fixed point to do this if possible.
  1 Commento
Jon Boerner
Jon Boerner il 22 Ott 2014
Hi Jim,
A couple clarifying questions:
  • When you say multiword, are you looking for an explicit structure/array construct in the generated code that represents a 64-bit number with two 32-bit entries?
  • Or are you looking for 64-bit numbers to just be used in the generated code because your compiler is able to accept 64-bit numbers?
  • Do you not have access to the Fixed-Point Designer product? Is that why you are trying to avoid the use of fixed-point?
A couple other points to keep in mind:
  • Stateflow does not support the uint64 and int64 data types, so to use 64-bit numbers in Stateflow, the only option is the double data type for a 64-bit data type, and there is no multi-word for that as best I can tell.
  • The Configuration Parameters Hardware Implentation pane is where you start introducing the multiword behavior
  • I do not believe any multi-word structures as mentioned above are generated without the Fixed-Point Designer
Let me know the answers to the first three questions and I can take another look.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Stateflow in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by