The string type in VHDL is defined as:
Code VHDL - [expand] |
1
| type string is array(positive range <>) of character; |
The Character type is an enumerated type containing all 256 ASCII chars.
So a character cannot be assigned to a std_logic_vector, because they are not the same type.
You will need some form of conversion between the two. The way I would do this using the numeric_std package is:
Code VHDL - [expand] |
1
| Char_Two <= std_logic_vector(to_unsigned(character'pos(StrAr(1)), 8)); |