Filter löschen
Filter löschen

How to use multiword in Stateflow/RTW

1 Ansicht (letzte 30 Tage)
Jim Johnson
Jim Johnson am 20 Okt. 2014
Kommentiert: Jon Boerner am 22 Okt. 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 Kommentar
Jon Boerner
Jon Boerner am 22 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Stateflow 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!

Translated by