フィルターのクリア

Difference between int32 and fixed point

6 ビュー (過去 30 日間)
shauk
shauk 2016 年 8 月 15 日
回答済み: Tim McBrayer 2016 年 8 月 15 日
I am trying to program a FPGA using MATLAB and the HDL coder. So for the FPGA i need to have fixed point data types. If i am using data type of int32 is it fixed point? or i should use the fi object to convert my data to fixed point.

採用された回答

Tim McBrayer
Tim McBrayer 2016 年 8 月 15 日
HDL Coder treats all integral types (both int and uint types) as the fixed point types that they are equivalent to. There is no need to convert integral types to fixed point.
For example, an int16 type is equivalent to fixdt(1,16,0), while an uint8 is equivalent to fixdt(0,8,0).

その他の回答 (0 件)

カテゴリ

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