real data type from hdl coder

조회 수: 2 (최근 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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 FPGA, 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