01-15-2017 01:26 PM
Hi All,How can I convert a std_logic_vector number into a floating point number? What is the command-operator? what library to use? is it synthesizable ? Thanks
01-15-2017 02:52 PM
If you want a synthesisable fp number you will have to use slv and user the floating point cores provided by altera. But why do you want floating point? Usually fire FPGAs it is far more efficient to use fixed point.
01-16-2017 07:36 AM
Hi,Do you mean ALTFP_CONVER from the IP library? If yes, it creates this entity, which is different from documentation. for example: what is "distance" input? Doesn't have this input in documentation. ENTITY ALTFP_CONVERa_altbarrel_shift_fof IS PORT ( aclr : IN STD_LOGIC := '0'; clk_en : IN STD_LOGIC := '1'; clock : IN STD_LOGIC := '0'; data : IN STD_LOGIC_VECTOR (31 DOWNTO 0); distance : IN STD_LOGIC_VECTOR (4 DOWNTO 0); result : OUT STD_LOGIC_VECTOR (31 DOWNTO 0) ); END ALTFP_CONVERa_altbarrel_shift_fof; Thanks
02-23-2017 06:10 PM
hiiam doing a project in floting point arithemetics so i want to separate the mantisa exponent and sign bit form an unsigned integer anybody have know how to convert and accces by vhdl code/command