필터 지우기
필터 지우기

How to use multiword in Stateflow/RTW

조회 수: 1 (최근 30일)
Jim Johnson
Jim Johnson 2014년 10월 20일
댓글: Jon Boerner 2014년 10월 22일
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
Jon Boerner
Jon Boerner 2014년 10월 22일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Stateflow에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by