Altera_Forum
Honored Contributor
9 years agofloating point number
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
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