--- Quote Start ---
If you want a ROM, then you cannot write any data to it. You cant write data into it in the code because ADC_array was declared constant, so it cannot be modified. You'll have to make it a signal (and therefore it wont be a rom anymore.)
--- Quote End ---
Thanks for the prompt response.
I don't think I can use signals to store the samples though, right? Cause I need to store my data coming from the microphone into a memory, say like 8 samples of 32 bits. Then Call each sample, apply a filter and then read them back to the speakers when the specified control signals in the audio codec is set to high.