I am trying to model a memory which shall store instructions for a processor design. These instructions are stored in a text file as 32 bit binary words. At start of simulation all values must be copied into an std_logic_vector array in the memory block from this text file and then a value at a time shall be output depending on the address supplied to the memory. How can I achieve this?
Apparently I need ieee.std_logic_textio.all; along with std.textio.all; and I can only use the read/write functions with variables. If the std_logic_vector array is a signal, it shall not update as soon as I write to it. I am confused on how to do this properly. I won't have any more than 1023 instructions in the text file since I do not want the simulation to use too much RAM.