フィルターのクリア

Error: Cast between fixpt and floating point type is not supported

1 回表示 (過去 30 日間)
Yu Chen
Yu Chen 2018 年 3 月 14 日
コメント済み: Walter Roberson 2018 年 3 月 15 日
Hi there,
I got a problem. The program successfully passed the fixed point conversion, but I still got the following while I converting it to HDL code.
Error: Cast between fixpt and floating point type is not supported
"A cast between fixpt and floating point type is not supported, at
Function 'eml_fi_checkforntype' (#14.947.965), line 26, column 25
Function 'fi_impl' (#4.10494.10558), line 274, column 15
Function 'fi_impl' (#4.2380.2450), line 79, column 15
Function 'rgb_fixpt' (#1.2827.2957), line 77, column 23."
But I do not know what Function eml_fi_checkforntype,fi_impl are.
I just converted my code'rgb'.

採用された回答

Walter Roberson
Walter Roberson 2018 年 3 月 14 日
Somewhere in your code you have a call to double() or single() . That is not permitted in code that is going to be used for HDL, because HDL seldom has floating point cores (floating point takes large die areas.) Your code should be using fi() class not double()
  9 件のコメント
Yu Chen
Yu Chen 2018 年 3 月 15 日
In the end I found that the parameters of the line were wrong.
When I am modified, I can execute
Thank you very much for your help and suggestions
Walter Roberson
Walter Roberson 2018 年 3 月 15 日
I did wonder about those, but I thought perhaps that since they were output by the fixedpoint advisor that they were okay...

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by