Why am I seeing numerical Differences in Simulink simulation vs generated code on FPGA

조회 수: 2 (최근 30일)
Why am I seeing numerical Differences in Simulink simulation vs generated code on FPGA

채택된 답변

MathWorks Support Team
MathWorks Support Team 2017년 4월 26일
During HDL Code setup, there is is a check to enable "Balanced Delays". Checking this option causes modifications in the generated code that may cause small, but not negligible, differences in simulation behavior. If you are seeing unexpected numerical differences in this scenario, make sure that this option is left unchecked.
You may see numerical differences in Simulink simulation vs FPGA simulation when using the following workflow:
1) You have a model built with single/double types
2) You convert this model to fixed-point using a fixed point tool
3) You copy the converted fixed-point model into another model, and generate HDL code from this new model
4) You see numerical differences when viewing the FPGA simulation

추가 답변 (0개)

카테고리

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

태그

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

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by