P
Pedro Claro
Guest
Greetings,
I recently tried to open some files for reading and I managed to read
characters and then putting them in hexadecimal format. ( I used HREAD
form ieee.std_textio ). My question is the following: is there anyway
for reading characters ( from 0-255 in ascii ) and then converting them
do a std_logic_vector or an integer.
For example if I have a "K" on the file the output would be "4B" since
its the hexadecimal code of the character "K".
Thanks in advance,
Pedro Claro
I recently tried to open some files for reading and I managed to read
characters and then putting them in hexadecimal format. ( I used HREAD
form ieee.std_textio ). My question is the following: is there anyway
for reading characters ( from 0-255 in ascii ) and then converting them
do a std_logic_vector or an integer.
For example if I have a "K" on the file the output would be "4B" since
its the hexadecimal code of the character "K".
Thanks in advance,
Pedro Claro