I've a small IP core module which performs some operations on a float input. The module has been developed using vivado hls. As shown below, the float input of the module is taken as a std_logic_vector.
entity basic_test is
port (
ap_local_block : OUT STD_LOGIC;
ap_local_deadlock : OUT STD_LOGIC;
ap_clk : IN STD_LOGIC;
ap_rst : IN STD_LOGIC;
input_r : IN STD_LOGIC_VECTOR (31 downto 0);
output_r : OUT STD_LOGIC_VECTOR (31 downto 0) );
end;
After the integration in vivado, the input to be connected to the module is actually a signed type. Assuming that i would like to avoid to make any cast inside the HLS IP core, which is the best strategy to make the conversion from signed to a float expressed in std_logic_vector?
Thanks in advance for your help.