Anyone help with this?
In my test bench I want to enter expected bus values in hex and verify them against a STD_LOGIC_VECTOR type with an ASSERT statement.
If the string is of fixed length this isn't hard to do, but the problem arises when I try to write a hex2STD_LOGIC_VECTOR type_conversion routine for a string of arbitrary length. As string is unbound, the normal 'left type attributes have no meaning.
In my test bench I want to enter expected bus values in hex and verify them against a STD_LOGIC_VECTOR type with an ASSERT statement.
If the string is of fixed length this isn't hard to do, but the problem arises when I try to write a hex2STD_LOGIC_VECTOR type_conversion routine for a string of arbitrary length. As string is unbound, the normal 'left type attributes have no meaning.