real data type from hdl coder

3 ビュー (過去 30 日間)
Suma
Suma 2015 年 4 月 12 日
コメント済み: Suma 2015 年 4 月 15 日
Hi,
the hdl coder generates real data type which is not synthesizeable, only useful for simulation purpose.
How can we make the hdl coder to generate std_logic_vector before we convert to vhdl
thanks

採用された回答

Tim McBrayer
Tim McBrayer 2015 年 4 月 13 日
HDL Coder's bit true and cycle accurate output mirrors precisely what you have placed into your Simulink or MATLAB design. If your design has double or single types, they will be emitted as real in VHDL or Verilog. You will need to convert your modeled types to a non-floating point type, most likely to fixed point. For MATLAB-based designs HDL Coder has fixed-point conversion built into the product workflow. For Simulink-based designs you can use the Fixed-Point Tool to aid you in your conversion.
  1 件のコメント
Suma
Suma 2015 年 4 月 15 日
thanks Tim

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFPGA, ASIC, and SoC Development についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by