# VHDL convert binary to hex, and hex to string

Having a std_logic_vector how can I convert value value to HEX, and then how can I convert the hex to string?

Example: std_logic_vector(15 downto 0) = "0000000001010101", HEX = 0055, and hex to string

constant test   :   std_logic_vector(7 downto 0) := "00001111";