Specify init file to inferred BRAM
- 5 years ago
Hello,
I'm sorry for the late response - I've been busy for the last few days.
I tried to create a simplified example of the problem (as some of you requested) -I re-wrote it based on quartus code templates and the mif file was used correctly.
After further inspection - I've noticed that my TextIO based initialization function, which should have been for simulation purpose only, did reset the memory to zero even when the TextIO part was not working.
I overlooked that part untill now because it was supposed to be for simulation only and I was sure it didn't had any effect.
I think that attribute didn't work because the function already declaired an initial value. (quartus did create a mif file for the zeros the function set to the memory)
After I've changed that part in the function the attribute worked and all was well.
Thank you all for your help and advice.