ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data
function conv_string_hex( constant val : in byte_vector_t) return string; function conv_string_hex( constant val : in integer) return string; function conv_string_hex( constant val : in std_logic_vector) return string;
Overloaded function for converting values of various types to string values.
These functions return string values in a hexadecimal format. A prefix such as "0x" is not prepended.
In the case of a byte_vector_t, val(0) appears as the leftmost two digits of the returned string, assuming that val(0) has an ascending range.
In the case of a std_logic_vector, val is left-padded to a multiple of 4 elements before being converted to a hexadecimal string. Element 1 of the result string corresponds to the rightmost 4 bits of val. For example, "100101" becomes "25".