Loading hex and binary data at the same time from text file into std_logic_vector
The basic process is to


Open the file for reading using file_open().
Loop over each line until end-of-file is encountered:


Read the line to a variable of type line using readline().
Read the line as a string using read().
Separate the string into the two parts you're interst using indeces.
Convert the strings character-by-character to std_logic_vectors using a conversion function (I can't find a built in one - I might be missing the obvious - but it's just a simple case statement with cases for all of the characters you're interesed in and a flag or assert for any unexpected ones).



There's plenty of examples for the file IO part:


http://vhdlguru.blogspot.co.uk/2011/02/file-reading-and-writing-in-vhdl-part-2.html
http://www.ee.sunysb.edu/~jochoa/vhd_writefile_tutorial.htm