fimath error in hdl coder
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm writng a code to generate a rectangular pulse in matlab 2014a and convert it to vhdl code. But when running workflow advisor i'm getting an error as "call to fimath is not supported by hdl code generation". pls help me to solve this
댓글 수: 0
답변 (1개)
Kiran Kintali
2023년 10월 15일
편집: Kiran Kintali
2023년 10월 15일
I am assuming you are using MATLAB code to HDL or MATLAB Function Block in Simulink. Can you share your sample model?
Usually fimath is used during a creation of fi object. The fi function with fimath is supported by HDL Coder. fimath helps define rounding and saturation behavior during fixed-point math operations. Please note default fimath object settings put you in nearest rounding mode and with overflow behavior as saturate. Both generate extra hardware. You might want to consider use of hdlfimath function (which recommends use of hardware friendly floor and wrap settings).
Browse through the code in this folder which shows the use of fimath and hdlfimath operations.
>>mlhdlc_demo_setup("fft")
% check out the examples fft40 and fft_channelizer which show use of "fi"
% and "fimath" functions.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Create Fixed-Point Objects in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!