abt floating point numbers

P

prasad

Guest
Hi all,
can anybody tell me how to give flating point numbers during simulation
in binary form.
u can mail to my id prasadbabu16@gmail.com
Thanx
 
prasad wrote:
Hi all,
can anybody tell me how to give flating point numbers during simulation
in binary form.
u can mail to my id prasadbabu16@gmail.com
Download the following files:
http://www.eda.org/vhdl-200x/vhdl-200x-ft/packages/fixed_pkg_c.vhd
http://www.eda.org/vhdl-200x/vhdl-200x-ft/packages/float_pkg_c.vhd

Then you can use the function "to_float(real)" to convert a real to float.

Documentation:
http://www.eda.org/vhdl-200x/vhdl-200x-ft/packages/Float_ug.pdf
 

Welcome to EDABoard.com

Sponsor

Back
Top