Why is the HDL code for my division operation not bit-true with Stateflow?

조회 수: 1 (최근 30일)
Why is the HDL code for my division operation not bit-true with Stateflow?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2014년 9월 12일
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개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by