How to use multiword in Stateflow/RTW

2 views (last 30 days)
Jim Johnson
Jim Johnson on 20 Oct 2014
Commented: Jon Boerner on 22 Oct 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 Comment
Jon Boerner
Jon Boerner on 22 Oct 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.

Sign in to comment.

Answers (0)

Categories

Find more on Stateflow in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!