フィルターのクリア

Check Block Compatibiity Error

14 ビュー (過去 30 日間)
Maximum
Maximum 2014 年 6 月 12 日
回答済み: Kiran Kintali 2020 年 1 月 18 日
Hi guys.
I have error during using HDL Workflow Advisor. The error is _ " Error: Product block with divide input (/) supports fixed point division only when the fraction length of output is equal to the fraction length of the dividend minus the fraction length of the divisor." _ . But, i dont understand what exactly the meaning is.
Does anyone know about this problem? How can I solve it? Thanks in advance

採用された回答

Tim McBrayer
Tim McBrayer 2014 年 6 月 12 日
HDL Coder only supports division for fixed-point numbers, not for doubles. Fixed point numbers are denoted by specifying a word length (in bits), a fraction length (in bits), and whether the value is signed. The choices for these parameters determine what values the fixed point type can hold, and with what precision.
In x = a/b, a is the dividend, b is the divisor, and x is the output. The error message is stating that fraction(x) == fraction(a) - fraction(b). So, if the dividend (a) has 8 bits of fraction, and the divisor (b) has 3, then the result (x) must have 5 fractional bits.

その他の回答 (2 件)

Muhammad Rizwan
Muhammad Rizwan 2020 年 1 月 15 日
Hi
I encountered the same problem.But my divisor and dividend both are whole numbers That means Dividend is 14 bit signed 2s complement data and I will normalize it with 2^8(8191 max positive number).
So botyh didnot have any fraction part but output should have fraction part.
How can I solve this issue?

Kiran Kintali
Kiran Kintali 2020 年 1 月 18 日
Can you share a sample model?
Thanks

カテゴリ

Help Center および File ExchangeHDL Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by